summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2025-04-02 16:02:14 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-03 11:06:20 +0100
commit2430a96138eba1456672c5f6f46d287540bd7c31 (patch)
treef438e7cfa703fa9ff4cee8d5f7cb670a3967aa01
parentfbecb1dc200455781eb44e01aced458c9bfe3156 (diff)
downloadpoky-2430a96138eba1456672c5f6f46d287540bd7c31.tar.gz
connman: Delete patches for gold and MIPS binutils fix
gold is no longer built/supported. The workaround for binutils on MIPS no longer appears to be required. Also fix up tabs/whitespace in shell functions, correct HOMEPAGE, drop broken BUGTRACKER link. (From OE-Core rev: 5c269ba9a396832af3f8139ecaa0cfd9f7d4d1b5) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-connectivity/connman/connman/0001-plugin.h-Change-visibility-to-default-for-debug-symb.patch31
-rw-r--r--meta/recipes-connectivity/connman/connman/no-version-scripts.patch47
-rw-r--r--meta/recipes-connectivity/connman/connman_1.44.bb13
3 files changed, 5 insertions, 86 deletions
diff --git a/meta/recipes-connectivity/connman/connman/0001-plugin.h-Change-visibility-to-default-for-debug-symb.patch b/meta/recipes-connectivity/connman/connman/0001-plugin.h-Change-visibility-to-default-for-debug-symb.patch
deleted file mode 100644
index a68707b2fa..0000000000
--- a/meta/recipes-connectivity/connman/connman/0001-plugin.h-Change-visibility-to-default-for-debug-symb.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From c254226d4ebbd846c1f8169d70413a0d32d7ae77 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 7 Apr 2012 18:52:12 -0700
4Subject: [PATCH] plugin.h: Change visibility to default for debug symbols
5
6gold refuses to link in undefined weak symbols which
7have hidden visibility
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10
11Upstream-Status: Pending
12---
13 include/plugin.h | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/include/plugin.h b/include/plugin.h
17index 8d2bb08..a12a6be 100644
18--- a/include/plugin.h
19+++ b/include/plugin.h
20@@ -89,9 +89,9 @@ struct connman_plugin_desc {
21 #else
22 #define CONNMAN_PLUGIN_DEFINE(name, description, version, priority, init, exit) \
23 extern struct connman_debug_desc __start___debug[] \
24- __attribute__ ((weak, visibility("hidden"))); \
25+ __attribute__ ((weak, visibility("default"))); \
26 extern struct connman_debug_desc __stop___debug[] \
27- __attribute__ ((weak, visibility("hidden"))); \
28+ __attribute__ ((weak, visibility("default"))); \
29 extern struct connman_plugin_desc connman_plugin_desc \
30 __attribute__ ((visibility("default"))); \
31 struct connman_plugin_desc connman_plugin_desc = { \
diff --git a/meta/recipes-connectivity/connman/connman/no-version-scripts.patch b/meta/recipes-connectivity/connman/connman/no-version-scripts.patch
deleted file mode 100644
index 3667a166f6..0000000000
--- a/meta/recipes-connectivity/connman/connman/no-version-scripts.patch
+++ /dev/null
@@ -1,47 +0,0 @@
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 MIPS, connmand will crash on startup. This
7appears 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>
20---
21 Makefile.am | 6 ++----
22 1 file changed, 2 insertions(+), 4 deletions(-)
23
24diff --git a/Makefile.am b/Makefile.am
25index 3dc3bb5..3be5ccb 100644
26--- a/Makefile.am
27+++ b/Makefile.am
28@@ -143,8 +143,7 @@ src_connmand_LDADD = gdbus/libgdbus-internal.la $(builtin_libadd) \
29 @GIO_LIBS@ @GLIB_LIBS@ @DBUS_LIBS@ @GNUTLS_LIBS@ \
30 -lresolv -ldl -lrt
31
32-src_connmand_LDFLAGS = -Wl,--export-dynamic \
33- -Wl,--version-script=$(srcdir)/src/connman.ver
34+src_connmand_LDFLAGS = -Wl,--export-dynamic
35
36 src_connmand_wait_online_SOURCES = src/connmand-wait-online.c
37
38@@ -187,8 +186,7 @@ vpn_connman_vpnd_LDADD = gdbus/libgdbus-internal.la $(builtin_vpn_libadd) \
39 @GIO_LIBS@ @GLIB_LIBS@ @DBUS_LIBS@ @GNUTLS_LIBS@ \
40 -lresolv -ldl
41
42-vpn_connman_vpnd_LDFLAGS = -Wl,--export-dynamic \
43- -Wl,--version-script=$(srcdir)/vpn/vpn.ver
44+vpn_connman_vpnd_LDFLAGS = -Wl,--export-dynamic
45 endif
46
47 BUILT_SOURCES = $(local_headers) src/builtin.h $(service_files) \
diff --git a/meta/recipes-connectivity/connman/connman_1.44.bb b/meta/recipes-connectivity/connman/connman_1.44.bb
index 1cd97d342f..553a377684 100644
--- a/meta/recipes-connectivity/connman/connman_1.44.bb
+++ b/meta/recipes-connectivity/connman/connman_1.44.bb
@@ -7,8 +7,7 @@ It is a fully modular system that can be extended, through plug-ins, \
7to support all kinds of wired or wireless technologies. Also, \ 7to support all kinds of wired or wireless technologies. Also, \
8configuration methods, like DHCP and domain name resolving, are \ 8configuration methods, like DHCP and domain name resolving, are \
9implemented using plug-ins." 9implemented using plug-ins."
10HOMEPAGE = "http://connman.net/" 10HOMEPAGE = "https://web.git.kernel.org/pub/scm/network/connman/connman.git/about/"
11BUGTRACKER = "https://01.org/jira/browse/CM"
12LICENSE = "GPL-2.0-only" 11LICENSE = "GPL-2.0-only"
13LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ 12LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
14 file://src/main.c;beginline=1;endline=20;md5=486a279a6ab0c8d152bcda3a5b5edc36" 13 file://src/main.c;beginline=1;endline=20;md5=486a279a6ab0c8d152bcda3a5b5edc36"
@@ -20,10 +19,8 @@ CVE_PRODUCT = "connman connection_manager"
20DEPENDS = "dbus glib-2.0 ppp" 19DEPENDS = "dbus glib-2.0 ppp"
21 20
22SRC_URI = "${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \ 21SRC_URI = "${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \
23 file://0001-plugin.h-Change-visibility-to-default-for-debug-symb.patch \
24 file://0001-connman.service-stop-systemd-resolved-when-we-use-co.patch \ 22 file://0001-connman.service-stop-systemd-resolved-when-we-use-co.patch \
25 file://connman \ 23 file://connman \
26 file://no-version-scripts.patch \
27 file://0002-resolve-musl-does-not-implement-res_ninit.patch \ 24 file://0002-resolve-musl-does-not-implement-res_ninit.patch \
28 " 25 "
29 26
@@ -116,10 +113,10 @@ do_install:append() {
116 # plugins directory to be present for ownership 113 # plugins directory to be present for ownership
117 mkdir -p ${D}${libdir}/connman/plugins 114 mkdir -p ${D}${libdir}/connman/plugins
118 115
119 # For read-only filesystem, do not create links during bootup 116 # For read-only filesystem, do not create links during bootup
120 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then 117 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
121 ln -sf ../run/connman/resolv.conf ${D}${sysconfdir}/resolv-conf.connman 118 ln -sf ../run/connman/resolv.conf ${D}${sysconfdir}/resolv-conf.connman
122 fi 119 fi
123} 120}
124 121
125# These used to be plugins, but now they are core 122# These used to be plugins, but now they are core