diff options
author | Xavier Beaudouin <kiwi@FreeBSD.org> | 2025-04-17 11:25:38 +0200 |
---|---|---|
committer | Xavier Beaudouin <kiwi@FreeBSD.org> | 2025-05-16 15:22:31 +0200 |
commit | dfe81170533bc874f1b1e79929045c65dbc8c2d2 (patch) | |
tree | 72eb3172fdf46c86039822a5d045a0a5b35a393c | |
parent | ports-mgmt/pkg-devel: update to 2.1.9.3 (diff) |
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
-rw-r--r-- | net/jose/Makefile | 1 | ||||
-rw-r--r-- | net/jose/files/patch-lib_meson.build | 11 |
2 files changed, 12 insertions, 0 deletions
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=...') |