|
| 1 | +From 8bb66dc13989d2076f963b946614ec855fbd0545 Mon Sep 17 00:00:00 2001 |
| 2 | + |
| 3 | +Date: Tue, 4 Nov 2025 18:33:55 +0000 |
| 4 | +Subject: [PATCH 11/11] remove mosquitto glibc 2.34 fixes |
| 5 | + |
| 6 | +--- |
| 7 | + ...02-Add-configure-time-check-for-lanl.patch | 47 ------------------- |
| 8 | + 1 file changed, 47 deletions(-) |
| 9 | + delete mode 100644 package/mosquitto/0002-Add-configure-time-check-for-lanl.patch |
| 10 | + |
| 11 | +diff --git a/package/mosquitto/0002-Add-configure-time-check-for-lanl.patch b/package/mosquitto/0002-Add-configure-time-check-for-lanl.patch |
| 12 | +deleted file mode 100644 |
| 13 | +index b6716412..00000000 |
| 14 | +--- a/package/mosquitto/0002-Add-configure-time-check-for-lanl.patch |
| 15 | ++++ /dev/null |
| 16 | +@@ -1,47 +0,0 @@ |
| 17 | +-From 447a6aa8df882a67ca3df6f5e95be42e1463eaf0 Mon Sep 17 00:00:00 2001 |
| 18 | +-From: Titouan Christophe <[email protected]> |
| 19 | +-Date: Fri, 29 Aug 2025 19:47:34 +0200 |
| 20 | +-Subject: [PATCH] Add configure-time check for -lanl |
| 21 | +- |
| 22 | +-Since glibc 2.34, libanl features have been integrated directly into libc [1]. |
| 23 | +-For backward compatibility, some toolchains still provide a shim for |
| 24 | +-libanl as a separate .so, but new toolchains (for example for new archs |
| 25 | +-like loongarch) do not provide it anymore. |
| 26 | +- |
| 27 | +-In such a case, building mosquitto fails at link time with (see [2]) |
| 28 | +- > cannot find -lanl: No such file or directory |
| 29 | +- |
| 30 | +-To fix this problem while maintaining compatibility with older toolchains, |
| 31 | +-check if a simple program that uses libanl can be compiled without -lanl, |
| 32 | +-and only add the linker flag otherwise. |
| 33 | +- |
| 34 | +-[1] https://sourceware.org/pipermail/libc-alpha/2021-August/129718.html |
| 35 | +-[2] https://autobuild.buildroot.org/results/16223cd838876abc9b6f941f7dc20d23afa32c3b/build-end.log |
| 36 | +- |
| 37 | +-Upstream: https://github.com/eclipse-mosquitto/mosquitto/pull/3358 |
| 38 | +- |
| 39 | +-Signed-off-by: Titouan Christophe <[email protected]> |
| 40 | +---- |
| 41 | +- config.mk | 5 ++++- |
| 42 | +- 1 file changed, 4 insertions(+), 1 deletion(-) |
| 43 | +- |
| 44 | +-diff --git a/config.mk b/config.mk |
| 45 | +-index 34d5163f..cc7987c4 100644 |
| 46 | +---- a/config.mk |
| 47 | +-+++ b/config.mk |
| 48 | +-@@ -318,8 +318,11 @@ ifeq ($(WITH_EC),yes) |
| 49 | +- endif |
| 50 | +- |
| 51 | +- ifeq ($(WITH_ADNS),yes) |
| 52 | +-- BROKER_LDADD:=$(BROKER_LDADD) -lanl |
| 53 | +- BROKER_CPPFLAGS:=$(BROKER_CPPFLAGS) -DWITH_ADNS |
| 54 | +-+ NEED_LIBANL := $(shell printf '#include <stdlib.h>\n#include <netdb.h>\nint main(){return getaddrinfo_a(0, NULL, 0, NULL);}'| $(CC) -D_GNU_SOURCE -o /dev/null -x c - 2>/dev/null || echo YES) |
| 55 | +-+ ifeq ($(NEED_LIBANL),YES) |
| 56 | +-+ BROKER_LDADD:=$(BROKER_LDADD) -lanl |
| 57 | +-+ endif |
| 58 | +- endif |
| 59 | +- |
| 60 | +- ifeq ($(WITH_CONTROL),yes) |
| 61 | +--- |
| 62 | +-2.50.1 |
| 63 | +- |
| 64 | +-- |
| 65 | +2.43.0 |
| 66 | + |
0 commit comments