aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2023-10-07 14:54:00 +0000
committerDimitry Andric <dim@FreeBSD.org>2023-10-21 10:52:22 +0000
commitdee420703ee18ac8be9d10a488a3f650481aff78 (patch)
treedfa4e9bd10609a31b5f28f6bb4213f16872bb291
parentc15b222f749d78030033e2b3c02abd7a0dad0d94 (diff)
downloadports-dee420703ee18ac8be9d10a488a3f650481aff78.tar.gz
ports-dee420703ee18ac8be9d10a488a3f650481aff78.zip
graphics/libgphoto2: fix build with lld 17
Building graphics/libgphoto2 with lld 17 results in the following link error: libtool: link: cc -shared -fPIC -DPIC .libs/libgphoto2_port_la-gphoto2-port-info-list.o .libs/libgphoto2_port_la-gphoto2-port-log.o .libs/libgphoto2_port_la-gphoto2-port-version.o .libs/libgphoto2_port_la-gphoto2-port.o .libs/libgphoto2_port_la-gphoto2-port-portability.o .libs/libgphoto2_port_la-gphoto2-port-result.o -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib /usr/local/lib/libltdl.so -lintl -lpthread -lregex -O2 -fstack-protector-strong -Wl,--version-script=./libgphoto2_port.ver -fstack-protector-strong -Wl,-rpath -Wl,/usr/local/lib -Wl,-soname -Wl,libgphoto2_port.so.12 -o .libs/libgphoto2_port.so.12.0.0 ld: error: version script assignment of 'LIBGPHOTO2_INTERNAL' to symbol 'gpi_gphoto_port_type_map' failed: symbol not defined cc: error: linker command failed with exit code 1 (use -v to see invocation) The mentioned symbol has been removed from libgphoto2 a long time ago, so remove it from the linker version script. PR: 274334 Approved by: maintainer timeout (2 weeks) MFH: 2023Q4
-rw-r--r--graphics/libgphoto2/files/patch-libgphoto2__port_libgphoto2__port_libgphoto2__port.ver10
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/libgphoto2/files/patch-libgphoto2__port_libgphoto2__port_libgphoto2__port.ver b/graphics/libgphoto2/files/patch-libgphoto2__port_libgphoto2__port_libgphoto2__port.ver
new file mode 100644
index 000000000000..cec70d8e0ad5
--- /dev/null
+++ b/graphics/libgphoto2/files/patch-libgphoto2__port_libgphoto2__port_libgphoto2__port.ver
@@ -0,0 +1,10 @@
+--- libgphoto2_port/libgphoto2_port/libgphoto2_port.ver.orig 2019-02-05 07:18:06 UTC
++++ libgphoto2_port/libgphoto2_port/libgphoto2_port.ver
+@@ -70,7 +70,6 @@ LIBGPHOTO2_INTERNAL {
+
+ # These are only supposed to be used by libgphoto2 internally.
+ LIBGPHOTO2_INTERNAL {
+- gpi_gphoto_port_type_map;
+ gpi_enum_to_string;
+ gpi_string_to_enum;
+ gpi_string_to_flag;