diff options
8 files changed, 65 insertions, 108 deletions
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0002-Do-not-create-settings-settings-property-documentati.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0002-Do-not-create-settings-settings-property-documentati.patch index 446637b276..ecd13504d3 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0002-Do-not-create-settings-settings-property-documentati.patch +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0002-Do-not-create-settings-settings-property-documentati.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | From 9eab96351a726e9ce6a15d158f743e35d73a8900 Mon Sep 17 00:00:00 2001 | 1 | From 9eab96351a726e9ce6a15d158f743e35d73a8900 Mon Sep 17 00:00:00 2001 |
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> |
3 | Date: Thu, 22 Mar 2018 11:08:30 +0100 | 3 | Date: Sat, 16 Jan 2021 14:27:38 +0100 |
4 | Subject: [PATCH] Do not create settings settings/property documentation | 4 | Subject: [PATCH] Do not create settings settings/property documentation |
5 | MIME-Version: 1.0 | 5 | MIME-Version: 1.0 |
6 | Content-Type: text/plain; charset=UTF-8 | 6 | Content-Type: text/plain; charset=UTF-8 |
@@ -11,38 +11,44 @@ MIME-Version: 1.0 | |||
11 | Content-Type: text/plain; charset=UTF-8 | 11 | Content-Type: text/plain; charset=UTF-8 |
12 | Content-Transfer-Encoding: 8bit | 12 | Content-Transfer-Encoding: 8bit |
13 | 13 | ||
14 | It was tried to get this work but gi / GirRepository could not be found by | 14 | It was tried to get this work by adding python3-pygobject-native to DEPENDS but |
15 | python. Anyway it is not necessary for us to have the settings/property docs. | 15 | compile could not find (configure passed) python module gi. |
16 | Anyway it is not necessary for us to have the settings/property docs. | ||
16 | 17 | ||
17 | Upstream-Status: Inappropriate [OE specific] | 18 | Upstream-Status: Inappropriate [OE specific] |
18 | 19 | ||
19 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | 20 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> |
20 | 21 | ||
21 | --- | 22 | --- |
22 | Makefile.am | 11 ----------- | 23 | Makefile.am | 13 ------------- |
23 | configure.ac | 5 ----- | 24 | configure.ac | 5 ----- |
24 | 2 files changed, 16 deletions(-) | 25 | 2 files changed, 18 deletions(-) |
25 | 26 | ||
26 | diff --git a/Makefile.am b/Makefile.am | 27 | diff --git a/Makefile.am b/Makefile.am |
27 | index d5cbcf5..2a1819a 100644 | 28 | index 110957a..b4cfbcc 100644 |
28 | --- a/Makefile.am | 29 | --- a/Makefile.am |
29 | +++ b/Makefile.am | 30 | +++ b/Makefile.am |
30 | @@ -1473,9 +1473,7 @@ libnm/libnm.typelib: libnm/libnm.gir | 31 | @@ -1587,14 +1587,10 @@ libnm/libnm.typelib: libnm/libnm.gir |
31 | INTROSPECTION_GIRS += libnm/NM-1.0.gir | 32 | INTROSPECTION_GIRS += libnm/NM-1.0.gir |
32 | 33 | ||
33 | libnm_noinst_data = \ | 34 | libnm_noinst_data = \ |
34 | - libnm/nm-property-docs.xml \ | 35 | - clients/cli/generate-docs-nm-settings-nmcli.xml \ |
35 | libnm/nm-settings-docs-overrides.xml \ | 36 | libnm/nm-property-infos-dbus.xml \ |
36 | - libnm/nm-settings-docs.xml \ | 37 | libnm/nm-property-infos-ifcfg-rh.xml \ |
37 | libnm/nm-settings-keyfile-docs.xml \ | 38 | libnm/nm-property-infos-keyfile.xml \ |
38 | libnm/nm-settings-ifcfg-rh-docs.xml | 39 | libnm/nm-property-infos-nmcli.xml \ |
40 | - libnm/nm-settings-docs-gir.xml \ | ||
41 | - man/nm-settings-docs-dbus.xml \ | ||
42 | - man/nm-settings-docs-nmcli.xml \ | ||
43 | $(NULL) | ||
39 | 44 | ||
40 | @@ -4236,18 +4234,9 @@ $(clients_common_libnmc_base_la_OBJECTS): $(libnm_lib_h_pub_mkenums) | 45 | noinst_DATA += $(libnm_noinst_data) |
46 | @@ -4448,18 +4444,9 @@ $(clients_common_libnmc_base_la_OBJECTS): $(libnm_lib_h_pub_mkenums) | ||
41 | $(clients_common_libnmc_base_la_OBJECTS): clients/common/.dirstamp | 47 | $(clients_common_libnmc_base_la_OBJECTS): clients/common/.dirstamp |
42 | 48 | ||
43 | clients_common_settings_doc_h = clients/common/settings-docs.h | 49 | clients_common_settings_doc_h = clients/common/settings-docs.h |
44 | -if HAVE_INTROSPECTION | 50 | -if HAVE_INTROSPECTION |
45 | -$(clients_common_settings_doc_h): clients/common/settings-docs.xsl libnm/nm-property-docs.xml clients/common/.dirstamp | 51 | -$(clients_common_settings_doc_h): clients/common/settings-docs.xsl libnm/nm-settings-docs-gir.xml clients/common/.dirstamp |
46 | - $(AM_V_GEN) $(XSLTPROC) --output $@ $< $(word 2,$^) | 52 | - $(AM_V_GEN) $(XSLTPROC) --output $@ $< $(word 2,$^) |
47 | -DISTCLEANFILES += $(clients_common_settings_doc_h) | 53 | -DISTCLEANFILES += $(clients_common_settings_doc_h) |
48 | -check-local-settings-docs: $(clients_common_settings_doc_h) | 54 | -check-local-settings-docs: $(clients_common_settings_doc_h) |
@@ -57,18 +63,21 @@ index d5cbcf5..2a1819a 100644 | |||
57 | $(clients_common_settings_doc_h) \ | 63 | $(clients_common_settings_doc_h) \ |
58 | $(clients_common_settings_doc_h).in | 64 | $(clients_common_settings_doc_h).in |
59 | diff --git a/configure.ac b/configure.ac | 65 | diff --git a/configure.ac b/configure.ac |
60 | index ad4b0fc..0092092 100644 | 66 | index 704b1c1..18bba87 100644 |
61 | --- a/configure.ac | 67 | --- a/configure.ac |
62 | +++ b/configure.ac | 68 | +++ b/configure.ac |
63 | @@ -1201,11 +1201,6 @@ GTK_DOC_CHECK(1.0) | 69 | @@ -1228,11 +1228,6 @@ GTK_DOC_CHECK(1.0) |
64 | # check if we can build setting property documentation | 70 | # check if we can build setting property documentation |
65 | build_docs=no | 71 | build_docs=no |
66 | if test -n "$INTROSPECTION_MAKEFILE"; then | 72 | if test -n "$INTROSPECTION_MAKEFILE"; then |
67 | - # If g-i is installed we know we have python, but we might not have pygobject | 73 | - # If g-i is installed we know we have python, but we might not have pygobject |
68 | - if ! "$PYTHON" -c 'from gi.repository import GObject' >& /dev/null; then | 74 | - if ! "$PYTHON" -c 'from gi.repository import GObject' > /dev/null 2>&1; then |
69 | - AC_MSG_ERROR(["--enable-introspection aims to build the settings documentation. This requires GObject introspection for python (pygobject)]) | 75 | - AC_MSG_ERROR(["--enable-introspection aims to build the settings documentation. This requires GObject introspection for python (pygobject)]) |
70 | - fi | 76 | - fi |
71 | - | 77 | - |
72 | AC_PATH_PROG(PERL, perl) | 78 | AC_PATH_PROG(PERL, perl) |
73 | if test -z "$PERL"; then | 79 | if test -z "$PERL"; then |
74 | AC_MSG_ERROR([--enable-introspection requires perl]) | 80 | AC_MSG_ERROR([--enable-introspection requires perl]) |
81 | -- | ||
82 | 2.26.2 | ||
83 | |||
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-install-firewalld-to-var-libdir-rather-than-hardcod-.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0003-install-firewalld-to-var-libdir-rather-than-hardcod-.patch index 11741897f6..11741897f6 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-install-firewalld-to-var-libdir-rather-than-hardcod-.patch +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0003-install-firewalld-to-var-libdir-rather-than-hardcod-.patch | |||
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/fix_reallocarray_check.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0004-fix_reallocarray_check.patch index 0a8de54106..2df449f2eb 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager/fix_reallocarray_check.patch +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0004-fix_reallocarray_check.patch | |||
@@ -6,7 +6,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
6 | --- a/meson.build | 6 | --- a/meson.build |
7 | +++ b/meson.build | 7 | +++ b/meson.build |
8 | @@ -114,7 +114,7 @@ config_h.set10('HAVE_GETRANDOM', use_sys | 8 | @@ -114,7 +114,7 @@ config_h.set10('HAVE_GETRANDOM', use_sys |
9 | # FIXME secure_getenv check is not useful? | 9 | #include <sys/wait.h>''')) |
10 | config_h.set('HAVE_SECURE_GETENV', cc.has_function('secure_getenv')) | 10 | config_h.set('HAVE_SECURE_GETENV', cc.has_function('secure_getenv')) |
11 | config_h.set('HAVE___SECURE_GETENV', cc.has_function('__secure_getenv')) | 11 | config_h.set('HAVE___SECURE_GETENV', cc.has_function('__secure_getenv')) |
12 | -config_h.set10('HAVE_DECL_REALLOCARRAY', cc.has_function('reallocarray', prefix: '#include <malloc.h>')) | 12 | -config_h.set10('HAVE_DECL_REALLOCARRAY', cc.has_function('reallocarray', prefix: '#include <malloc.h>')) |
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0001-Fix-build-with-musl-systemd-specific.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0001-Fix-build-with-musl-systemd-specific.patch index c23fc308fd..7807fc77c6 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0001-Fix-build-with-musl-systemd-specific.patch +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0001-Fix-build-with-musl-systemd-specific.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From e7ed91c48e1a07527a860637a7865eb67ce34cf3 Mon Sep 17 00:00:00 2001 | 1 | From 9597122867c22e949ef3b69c779e0facebce6eb5 Mon Sep 17 00:00:00 2001 |
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> |
3 | Date: Tue, 2 Apr 2019 01:34:35 +0200 | 3 | Date: Tue, 2 Apr 2019 01:34:35 +0200 |
4 | Subject: [PATCH] Fix build with musl - systemd specific | 4 | Subject: [PATCH] Fix build with musl - systemd specific |
@@ -6,6 +6,11 @@ MIME-Version: 1.0 | |||
6 | Content-Type: text/plain; charset=UTF-8 | 6 | Content-Type: text/plain; charset=UTF-8 |
7 | Content-Transfer-Encoding: 8bit | 7 | Content-Transfer-Encoding: 8bit |
8 | 8 | ||
9 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
10 | MIME-Version: 1.0 | ||
11 | Content-Type: text/plain; charset=UTF-8 | ||
12 | Content-Transfer-Encoding: 8bit | ||
13 | |||
9 | Networkmanager imported some code from systemd. This requires some adjustments | 14 | Networkmanager imported some code from systemd. This requires some adjustments |
10 | for musl. | 15 | for musl. |
11 | 16 | ||
@@ -23,7 +28,7 @@ Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | |||
23 | 6 files changed, 27 insertions(+), 23 deletions(-) | 28 | 6 files changed, 27 insertions(+), 23 deletions(-) |
24 | 29 | ||
25 | diff --git a/shared/systemd/src/basic/in-addr-util.c b/shared/systemd/src/basic/in-addr-util.c | 30 | diff --git a/shared/systemd/src/basic/in-addr-util.c b/shared/systemd/src/basic/in-addr-util.c |
26 | index 91d687c..8388304 100644 | 31 | index 1ea3e7f..1204393 100644 |
27 | --- a/shared/systemd/src/basic/in-addr-util.c | 32 | --- a/shared/systemd/src/basic/in-addr-util.c |
28 | +++ b/shared/systemd/src/basic/in-addr-util.c | 33 | +++ b/shared/systemd/src/basic/in-addr-util.c |
29 | @@ -15,6 +15,7 @@ | 34 | @@ -15,6 +15,7 @@ |
@@ -32,10 +37,10 @@ index 91d687c..8388304 100644 | |||
32 | #include "parse-util.h" | 37 | #include "parse-util.h" |
33 | +#include "string-util.h" | 38 | +#include "string-util.h" |
34 | #include "random-util.h" | 39 | #include "random-util.h" |
40 | #include "string-util.h" | ||
35 | #include "strxcpyx.h" | 41 | #include "strxcpyx.h" |
36 | #include "util.h" | ||
37 | diff --git a/shared/systemd/src/basic/process-util.c b/shared/systemd/src/basic/process-util.c | 42 | diff --git a/shared/systemd/src/basic/process-util.c b/shared/systemd/src/basic/process-util.c |
38 | index 1456167..42f51a0 100644 | 43 | index 03ca04e..be8bca8 100644 |
39 | --- a/shared/systemd/src/basic/process-util.c | 44 | --- a/shared/systemd/src/basic/process-util.c |
40 | +++ b/shared/systemd/src/basic/process-util.c | 45 | +++ b/shared/systemd/src/basic/process-util.c |
41 | @@ -17,6 +17,9 @@ | 46 | @@ -17,6 +17,9 @@ |
@@ -48,7 +53,7 @@ index 1456167..42f51a0 100644 | |||
48 | #if 0 /* NM_IGNORED */ | 53 | #if 0 /* NM_IGNORED */ |
49 | #if HAVE_VALGRIND_VALGRIND_H | 54 | #if HAVE_VALGRIND_VALGRIND_H |
50 | #include <valgrind/valgrind.h> | 55 | #include <valgrind/valgrind.h> |
51 | @@ -1123,11 +1126,13 @@ void reset_cached_pid(void) { | 56 | @@ -1152,11 +1155,13 @@ void reset_cached_pid(void) { |
52 | cached_pid = CACHED_PID_UNSET; | 57 | cached_pid = CACHED_PID_UNSET; |
53 | } | 58 | } |
54 | 59 | ||
@@ -62,7 +67,7 @@ index 1456167..42f51a0 100644 | |||
62 | 67 | ||
63 | pid_t getpid_cached(void) { | 68 | pid_t getpid_cached(void) { |
64 | static bool installed = false; | 69 | static bool installed = false; |
65 | @@ -1156,7 +1161,11 @@ pid_t getpid_cached(void) { | 70 | @@ -1185,7 +1190,11 @@ pid_t getpid_cached(void) { |
66 | * only half-documented (glibc doesn't document it but LSB does — though only superficially) | 71 | * only half-documented (glibc doesn't document it but LSB does — though only superficially) |
67 | * we'll check for errors only in the most generic fashion possible. */ | 72 | * we'll check for errors only in the most generic fashion possible. */ |
68 | 73 | ||
@@ -75,7 +80,7 @@ index 1456167..42f51a0 100644 | |||
75 | cached_pid = CACHED_PID_UNSET; | 80 | cached_pid = CACHED_PID_UNSET; |
76 | return new_pid; | 81 | return new_pid; |
77 | diff --git a/shared/systemd/src/basic/socket-util.h b/shared/systemd/src/basic/socket-util.h | 82 | diff --git a/shared/systemd/src/basic/socket-util.h b/shared/systemd/src/basic/socket-util.h |
78 | index a0886e0..da47d14 100644 | 83 | index 1ece911..290e94c 100644 |
79 | --- a/shared/systemd/src/basic/socket-util.h | 84 | --- a/shared/systemd/src/basic/socket-util.h |
80 | +++ b/shared/systemd/src/basic/socket-util.h | 85 | +++ b/shared/systemd/src/basic/socket-util.h |
81 | @@ -14,6 +14,12 @@ | 86 | @@ -14,6 +14,12 @@ |
@@ -92,7 +97,7 @@ index a0886e0..da47d14 100644 | |||
92 | #include "missing_socket.h" | 97 | #include "missing_socket.h" |
93 | #include "sparse-endian.h" | 98 | #include "sparse-endian.h" |
94 | diff --git a/shared/systemd/src/basic/sort-util.h b/shared/systemd/src/basic/sort-util.h | 99 | diff --git a/shared/systemd/src/basic/sort-util.h b/shared/systemd/src/basic/sort-util.h |
95 | index e029f86..1e8b6e1 100644 | 100 | index a8dc3bb..ff0aa88 100644 |
96 | --- a/shared/systemd/src/basic/sort-util.h | 101 | --- a/shared/systemd/src/basic/sort-util.h |
97 | +++ b/shared/systemd/src/basic/sort-util.h | 102 | +++ b/shared/systemd/src/basic/sort-util.h |
98 | @@ -5,15 +5,10 @@ | 103 | @@ -5,15 +5,10 @@ |
@@ -115,9 +120,9 @@ index e029f86..1e8b6e1 100644 | |||
115 | 120 | ||
116 | /** | 121 | /** |
117 | * Normal bsearch requires base to be nonnull. Here were require | 122 | * Normal bsearch requires base to be nonnull. Here were require |
118 | @@ -54,17 +49,3 @@ static inline void qsort_safe(void *base, size_t nmemb, size_t size, __compar_fn | 123 | @@ -54,17 +49,3 @@ static inline void _qsort_safe(void *base, size_t nmemb, size_t size, __compar_f |
119 | int (*_func_)(const typeof(p[0])*, const typeof(p[0])*) = func; \ | 124 | int (*_func_)(const typeof(p[0])*, const typeof(p[0])*) = func; \ |
120 | qsort_safe((p), (n), sizeof((p)[0]), (__compar_fn_t) _func_); \ | 125 | _qsort_safe((p), (n), sizeof((p)[0]), (__compar_fn_t) _func_); \ |
121 | }) | 126 | }) |
122 | - | 127 | - |
123 | -static inline void qsort_r_safe(void *base, size_t nmemb, size_t size, __compar_d_fn_t compar, void *userdata) { | 128 | -static inline void qsort_r_safe(void *base, size_t nmemb, size_t size, __compar_d_fn_t compar, void *userdata) { |
@@ -148,7 +153,7 @@ index c3b9448..e80a938 100644 | |||
148 | #include <stdio.h> | 153 | #include <stdio.h> |
149 | #include <sys/types.h> | 154 | #include <sys/types.h> |
150 | diff --git a/shared/systemd/src/basic/string-util.h b/shared/systemd/src/basic/string-util.h | 155 | diff --git a/shared/systemd/src/basic/string-util.h b/shared/systemd/src/basic/string-util.h |
151 | index 04cc82b..2cf589a 100644 | 156 | index cefbda3..71e4dec 100644 |
152 | --- a/shared/systemd/src/basic/string-util.h | 157 | --- a/shared/systemd/src/basic/string-util.h |
153 | +++ b/shared/systemd/src/basic/string-util.h | 158 | +++ b/shared/systemd/src/basic/string-util.h |
154 | @@ -26,6 +26,11 @@ | 159 | @@ -26,6 +26,11 @@ |
@@ -161,5 +166,5 @@ index 04cc82b..2cf589a 100644 | |||
161 | +#endif | 166 | +#endif |
162 | + | 167 | + |
163 | int strcmp_ptr(const char *a, const char *b) _pure_; | 168 | int strcmp_ptr(const char *a, const char *b) _pure_; |
169 | int strcasecmp_ptr(const char *a, const char *b) _pure_; | ||
164 | 170 | ||
165 | static inline bool streq_ptr(const char *a, const char *b) { | ||
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0002-Fix-build-with-musl.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0002-Fix-build-with-musl.patch index 196a3358d0..0f43c0c684 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0002-Fix-build-with-musl.patch +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0002-Fix-build-with-musl.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 877fbb4e848629ff57371b5bdb0d56369abe9d81 Mon Sep 17 00:00:00 2001 | 1 | From bacc14089c80ec757025789ff054a05e1f9c088d Mon Sep 17 00:00:00 2001 |
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> |
3 | Date: Mon, 8 Apr 2019 23:10:43 +0200 | 3 | Date: Mon, 8 Apr 2019 23:10:43 +0200 |
4 | Subject: [PATCH] Fix build with musl | 4 | Subject: [PATCH] Fix build with musl |
@@ -6,6 +6,11 @@ MIME-Version: 1.0 | |||
6 | Content-Type: text/plain; charset=UTF-8 | 6 | Content-Type: text/plain; charset=UTF-8 |
7 | Content-Transfer-Encoding: 8bit | 7 | Content-Transfer-Encoding: 8bit |
8 | 8 | ||
9 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
10 | MIME-Version: 1.0 | ||
11 | Content-Type: text/plain; charset=UTF-8 | ||
12 | Content-Transfer-Encoding: 8bit | ||
13 | |||
9 | The build issues caused by definition conflicts musl vs linux-libc headers | 14 | The build issues caused by definition conflicts musl vs linux-libc headers |
10 | (error: redefinition of ...) can be reduced to two headers: | 15 | (error: redefinition of ...) can be reduced to two headers: |
11 | 16 | ||
@@ -42,7 +47,7 @@ Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | |||
42 | 5 files changed, 8 insertions(+), 3 deletions(-) | 47 | 5 files changed, 8 insertions(+), 3 deletions(-) |
43 | 48 | ||
44 | diff --git a/clients/tui/nmt-device-entry.c b/clients/tui/nmt-device-entry.c | 49 | diff --git a/clients/tui/nmt-device-entry.c b/clients/tui/nmt-device-entry.c |
45 | index 4ab5932..915248c 100644 | 50 | index 692a467..cf9b32e 100644 |
46 | --- a/clients/tui/nmt-device-entry.c | 51 | --- a/clients/tui/nmt-device-entry.c |
47 | +++ b/clients/tui/nmt-device-entry.c | 52 | +++ b/clients/tui/nmt-device-entry.c |
48 | @@ -26,7 +26,6 @@ | 53 | @@ -26,7 +26,6 @@ |
@@ -54,11 +59,11 @@ index 4ab5932..915248c 100644 | |||
54 | #include "nmtui.h" | 59 | #include "nmtui.h" |
55 | 60 | ||
56 | diff --git a/libnm-core/nm-utils.h b/libnm-core/nm-utils.h | 61 | diff --git a/libnm-core/nm-utils.h b/libnm-core/nm-utils.h |
57 | index 5418a1e..f492da6 100644 | 62 | index 9589c51..b82c5cf 100644 |
58 | --- a/libnm-core/nm-utils.h | 63 | --- a/libnm-core/nm-utils.h |
59 | +++ b/libnm-core/nm-utils.h | 64 | +++ b/libnm-core/nm-utils.h |
60 | @@ -10,6 +10,10 @@ | 65 | @@ -10,6 +10,10 @@ |
61 | #error "Only <NetworkManager.h> can be included directly." | 66 | #error "Only <NetworkManager.h> can be included directly." |
62 | #endif | 67 | #endif |
63 | 68 | ||
64 | +/* include as early as possible for musl */ | 69 | +/* include as early as possible for musl */ |
@@ -69,10 +74,10 @@ index 5418a1e..f492da6 100644 | |||
69 | 74 | ||
70 | #include <netinet/in.h> | 75 | #include <netinet/in.h> |
71 | diff --git a/shared/nm-default.h b/shared/nm-default.h | 76 | diff --git a/shared/nm-default.h b/shared/nm-default.h |
72 | index ace6ede..25357da 100644 | 77 | index b322f1d..c287dbe 100644 |
73 | --- a/shared/nm-default.h | 78 | --- a/shared/nm-default.h |
74 | +++ b/shared/nm-default.h | 79 | +++ b/shared/nm-default.h |
75 | @@ -182,6 +182,9 @@ | 80 | @@ -178,6 +178,9 @@ |
76 | #endif | 81 | #endif |
77 | 82 | ||
78 | #include <stdlib.h> | 83 | #include <stdlib.h> |
@@ -83,7 +88,7 @@ index ace6ede..25357da 100644 | |||
83 | /*****************************************************************************/ | 88 | /*****************************************************************************/ |
84 | 89 | ||
85 | diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c | 90 | diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c |
86 | index 3bbc975..4e8a3f6 100644 | 91 | index 0be05f2..04061f9 100644 |
87 | --- a/src/devices/nm-device.c | 92 | --- a/src/devices/nm-device.c |
88 | +++ b/src/devices/nm-device.c | 93 | +++ b/src/devices/nm-device.c |
89 | @@ -9,6 +9,7 @@ | 94 | @@ -9,6 +9,7 @@ |
@@ -100,10 +105,10 @@ index 3bbc975..4e8a3f6 100644 | |||
100 | #include <linux/if_addr.h> | 105 | #include <linux/if_addr.h> |
101 | -#include <linux/if_arp.h> | 106 | -#include <linux/if_arp.h> |
102 | #include <linux/rtnetlink.h> | 107 | #include <linux/rtnetlink.h> |
103 | #include <linux/pkt_sched.h> | ||
104 | 108 | ||
109 | #include "nm-std-aux/unaligned.h" | ||
105 | diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c | 110 | diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c |
106 | index 7abe4df..9f53147 100644 | 111 | index b377c85..87af59a 100644 |
107 | --- a/src/platform/nm-linux-platform.c | 112 | --- a/src/platform/nm-linux-platform.c |
108 | +++ b/src/platform/nm-linux-platform.c | 113 | +++ b/src/platform/nm-linux-platform.c |
109 | @@ -14,7 +14,6 @@ | 114 | @@ -14,7 +14,6 @@ |
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0003-Fix-build-with-musl-for-n-dhcp4.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0003-Fix-build-with-musl-for-n-dhcp4.patch deleted file mode 100644 index 62252826e2..0000000000 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0003-Fix-build-with-musl-for-n-dhcp4.patch +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
1 | From aff5cded8847f3eee59f5cec22afb8630d401a85 Mon Sep 17 00:00:00 2001 | ||
2 | From: Adrian Freihofer <adrian.freihofer@siemens.com> | ||
3 | Date: Sat, 7 Mar 2020 14:22:36 +0100 | ||
4 | Subject: [PATCH 3/4] Fix build with musl for n-dhcp4 | ||
5 | |||
6 | --- | ||
7 | shared/n-dhcp4/src/n-dhcp4-c-probe.c | 8 ++++++++ | ||
8 | shared/n-dhcp4/src/n-dhcp4-private.h | 4 ++++ | ||
9 | 2 files changed, 12 insertions(+) | ||
10 | |||
11 | diff --git a/shared/n-dhcp4/src/n-dhcp4-c-probe.c b/shared/n-dhcp4/src/n-dhcp4-c-probe.c | ||
12 | index e4477a7..75713c8 100644 | ||
13 | --- a/shared/n-dhcp4/src/n-dhcp4-c-probe.c | ||
14 | +++ b/shared/n-dhcp4/src/n-dhcp4-c-probe.c | ||
15 | @@ -360,8 +360,12 @@ static void n_dhcp4_client_probe_config_initialize_random_seed(NDhcp4ClientProbe | ||
16 | seed16v[1] = (u64 >> 16) ^ (u64 >> 0); | ||
17 | seed16v[2] = (u64 >> 32) ^ (u64 >> 16); | ||
18 | |||
19 | +#ifdef __GLIBC__ | ||
20 | r = seed48_r(seed16v, &config->entropy); | ||
21 | c_assert(!r); | ||
22 | +#else | ||
23 | + memcpy(config->entropy, seed16v, sizeof seed16v); | ||
24 | +#endif | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | @@ -375,10 +379,14 @@ static void n_dhcp4_client_probe_config_initialize_random_seed(NDhcp4ClientProbe | ||
29 | */ | ||
30 | uint32_t n_dhcp4_client_probe_config_get_random(NDhcp4ClientProbeConfig *config) { | ||
31 | long int result; | ||
32 | +#ifdef __GLIBC__ | ||
33 | int r; | ||
34 | |||
35 | r = mrand48_r(&config->entropy, &result); | ||
36 | c_assert(!r); | ||
37 | +#else | ||
38 | + result = jrand48(config->entropy); | ||
39 | +#endif | ||
40 | |||
41 | return result; | ||
42 | }; | ||
43 | diff --git a/shared/n-dhcp4/src/n-dhcp4-private.h b/shared/n-dhcp4/src/n-dhcp4-private.h | ||
44 | index 436ee80..ffcb4b2 100644 | ||
45 | --- a/shared/n-dhcp4/src/n-dhcp4-private.h | ||
46 | +++ b/shared/n-dhcp4/src/n-dhcp4-private.h | ||
47 | @@ -267,7 +267,11 @@ struct NDhcp4ClientProbeConfig { | ||
48 | bool inform_only; | ||
49 | bool init_reboot; | ||
50 | struct in_addr requested_ip; | ||
51 | +#ifdef __GLIBC__ | ||
52 | struct drand48_data entropy; /* entropy pool */ | ||
53 | +#else | ||
54 | + unsigned short entropy[3]; /* entropy pool */ | ||
55 | +#endif | ||
56 | uint64_t ms_start_delay; /* max ms to wait before starting probe */ | ||
57 | NDhcp4ClientProbeOption *options[UINT8_MAX + 1]; | ||
58 | int8_t request_parameters[UINT8_MAX + 1]; | ||
59 | -- | ||
60 | 2.24.1 | ||
61 | |||
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0004-Fix-build-with-musl-systemd-specific.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0003-Fix-build-with-musl-systemd-specific.patch index 55aa4d2655..5735d51a8c 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0004-Fix-build-with-musl-systemd-specific.patch +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0003-Fix-build-with-musl-systemd-specific.patch | |||
@@ -1,14 +1,14 @@ | |||
1 | From 80c7d3391510993cba1a7499bf33a5b2b115280d Mon Sep 17 00:00:00 2001 | 1 | From ed748a28076eada9f38e3f4a476f28d7a10ba84b Mon Sep 17 00:00:00 2001 |
2 | From: Adrian Freihofer <adrian.freihofer@siemens.com> | 2 | From: Adrian Freihofer <adrian.freihofer@siemens.com> |
3 | Date: Sat, 7 Mar 2020 14:24:01 +0100 | 3 | Date: Sat, 7 Mar 2020 14:24:01 +0100 |
4 | Subject: [PATCH 4/4] Fix build with musl - systemd specific | 4 | Subject: [PATCH] Fix build with musl - systemd specific |
5 | 5 | ||
6 | --- | 6 | --- |
7 | src/systemd/src/libsystemd-network/sd-dhcp6-client.c | 2 ++ | 7 | src/systemd/src/libsystemd-network/sd-dhcp6-client.c | 2 ++ |
8 | 1 file changed, 2 insertions(+) | 8 | 1 file changed, 2 insertions(+) |
9 | 9 | ||
10 | diff --git a/src/systemd/src/libsystemd-network/sd-dhcp6-client.c b/src/systemd/src/libsystemd-network/sd-dhcp6-client.c | 10 | diff --git a/src/systemd/src/libsystemd-network/sd-dhcp6-client.c b/src/systemd/src/libsystemd-network/sd-dhcp6-client.c |
11 | index e1150f9..2c63bac 100644 | 11 | index ec7f1be..31bcd4d 100644 |
12 | --- a/src/systemd/src/libsystemd-network/sd-dhcp6-client.c | 12 | --- a/src/systemd/src/libsystemd-network/sd-dhcp6-client.c |
13 | +++ b/src/systemd/src/libsystemd-network/sd-dhcp6-client.c | 13 | +++ b/src/systemd/src/libsystemd-network/sd-dhcp6-client.c |
14 | @@ -7,7 +7,9 @@ | 14 | @@ -7,7 +7,9 @@ |
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.22.14.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.28.0.bb index aa8ab899bb..1053bdd427 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.22.14.bb +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.28.0.bb | |||
@@ -26,16 +26,15 @@ SRC_URI = " \ | |||
26 | file://${BPN}.initd \ | 26 | file://${BPN}.initd \ |
27 | file://0001-Fixed-configure.ac-Fix-pkgconfig-sysroot-locations.patch \ | 27 | file://0001-Fixed-configure.ac-Fix-pkgconfig-sysroot-locations.patch \ |
28 | file://0002-Do-not-create-settings-settings-property-documentati.patch \ | 28 | file://0002-Do-not-create-settings-settings-property-documentati.patch \ |
29 | file://0001-install-firewalld-to-var-libdir-rather-than-hardcod-.patch \ | 29 | file://0003-install-firewalld-to-var-libdir-rather-than-hardcod-.patch \ |
30 | file://fix_reallocarray_check.patch \ | 30 | file://0004-fix_reallocarray_check.patch \ |
31 | " | 31 | " |
32 | SRC_URI_append_libc-musl = " \ | 32 | SRC_URI_append_libc-musl = " \ |
33 | file://musl/0001-Fix-build-with-musl-systemd-specific.patch \ | 33 | file://musl/0001-Fix-build-with-musl-systemd-specific.patch \ |
34 | file://musl/0002-Fix-build-with-musl.patch \ | 34 | file://musl/0002-Fix-build-with-musl.patch \ |
35 | file://musl/0003-Fix-build-with-musl-for-n-dhcp4.patch \ | 35 | file://musl/0003-Fix-build-with-musl-systemd-specific.patch \ |
36 | file://musl/0004-Fix-build-with-musl-systemd-specific.patch \ | ||
37 | " | 36 | " |
38 | SRC_URI[sha256sum] = "c6893971936a1ce252ba4fdff830c972d2ae93fec6751b57dcfd3ad9f0c949dd" | 37 | SRC_URI[sha256sum] = "3e170e9045e20598d2630e40c5789b2e2c46b942bfe5cb220f36202299253062" |
39 | 38 | ||
40 | S = "${WORKDIR}/NetworkManager-${PV}" | 39 | S = "${WORKDIR}/NetworkManager-${PV}" |
41 | 40 | ||