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
This commit is contained in:
Xavier Beaudouin
2025-04-17 11:25:38 +02:00
parent 7aa9fae660
commit dfe8117053
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
PORTNAME= jose
DISTVERSION= 14
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= https://github.com/latchset/${PORTNAME}/releases/download/v${DISTVERSION}/
+11
View File
@@ -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=...')