summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Tatrai <peter.tatrai.ext@siemens.com>2025-08-28 12:40:47 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-09-08 14:05:10 +0100
commit3dafec98e2d674c4fd338cf408636d276f58863c (patch)
treebada51de17d259b1574c79eb484eb63a19f77858
parent70e8497ce575e7350d85e4e7567a17acec84d8cf (diff)
downloadpoky-3dafec98e2d674c4fd338cf408636d276f58863c.tar.gz
connman: Revert removal of no-version-scripts patch
This commit restores the no-version-scripts.patch for ConnMan, which was removed in the commit (5c269ba9a396832af3f8139ecaa0cfd9f7d4d1b5) as part of cleaning up gold and MIPS binutils workarounds. The removal of this patch caused runtime crashes (segfaults) on the powerpc target due to symbol visibility issues with glib and stdio. Re-adding the patch resolves these crashes by disabling version scripts in the linker flags. (From OE-Core rev: 6ba2c24b8e063afec0041c54bb80a2f4f44b526c) Signed-off-by: Peter Tatrai <peter.tatrai.ext@siemens.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-connectivity/connman/connman/no-version-scripts.patch48
-rw-r--r--meta/recipes-connectivity/connman/connman_1.45.bb1
2 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/connman/connman/no-version-scripts.patch b/meta/recipes-connectivity/connman/connman/no-version-scripts.patch
new file mode 100644
index 0000000000..c96ab311e5
--- /dev/null
+++ b/meta/recipes-connectivity/connman/connman/no-version-scripts.patch
@@ -0,0 +1,48 @@
1From 67f37aafcc8ef5d2eb006387e7bec21f74518727 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@intel.com>
3Date: Tue, 9 Aug 2016 12:12:02 +0100
4Subject: [PATCH] connman: disable version-scripts to fix crashes at startup
5
6With binutils 2.27 on at least PowerPC, connmand will crash on `connmand --help`.
7This appears to be due to the symbol visibilty scripts hiding symbols that stdio
8looks up at runtime, resulting in it segfaulting.
9
10This certainly appears to be a bug in binutils 2.27 although the problem has
11been known about for some time:
12
13https://sourceware.org/bugzilla/show_bug.cgi?id=17908
14
15As the version scripts are only used to hide symbols from plugins we can safely
16remove the scripts to work around the problem until binutils is fixed.
17
18Upstream-Status: Inappropriate
19Signed-off-by: Ross Burton <ross.burton@intel.com>
20Signed-off-by: Peter Tatrai <peter.tatrai.ext@siemens.com>
21---
22 Makefile.am | 6 ++----
23 1 file changed, 2 insertions(+), 4 deletions(-)
24
25diff --git a/Makefile.am b/Makefile.am
26index 3dc3bb5..3be5ccb 100644
27--- a/Makefile.am
28+++ b/Makefile.am
29@@ -143,8 +143,7 @@ src_connmand_LDADD = gdbus/libgdbus-internal.la $(builtin_libadd) \
30 @GIO_LIBS@ @GLIB_LIBS@ @DBUS_LIBS@ @GNUTLS_LIBS@ \
31 -lresolv -ldl -lrt
32
33-src_connmand_LDFLAGS = -Wl,--export-dynamic \
34- -Wl,--version-script=$(srcdir)/src/connman.ver
35+src_connmand_LDFLAGS = -Wl,--export-dynamic
36
37 src_connmand_wait_online_SOURCES = src/connmand-wait-online.c
38
39@@ -187,8 +186,7 @@ vpn_connman_vpnd_LDADD = gdbus/libgdbus-internal.la $(builtin_vpn_libadd) \
40 @GIO_LIBS@ @GLIB_LIBS@ @DBUS_LIBS@ @GNUTLS_LIBS@ \
41 -lresolv -ldl
42
43-vpn_connman_vpnd_LDFLAGS = -Wl,--export-dynamic \
44- -Wl,--version-script=$(srcdir)/vpn/vpn.ver
45+vpn_connman_vpnd_LDFLAGS = -Wl,--export-dynamic
46 endif
47
48 BUILT_SOURCES = $(local_headers) src/builtin.h $(service_files) \
diff --git a/meta/recipes-connectivity/connman/connman_1.45.bb b/meta/recipes-connectivity/connman/connman_1.45.bb
index cfc6114712..85f14eb80e 100644
--- a/meta/recipes-connectivity/connman/connman_1.45.bb
+++ b/meta/recipes-connectivity/connman/connman_1.45.bb
@@ -20,6 +20,7 @@ DEPENDS = "dbus glib-2.0"
20 20
21SRC_URI = "${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \ 21SRC_URI = "${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \
22 file://connman \ 22 file://connman \
23 file://no-version-scripts.patch \
23 file://0002-resolve-musl-does-not-implement-res_ninit.patch \ 24 file://0002-resolve-musl-does-not-implement-res_ninit.patch \
24 " 25 "
25 26