diff options
-rw-r--r-- | meta/recipes-connectivity/connman/connman/no-version-scripts.patch | 48 | ||||
-rw-r--r-- | meta/recipes-connectivity/connman/connman_1.45.bb | 1 |
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 @@ | |||
1 | From 67f37aafcc8ef5d2eb006387e7bec21f74518727 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ross Burton <ross.burton@intel.com> | ||
3 | Date: Tue, 9 Aug 2016 12:12:02 +0100 | ||
4 | Subject: [PATCH] connman: disable version-scripts to fix crashes at startup | ||
5 | |||
6 | With binutils 2.27 on at least PowerPC, connmand will crash on `connmand --help`. | ||
7 | This appears to be due to the symbol visibilty scripts hiding symbols that stdio | ||
8 | looks up at runtime, resulting in it segfaulting. | ||
9 | |||
10 | This certainly appears to be a bug in binutils 2.27 although the problem has | ||
11 | been known about for some time: | ||
12 | |||
13 | https://sourceware.org/bugzilla/show_bug.cgi?id=17908 | ||
14 | |||
15 | As the version scripts are only used to hide symbols from plugins we can safely | ||
16 | remove the scripts to work around the problem until binutils is fixed. | ||
17 | |||
18 | Upstream-Status: Inappropriate | ||
19 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
20 | Signed-off-by: Peter Tatrai <peter.tatrai.ext@siemens.com> | ||
21 | --- | ||
22 | Makefile.am | 6 ++---- | ||
23 | 1 file changed, 2 insertions(+), 4 deletions(-) | ||
24 | |||
25 | diff --git a/Makefile.am b/Makefile.am | ||
26 | index 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 | ||
21 | SRC_URI = "${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \ | 21 | SRC_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 | ||