summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmeta/recipes-connectivity/connman/connman/0001-connman-vpn-avoid-hiding-implementation-reserved-sym.patch50
-rw-r--r--meta/recipes-connectivity/connman/connman_1.45.bb1
2 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/connman/connman/0001-connman-vpn-avoid-hiding-implementation-reserved-sym.patch b/meta/recipes-connectivity/connman/connman/0001-connman-vpn-avoid-hiding-implementation-reserved-sym.patch
new file mode 100755
index 0000000000..3b7b5a096e
--- /dev/null
+++ b/meta/recipes-connectivity/connman/connman/0001-connman-vpn-avoid-hiding-implementation-reserved-sym.patch
@@ -0,0 +1,50 @@
1From eac489c872c775c88bbd85b4cec6c1d47ad9e6a6 Mon Sep 17 00:00:00 2001
2From: Peter Tatrai <peter.tatrai.ext@siemens.com>
3Date: Sun, 7 Sep 2025 09:25:20 +0200
4Subject: [PATCH] connman, vpn: avoid hiding implementation-reserved symbols
5
6When using 'local: *;' in the version script, all symbols, including those
7reserved for the implementation (such as _IO_stdin_used), are hidden. This
8causes glibc's libio to misdetect the libc version, leading to a crash when
9glibc prints to stdout (e.g., with connmand --help) on PowerPC.
10
11Change 'local: *;' to 'local: [!_]*;' to avoid hiding symbols starting with an
12underscore, as recommended in glibc bug 17908
13(https://sourceware.org/bugzilla/show_bug.cgi?id=17908). This ensures libio can
14correctly detect the libc version and prevents the crash.
15
16Reference: https://sourceware.org/bugzilla/show_bug.cgi?id=17908
17
18Upstream-Status: Submitted [https://lore.kernel.org/connman/20250907081844.1558-1-peter.tatrai.ext@siemens.com/]
19
20Signed-off-by: Peter Tatrai <peter.tatrai.ext@siemens.com>
21---
22 src/connman.ver | 2 +-
23 vpn/vpn.ver | 2 +-
24 2 files changed, 2 insertions(+), 2 deletions(-)
25
26diff --git a/src/connman.ver b/src/connman.ver
27index 03a0eec..b75e90d 100644
28--- a/src/connman.ver
29+++ b/src/connman.ver
30@@ -3,5 +3,5 @@
31 connman_*;
32 g_dbus_*;
33 local:
34- *;
35+ [!_]*;
36 };
37diff --git a/vpn/vpn.ver b/vpn/vpn.ver
38index b887706..5cad344 100644
39--- a/vpn/vpn.ver
40+++ b/vpn/vpn.ver
41@@ -4,5 +4,5 @@
42 vpn_*;
43 g_dbus_*;
44 local:
45- *;
46+ [!_]*;
47 };
48--
492.47.2
50
diff --git a/meta/recipes-connectivity/connman/connman_1.45.bb b/meta/recipes-connectivity/connman/connman_1.45.bb
index 85f14eb80e..ca0337b4d3 100644
--- a/meta/recipes-connectivity/connman/connman_1.45.bb
+++ b/meta/recipes-connectivity/connman/connman_1.45.bb
@@ -21,6 +21,7 @@ DEPENDS = "dbus glib-2.0"
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://no-version-scripts.patch \
24 file://0001-connman-vpn-avoid-hiding-implementation-reserved-sym.patch \
24 file://0002-resolve-musl-does-not-implement-res_ninit.patch \ 25 file://0002-resolve-musl-does-not-implement-res_ninit.patch \
25 " 26 "
26 27