git: d7f445407c41 - 2025Q3 - misc/libuuid: enable symbol versioning

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Sun, 06 Jul 2025 13:24:51 UTC
The branch 2025Q3 has been updated by mandree:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d7f445407c4126a33b40359c404b6a68da20f421

commit d7f445407c4126a33b40359c404b6a68da20f421
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2025-07-06 12:24:35 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2025-07-06 13:22:09 +0000

    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)
    
    (cherry picked from commit d39f421a4d802ff7cd7eb258371cdd3ecb7ce042)
---
 misc/libuuid/Makefile                        |  1 +
 misc/libuuid/files/patch-libuuid_meson.build | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

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')
+