diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-08-31 22:35:18 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-08-31 22:37:05 -0700 |
commit | 87ae6f0c225815706c45482ffc6f0747f8e0dd54 (patch) | |
tree | f3753ed8e7cd4ff542cd69c17063361bcb747e1a | |
parent | 05e32934d064daa186742084586b3111036a8e1b (diff) | |
download | meta-openembedded-87ae6f0c225815706c45482ffc6f0747f8e0dd54.tar.gz |
networkmanager: Fix build on musl
musl does not need _IO_stdin_used, since its not provided by toolchain
runtime ( crt files ) lld linker complains about undefined global symbol
on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2 files changed, 42 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-linker-scripts-Do-not-export-_IO_stdin_used.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-linker-scripts-Do-not-export-_IO_stdin_used.patch new file mode 100644 index 0000000000..71ad01f51c --- /dev/null +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-linker-scripts-Do-not-export-_IO_stdin_used.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 3ee6967689b3da30cc4551885d8bcdd44a7a9b52 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 31 Aug 2023 21:16:55 -0700 | ||
4 | Subject: [PATCH] linker-scripts: Do not export _IO_stdin_used | ||
5 | |||
6 | This is glibc specific and it is not needed with musl. | ||
7 | See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835550 | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | linker-script-binary.ver | 1 - | ||
13 | tools/create-exports-NetworkManager.sh | 1 - | ||
14 | 2 files changed, 2 deletions(-) | ||
15 | |||
16 | diff --git a/linker-script-binary.ver b/linker-script-binary.ver | ||
17 | index a2780c0..f030d35 100644 | ||
18 | --- a/linker-script-binary.ver | ||
19 | +++ b/linker-script-binary.ver | ||
20 | @@ -1,6 +1,5 @@ | ||
21 | { | ||
22 | global: | ||
23 | - _IO_stdin_used; | ||
24 | local: | ||
25 | *; | ||
26 | }; | ||
27 | diff --git a/tools/create-exports-NetworkManager.sh b/tools/create-exports-NetworkManager.sh | ||
28 | index ef4b381..60865ad 100755 | ||
29 | --- a/tools/create-exports-NetworkManager.sh | ||
30 | +++ b/tools/create-exports-NetworkManager.sh | ||
31 | @@ -54,7 +54,6 @@ get_symbols_nm () { | ||
32 | |||
33 | get_symbols_explicit() { | ||
34 | cat <<EOF | _sort | ||
35 | -_IO_stdin_used | ||
36 | EOF | ||
37 | } | ||
38 | |||
39 | -- | ||
40 | 2.42.0 | ||
41 | |||
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.44.0.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.44.0.bb index 9ecb2f12f6..84ef70c9af 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.44.0.bb +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.44.0.bb | |||
@@ -31,6 +31,7 @@ SRC_URI = " \ | |||
31 | file://enable-dhcpcd.conf \ | 31 | file://enable-dhcpcd.conf \ |
32 | file://enable-iwd.conf \ | 32 | file://enable-iwd.conf \ |
33 | " | 33 | " |
34 | SRC_URI:append:libc-musl = " file://0001-linker-scripts-Do-not-export-_IO_stdin_used.patch" | ||
34 | 35 | ||
35 | SRC_URI[sha256sum] = "edca09637d182f806b3b12d8c5623d7badbd73ccca1ae63be20d2f298779fb9f" | 36 | SRC_URI[sha256sum] = "edca09637d182f806b3b12d8c5623d7badbd73ccca1ae63be20d2f298779fb9f" |
36 | 37 | ||