net/libproxy: temporarily mark LLD_UNSAFE for symbol versioning

LLD being stricter than BFD results in a failed configure check for
version script support, which means no symbol versions linked into
the shared library:

Command line: `cc /wrkdirs/usr/ports/net/libproxy/work/libproxy-0.5.9/_build/meson-private/tmps6kwi6ne/testfile.c -o /wrkdirs/usr/ports/net/libproxy/work/libproxy-0
.5.9/_build/meson-private/tmps6kwi6ne/output.exe -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declar
ation -Wl,--fatal-warnings -Wl,--version-script,/wrkdirs/usr/ports/net/libproxy/work/libproxy-0.5.9/src/libproxy/libproxy.map` -> 1
stderr:
ld: error: version script assignment of 'LIBPROXY_0.4.16' to symbol 'px_proxy_factory_new' failed: symbol not defined
ld: error: version script assignment of 'LIBPROXY_0.4.16' to symbol 'px_proxy_factory_get_proxies' failed: symbol not defined
ld: error: version script assignment of 'LIBPROXY_0.4.16' to symbol 'px_proxy_factory_free_proxies' failed: symbol not defined
ld: error: version script assignment of 'LIBPROXY_0.4.16' to symbol 'px_proxy_factory_free' failed: symbol not defined
ld: error: version script assignment of 'LIBPROXY_0.5.5' to symbol 'px_proxy_factory_get_type' failed: symbol not defined
ld: error: version script assignment of 'LIBPROXY_0.5.5' to symbol 'px_proxy_factory_copy' failed: symbol not defined
cc: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Compiler for C supports link arguments -Wl,--version-script,/wrkdirs/usr/ports/net/libproxy/work/libproxy-0.5.9/src/libproxy/libproxy.map: NO

Upstream issue opened: https://github.com/libproxy/libproxy/issues/320

Reported by: tijl
This commit is contained in:
Charlie Li 2025-01-22 13:02:21 -05:00
parent 047621f40f
commit 4e8ef08bd3
No known key found for this signature in database
GPG key ID: 678F936058415CCA

View file

@ -1,5 +1,6 @@
PORTNAME= libproxy PORTNAME= libproxy
DISTVERSION= 0.5.9 DISTVERSION= 0.5.9
PORTREVISION= 1
CATEGORIES= net devel CATEGORIES= net devel
MAINTAINER= desktop@FreeBSD.org MAINTAINER= desktop@FreeBSD.org
@ -22,6 +23,8 @@ MESON_ARGS= -Dtests=true \
-Dintrospection=true \ -Dintrospection=true \
-Drelease=true -Drelease=true
USE_LDCONFIG= yes USE_LDCONFIG= yes
# https://github.com/libproxy/libproxy/issues/320
LLD_UNSAFE= yes
OPTIONS_DEFINE= CURL DOCS VAPI OPTIONS_DEFINE= CURL DOCS VAPI
OPTIONS_GROUP= CONFIG PACRUNNER OPTIONS_GROUP= CONFIG PACRUNNER