git: dfe81170533b - main - net/jose: Fix compilation on 13.5 and 14.x

From: Xavier Beaudouin <kiwi_at_FreeBSD.org>
Date: Fri, 16 May 2025 13:22:57 UTC
The branch main has been updated by kiwi:

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

commit dfe81170533bc874f1b1e79929045c65dbc8c2d2
Author:     Xavier Beaudouin <kiwi@FreeBSD.org>
AuthorDate: 2025-04-17 09:25:38 +0000
Commit:     Xavier Beaudouin <kiwi@FreeBSD.org>
CommitDate: 2025-05-16 13:22:31 +0000

    net/jose: Fix compilation on 13.5 and 14.x
    
    This patch removes a check that was previously added on PR 277905
    by adding a -export-symbols-regex=^jose_.* flag only on FreeBSD.
    
    The PR 277905 fix has been merged into upstream jose but it seems
    that something is still not handled correctly on FreeBSD 13.5 and
    14.x branches.
    
    This workaround is just temporary to make the port build again
    on 13.5 and 14. I will work with upstream to find the right
    long-term fix.
    
    PR:             284417, 277905
    Reported by:    Alexey <ucu8u1b-ol@avksrv.org>
    Approved by:    0mp (mentor)
    Sponsored by:   Klara, Inc.
    Differential Revision:  https://reviews.freebsd.org/D49871
---
 net/jose/Makefile                    |  1 +
 net/jose/files/patch-lib_meson.build | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/net/jose/Makefile b/net/jose/Makefile
index d8c9bc583c5d..034b4b98ef4d 100644
--- a/net/jose/Makefile
+++ b/net/jose/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	jose
 DISTVERSION=	14
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	https://github.com/latchset/${PORTNAME}/releases/download/v${DISTVERSION}/
 
diff --git a/net/jose/files/patch-lib_meson.build b/net/jose/files/patch-lib_meson.build
new file mode 100644
index 000000000000..26e763f161a9
--- /dev/null
+++ b/net/jose/files/patch-lib_meson.build
@@ -0,0 +1,11 @@
+--- lib/meson.build.orig	2025-03-24 16:00:40 UTC
++++ lib/meson.build
+@@ -4,7 +4,7 @@ if host_machine.system() == 'freebsd'
+ 
+ if host_machine.system() == 'freebsd'
+   if not cc.links(code, args: flags + ',--undefined-version' , name: '-Wl,--version-script=...')
+-     flags = [ '-export-symbols-regex=^jose_.*' ]
++    #     flags = [ '-export-symbols-regex=^jose_.*' ]
+   endif
+ else
+   if not cc.links(code, args: flags, name: '-Wl,--version-script=...')