From d39f421a4d802ff7cd7eb258371cdd3ecb7ce042 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 6 Jul 2025 14:24:35 +0200 Subject: [PATCH] misc/libuuid: enable symbol versioning Some ports depend on versioned symbols in libuuid, and the meson test appears off because it tries to look for the --version-script without having build the library, and assumes the linker does not support the --version-script. Force versioning. Approved by: portmgr@ (blanket) --- misc/libuuid/Makefile | 1 + misc/libuuid/files/patch-libuuid_meson.build | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 misc/libuuid/files/patch-libuuid_meson.build diff --git a/misc/libuuid/Makefile b/misc/libuuid/Makefile index 7c779d8ae994..b87afa0281ea 100644 --- a/misc/libuuid/Makefile +++ b/misc/libuuid/Makefile @@ -1,6 +1,7 @@ PORTNAME= libuuid DISTVERSIONPREFIX= v DISTVERSION= 2.41.1 +PORTREVISION= 1 CATEGORIES= misc MAINTAINER= arrowd@FreeBSD.org diff --git a/misc/libuuid/files/patch-libuuid_meson.build b/misc/libuuid/files/patch-libuuid_meson.build new file mode 100644 index 000000000000..6564ba08a90f --- /dev/null +++ b/misc/libuuid/files/patch-libuuid_meson.build @@ -0,0 +1,15 @@ +--- libuuid/meson.build.orig 2025-06-24 07:55:28 UTC ++++ libuuid/meson.build +@@ -26,10 +26,8 @@ libuuid_link_args = [] + libuuid_link_depends = [] + libuuid_link_args = [] + +-if cc.has_link_argument('-Wl,--version-script=@0@'.format(libuuid_sym_path)) +- libuuid_link_depends += [libuuid_sym] +- libuuid_link_args += ['-Wl,--version-script=@0@'.format(libuuid_sym_path)] +-endif ++libuuid_link_depends += [libuuid_sym] ++libuuid_link_args += ['-Wl,--version-script=@0@'.format(libuuid_sym_path)] + + thread_dep = dependency('threads') +