Files
Charlie Li 4e8ef08bd3 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
2025-01-22 13:02:21 -05:00

66 lines
1.6 KiB
Makefile

PORTNAME= libproxy
DISTVERSION= 0.5.9
PORTREVISION= 1
CATEGORIES= net devel
MAINTAINER= desktop@FreeBSD.org
COMMENT= Library that provides automatic proxy configuration management
WWW= https://libproxy.github.io/libproxy/
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cpe gnome meson pkgconfig
CPE_VENDOR= libproxy_project
USE_GITHUB= yes
USE_GNOME= glib20 introspection
MESON_ARGS= -Dtests=true \
-Dconfig-windows=false \
-Dconfig-osx=false \
-Dintrospection=true \
-Drelease=true
USE_LDCONFIG= yes
# https://github.com/libproxy/libproxy/issues/320
LLD_UNSAFE= yes
OPTIONS_DEFINE= CURL DOCS VAPI
OPTIONS_GROUP= CONFIG PACRUNNER
OPTIONS_GROUP_CONFIG= ENV GNOME KDE SYSCONFIG XDP
OPTIONS_GROUP_PACRUNNER= DUKTAPE
OPTIONS_DEFAULT= CURL ENV GNOME KDE SYSCONFIG VAPI XDP
OPTIONS_SUB= yes
ENV_DESC= Environment configuration support
DUKTAPE_DESC= PAC Runner Duktape support
SYSCONFIG_DESC= sysconfig configuration support
XDP_DESC= XDG Desktop Portal (Flatpak) support
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
CURL_MESON_TRUE= curl
DOCS_BUILD_DEPENDS= gi-docgen:textproc/py-gi-docgen
DOCS_MESON_TRUE= docs
DUKTAPE_LIB_DEPENDS= libduktape.so:lang/duktape-lib
DUKTAPE_MESON_TRUE= pacrunner-duktape
ENV_MESON_TRUE= config-env
GNOME_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc:devel/gsettings-desktop-schemas
GNOME_RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc:devel/gsettings-desktop-schemas
GNOME_MESON_TRUE= config-gnome
KDE_MESON_TRUE= config-kde
SYSCONFIG_MESON_TRUE= config-sysconfig
VAPI_USES= vala:build
VAPI_MESON_TRUE= vapi
XDP_MESON_TRUE= config-xdp
.include <bsd.port.mk>