From dfe81170533bc874f1b1e79929045c65dbc8c2d2 Mon Sep 17 00:00:00 2001 From: Xavier Beaudouin Date: Thu, 17 Apr 2025 11:25:38 +0200 Subject: [PATCH] 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 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(+) create mode 100644 net/jose/files/patch-lib_meson.build 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=...')