aboutsummaryrefslogtreecommitdiff
path: root/tools/util-linux/patches/110-meson-fix-a-bug-in-posixipc_libs-configuration.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tools/util-linux/patches/110-meson-fix-a-bug-in-posixipc_libs-configuration.patch')
-rw-r--r--tools/util-linux/patches/110-meson-fix-a-bug-in-posixipc_libs-configuration.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/util-linux/patches/110-meson-fix-a-bug-in-posixipc_libs-configuration.patch b/tools/util-linux/patches/110-meson-fix-a-bug-in-posixipc_libs-configuration.patch
new file mode 100644
index 0000000000..a6ec1b83d0
--- /dev/null
+++ b/tools/util-linux/patches/110-meson-fix-a-bug-in-posixipc_libs-configuration.patch
@@ -0,0 +1,23 @@
+From 946c0b9c6f6481ed9370b8bd0f54a622a0c4a574 Mon Sep 17 00:00:00 2001
+From: Martin Valgur <martin.valgur@gmail.com>
+Date: Tue, 15 Apr 2025 16:19:21 +0300
+Subject: [PATCH] meson: fix a bug in posixipc_libs configuration
+
+Should append instead of assigning. Otherwise fails with
+
+meson.build:1482:22: ERROR: Object <[ExternalLibraryHolder] holds [ExternalLibrary]: <ExternalLibrary rt: True>> of type ExternalLibrary does not support the `+` operator.
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/meson.build
++++ b/meson.build
+@@ -1473,7 +1473,7 @@ has_seminfo_type = cc.has_type('struct s
+
+ posixipc_libs = []
+ if not cc.has_function('shm_open') and conf.get('HAVE_SYS_MMAN_H').to_string() == '1'
+- posixipc_libs = cc.find_library('rt', required : true)
++ posixipc_libs += cc.find_library('rt', required : true)
+ endif
+
+ if not cc.has_function('sem_close') and conf.get('HAVE_SEMAPHORE_H').to_string() == '1'