From ad9f5c14f80320de8fc01ee14da673ff4e533fdc Mon Sep 17 00:00:00 2001 From: Ted Stein Date: Tue, 16 Jan 2024 08:21:54 -0800 Subject: [PATCH] fix(main/libidn2): disable symver aliases (#18758) Building libidn2 currently fails at link: ``` make[3]: Entering directory '/home/builder/.termux-build/libidn2/build/lib' // snip CC context.lo CCLD libidn2.la ld.lld: error: .libs/puny_encode.o: symbol _idn2_punycode_encode@IDN2_0.0.0 has undefined version IDN2_0.0.0 ld.lld: error: .libs/puny_decode.o: symbol _idn2_punycode_decode@IDN2_0.0.0 has undefined version IDN2_0.0.0 clang-17: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [Makefile:1609: libidn2.la] Error 1 ``` This fix is recommended here [0]. I couldn't figure out a cleaner way to do this. It would have been a more stable patch against `config.ac`, but `configure` is included in the source tarball and this seemed like the lesser evil. [0] https://www.mail-archive.com/help-libidn@gnu.org/msg01356.html [skip ci] --- .../libidn2/0000-disable-versioning-of-symbols.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 packages/libidn2/0000-disable-versioning-of-symbols.patch diff --git a/packages/libidn2/0000-disable-versioning-of-symbols.patch b/packages/libidn2/0000-disable-versioning-of-symbols.patch new file mode 100644 index 000000000000000..a1c98ea2d6810b4 --- /dev/null +++ b/packages/libidn2/0000-disable-versioning-of-symbols.patch @@ -0,0 +1,10 @@ +--- src/configure ++++ src/configure +@@ -32898,8 +32898,6 @@ + if ac_fn_c_try_compile "$LINENO" + then : + +-printf "%s\n" "#define HAVE_SYMVER_ALIAS_SUPPORT 1" >>confdefs.h +- + fi + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext