summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2023-11-26 19:09:08 +0100
committerDimitry Andric <dim@FreeBSD.org>2023-11-26 19:21:23 +0100
commit50e1b669d76a12aab4bc9646261cd426847dc825 (patch)
treeb98960248b41cca1223ecd8e34d626c0fd9fac1e
parentdatabases/mariadb1011-server: Security update to 10.11.6 (diff)
devel/libnotify: fix build with lld 17 (take 2)
The fix for bug 274108 broke running the notify-send command, resulting in: ld-elf.so.1: /usr/local/lib/libglib-2.0.so.0: Undefined symbol "environ" This is because libnotify uses the same linker version script for both its libnotify.so shared library and for its notify-send executable. The linker version script places all symbols that do not begin with "notify_" into the local scope, making them effectively hidden. This is fine for a shared library, but not for an executable, since it will also hide the symbols "environ" and "__progname", which are required for most programs. Fix it by not using the linker version script for the notify-send executable, so no required symbols are hidden. PR: 275104, 274108 MFH: 2023Q4
-rw-r--r--devel/libnotify/files/patch-libnotify_meson.build18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/libnotify/files/patch-libnotify_meson.build b/devel/libnotify/files/patch-libnotify_meson.build
new file mode 100644
index 000000000000..18b4cdc232a0
--- /dev/null
+++ b/devel/libnotify/files/patch-libnotify_meson.build
@@ -0,0 +1,18 @@
+--- libnotify/meson.build.orig 2023-02-17 21:20:15 UTC
++++ libnotify/meson.build
+@@ -46,7 +46,6 @@ notify_dep = declare_dependency(
+ dependencies: libnotify_deps,
+ compile_args: libnotify_cflags,
+ sources: headers + [enum_types[1]] + [marshal[1]],
+- link_args: libnotify_ldflags,
+ )
+
+ libnotify_lib = shared_library(LIBNAME,
+@@ -55,6 +54,7 @@ libnotify_lib = shared_library(LIBNAME,
+ version: '@0@.@1@.@2@'.format(LT_CURRENT, LT_REVISION, LT_AGE),
+ soversion: LT_CURRENT,
+ install: true,
++ link_args: libnotify_ldflags,
+ )
+
+ libnotify_dep = declare_dependency(