git: f2ce2e621caa - main - devel/libdatrie: Fix symbol versioning

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 07 Dec 2025 17:16:44 UTC
The branch main has been updated by bofh:

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

commit f2ce2e621caa5175d292c5082d359bd2be16a957
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-12-07 10:25:36 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-12-07 17:16:33 +0000

    devel/libdatrie: Fix symbol versioning
    
    Somehow version script tests always fails on FreeBSD and the necessary
    FLAGS are not passed to the builder. See:
    https://github.com/dgibson/dtc/issues/171
    
    This is a very bad way of fixing this but if someone has a better way of
    fixing this please let me know.
    
    PR:             291443
    Reported by:    jilles
---
 devel/libdatrie/Makefile              |  1 +
 devel/libdatrie/files/patch-configure | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/devel/libdatrie/Makefile b/devel/libdatrie/Makefile
index 5d6224c3ddfc..8a745fd013b9 100644
--- a/devel/libdatrie/Makefile
+++ b/devel/libdatrie/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libdatrie
 DISTVERSION=	0.2.14
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	https://github.com/tlwg/libdatrie/releases/download/v${DISTVERSION}/
 
diff --git a/devel/libdatrie/files/patch-configure b/devel/libdatrie/files/patch-configure
new file mode 100644
index 000000000000..9662c2c219cf
--- /dev/null
+++ b/devel/libdatrie/files/patch-configure
@@ -0,0 +1,24 @@
+--- configure.orig	2025-12-06 22:02:04 UTC
++++ configure
+@@ -13883,13 +13883,8 @@ fi
+ fi
+ 
+ 
+- if test "$datrie_cv_have_version_script" = "yes"; then
+-  LD_HAS_VERSION_SCRIPT_TRUE=
+-  LD_HAS_VERSION_SCRIPT_FALSE='#'
+-else
+-  LD_HAS_VERSION_SCRIPT_TRUE='#'
+-  LD_HAS_VERSION_SCRIPT_FALSE=
+-fi
++LD_HAS_VERSION_SCRIPT_TRUE=
++LD_HAS_VERSION_SCRIPT_FALSE='#'
+ 
+ 
+ # Checks for libraries.
+@@ -16678,5 +16673,3 @@ fi
+   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
+ printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
+ fi
+-
+-