diff options
| author | Andreas Müller <schnitzeltony@gmail.com> | 2021-07-06 11:13:22 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-07-08 09:21:40 -0700 |
| commit | 08d4c28d166b05d29082d644e93ef71a42a67ed9 (patch) | |
| tree | f5bcf80ca2a4e49d7a4425b1945fc7cc5c6bdf50 | |
| parent | 5b680652b77e4acdfd53855a2f77d977e9044db0 (diff) | |
| download | meta-openembedded-08d4c28d166b05d29082d644e93ef71a42a67ed9.tar.gz | |
networkmanager: upgrade 1.30.4 -> 1.32.2
Did not find hints upstream but musl build turned painless!
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-connectivity/networkmanager/networkmanager/0002-Do-not-create-settings-settings-property-documentati.patch | 33 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0001-Fix-build-with-musl-systemd-specific.patch | 154 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0002-Fix-build-with-musl-systemd-specific.patch | 26 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/networkmanager/networkmanager_1.32.2.bb (renamed from meta-networking/recipes-connectivity/networkmanager/networkmanager_1.30.4.bb) | 8 |
4 files changed, 19 insertions, 202 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 0a86abafc0..86e8eaafc5 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 d0dead0478a070b96f37bd3b310443eaa8c93a25 Mon Sep 17 00:00:00 2001 | 1 | From d0dead0478a070b96f37bd3b310443eaa8c93a25 Mon Sep 17 00:00:00 2001 |
| 2 | From: Vinicius Aquino <voa.aquino@gmail.com> | 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> |
| 3 | Date: Thu, 1 Apr 2021 14:13:07 -0300 | 3 | Date: Mon, 5 Jul 2021 00:42:23 +0200 |
| 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 |
| @@ -15,34 +15,35 @@ Upstream-Status: Inappropriate [OE specific] | |||
| 15 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | 15 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> |
| 16 | Signed-off-by: Vinicius Aquino <voa.aquino@gmail.com> | 16 | Signed-off-by: Vinicius Aquino <voa.aquino@gmail.com> |
| 17 | --- | 17 | --- |
| 18 | Makefile.am | 4 ---- | 18 | Makefile.am | 5 ----- |
| 19 | configure.ac | 5 ----- | 19 | configure.ac | 5 ----- |
| 20 | 2 files changed, 9 deletions(-) | 20 | 2 files changed, 10 deletions(-) |
| 21 | 21 | ||
| 22 | diff --git a/Makefile.am b/Makefile.am | 22 | diff --git a/Makefile.am b/Makefile.am |
| 23 | index 9279672c1..2e52acbb2 100644 | 23 | index 5a62070..3d0ebcd 100644 |
| 24 | --- a/Makefile.am | 24 | --- a/Makefile.am |
| 25 | +++ b/Makefile.am | 25 | +++ b/Makefile.am |
| 26 | @@ -1686,14 +1686,10 @@ libnm/libnm.typelib: libnm/libnm.gir | 26 | @@ -1860,15 +1860,10 @@ src/libnm-client-impl/libnm.typelib: src/libnm-client-impl/libnm.gir |
| 27 | INTROSPECTION_GIRS += libnm/NM-1.0.gir | 27 | INTROSPECTION_GIRS += src/libnm-client-impl/NM-1.0.gir |
| 28 | 28 | ||
| 29 | libnm_noinst_data = \ | 29 | libnm_noinst_data = \ |
| 30 | - clients/cli/generate-docs-nm-settings-nmcli.xml \ | 30 | - src/nmcli/generate-docs-nm-settings-nmcli.xml \ |
| 31 | libnm/nm-property-infos-dbus.xml \ | ||
| 32 | libnm/nm-property-infos-ifcfg-rh.xml \ | ||
| 33 | libnm/nm-property-infos-keyfile.xml \ | ||
| 34 | libnm/nm-property-infos-nmcli.xml \ | ||
| 35 | - libnm/nm-settings-docs-gir.xml \ | ||
| 36 | - man/nm-settings-docs-dbus.xml \ | 31 | - man/nm-settings-docs-dbus.xml \ |
| 37 | - man/nm-settings-docs-nmcli.xml \ | 32 | - man/nm-settings-docs-nmcli.xml \ |
| 33 | src/libnm-client-impl/nm-property-infos-dbus.xml \ | ||
| 34 | src/libnm-client-impl/nm-property-infos-ifcfg-rh.xml \ | ||
| 35 | src/libnm-client-impl/nm-property-infos-keyfile.xml \ | ||
| 36 | src/libnm-client-impl/nm-property-infos-nmcli.xml \ | ||
| 37 | - src/libnm-client-impl/nm-settings-docs-gir.xml \ | ||
| 38 | - src/libnmc-setting/settings-docs-input.xml \ | ||
| 38 | $(NULL) | 39 | $(NULL) |
| 39 | 40 | ||
| 40 | noinst_DATA += $(libnm_noinst_data) | 41 | noinst_DATA += $(libnm_noinst_data) |
| 41 | diff --git a/configure.ac b/configure.ac | 42 | diff --git a/configure.ac b/configure.ac |
| 42 | index 784ac4695..681e6cb32 100644 | 43 | index 8fe23de..dc24850 100644 |
| 43 | --- a/configure.ac | 44 | --- a/configure.ac |
| 44 | +++ b/configure.ac | 45 | +++ b/configure.ac |
| 45 | @@ -1241,11 +1241,6 @@ GTK_DOC_CHECK(1.0) | 46 | @@ -1258,11 +1258,6 @@ GTK_DOC_CHECK(1.0) |
| 46 | # check if we can build setting property documentation | 47 | # check if we can build setting property documentation |
| 47 | build_docs=no | 48 | build_docs=no |
| 48 | if test -n "$INTROSPECTION_MAKEFILE"; then | 49 | if test -n "$INTROSPECTION_MAKEFILE"; then |
| @@ -55,5 +56,5 @@ index 784ac4695..681e6cb32 100644 | |||
| 55 | if test -z "$PERL"; then | 56 | if test -z "$PERL"; then |
| 56 | AC_MSG_ERROR([--enable-introspection requires perl]) | 57 | AC_MSG_ERROR([--enable-introspection requires perl]) |
| 57 | -- | 58 | -- |
| 58 | 2.20.1 | 59 | 2.31.1 |
| 59 | 60 | ||
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 deleted file mode 100644 index 692f1ffa4f..0000000000 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0001-Fix-build-with-musl-systemd-specific.patch +++ /dev/null | |||
| @@ -1,154 +0,0 @@ | |||
| 1 | From 44884c7e7655b889f41cb02ffc8ab72a29b52ebf Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Tue, 2 Apr 2019 01:34:35 +0200 | ||
| 4 | Subject: [PATCH 1/2] Fix build with musl - systemd specific | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | MIME-Version: 1.0 | ||
| 10 | Content-Type: text/plain; charset=UTF-8 | ||
| 11 | Content-Transfer-Encoding: 8bit | ||
| 12 | |||
| 13 | Networkmanager imported some code from systemd. This requires some adjustments | ||
| 14 | for musl. | ||
| 15 | |||
| 16 | Upstream-Status: Pending | ||
| 17 | |||
| 18 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 19 | Signed-off-by: Vinicius Aquino <voa.aquino@gmail.com> | ||
| 20 | --- | ||
| 21 | shared/systemd/src/basic/in-addr-util.c | 1 + | ||
| 22 | shared/systemd/src/basic/process-util.c | 9 +++++++++ | ||
| 23 | shared/systemd/src/basic/socket-util.h | 6 ++++++ | ||
| 24 | shared/systemd/src/basic/sort-util.h | 13 ++++--------- | ||
| 25 | shared/systemd/src/basic/stdio-util.h | 2 ++ | ||
| 26 | shared/systemd/src/basic/string-util.h | 5 +++++ | ||
| 27 | 6 files changed, 27 insertions(+), 9 deletions(-) | ||
| 28 | |||
| 29 | diff --git a/shared/systemd/src/basic/in-addr-util.c b/shared/systemd/src/basic/in-addr-util.c | ||
| 30 | index c315dcbb8..5b7e04eb7 100644 | ||
| 31 | --- a/shared/systemd/src/basic/in-addr-util.c | ||
| 32 | +++ b/shared/systemd/src/basic/in-addr-util.c | ||
| 33 | @@ -15,6 +15,7 @@ | ||
| 34 | #include "in-addr-util.h" | ||
| 35 | #include "macro.h" | ||
| 36 | #include "parse-util.h" | ||
| 37 | +#include "string-util.h" | ||
| 38 | #include "random-util.h" | ||
| 39 | #include "string-util.h" | ||
| 40 | #include "strxcpyx.h" | ||
| 41 | diff --git a/shared/systemd/src/basic/process-util.c b/shared/systemd/src/basic/process-util.c | ||
| 42 | index 0e25b0200..ea2c0fbb4 100644 | ||
| 43 | --- a/shared/systemd/src/basic/process-util.c | ||
| 44 | +++ b/shared/systemd/src/basic/process-util.c | ||
| 45 | @@ -17,6 +17,9 @@ | ||
| 46 | #include <sys/wait.h> | ||
| 47 | #include <syslog.h> | ||
| 48 | #include <unistd.h> | ||
| 49 | +#ifndef __GLIBC__ | ||
| 50 | +#include <pthread.h> | ||
| 51 | +#endif | ||
| 52 | #if 0 /* NM_IGNORED */ | ||
| 53 | #if HAVE_VALGRIND_VALGRIND_H | ||
| 54 | #include <valgrind/valgrind.h> | ||
| 55 | @@ -1152,11 +1155,13 @@ void reset_cached_pid(void) { | ||
| 56 | cached_pid = CACHED_PID_UNSET; | ||
| 57 | } | ||
| 58 | |||
| 59 | +#ifdef __GLIBC__ | ||
| 60 | /* We use glibc __register_atfork() + __dso_handle directly here, as they are not included in the glibc | ||
| 61 | * headers. __register_atfork() is mostly equivalent to pthread_atfork(), but doesn't require us to link against | ||
| 62 | * libpthread, as it is part of glibc anyway. */ | ||
| 63 | extern int __register_atfork(void (*prepare) (void), void (*parent) (void), void (*child) (void), void *dso_handle); | ||
| 64 | extern void* __dso_handle _weak_; | ||
| 65 | +#endif | ||
| 66 | |||
| 67 | pid_t getpid_cached(void) { | ||
| 68 | static bool installed = false; | ||
| 69 | @@ -1185,7 +1190,11 @@ pid_t getpid_cached(void) { | ||
| 70 | * only half-documented (glibc doesn't document it but LSB does — though only superficially) | ||
| 71 | * we'll check for errors only in the most generic fashion possible. */ | ||
| 72 | |||
| 73 | +#ifdef __GLIBC__ | ||
| 74 | if (__register_atfork(NULL, NULL, reset_cached_pid, __dso_handle) != 0) { | ||
| 75 | +#else | ||
| 76 | + if (pthread_atfork(NULL, NULL, reset_cached_pid) != 0) { | ||
| 77 | +#endif | ||
| 78 | /* OOM? Let's try again later */ | ||
| 79 | cached_pid = CACHED_PID_UNSET; | ||
| 80 | return new_pid; | ||
| 81 | diff --git a/shared/systemd/src/basic/socket-util.h b/shared/systemd/src/basic/socket-util.h | ||
| 82 | index 1de069476..f6834fbd2 100644 | ||
| 83 | --- a/shared/systemd/src/basic/socket-util.h | ||
| 84 | +++ b/shared/systemd/src/basic/socket-util.h | ||
| 85 | @@ -14,6 +14,12 @@ | ||
| 86 | #include <sys/types.h> | ||
| 87 | #include <sys/un.h> | ||
| 88 | |||
| 89 | +#if !defined(__GLIBC__) | ||
| 90 | +/* SIOCGSTAMPNS from linux/asm-generic.h | ||
| 91 | + * for src/systemd/src/libsystemd-network/sd-lldp.c */ | ||
| 92 | +#include <linux/sockios.h> | ||
| 93 | +#endif | ||
| 94 | + | ||
| 95 | #include "macro.h" | ||
| 96 | #include "missing_network.h" | ||
| 97 | #include "missing_socket.h" | ||
| 98 | diff --git a/shared/systemd/src/basic/sort-util.h b/shared/systemd/src/basic/sort-util.h | ||
| 99 | index a8984fc16..5fb90f8c5 100644 | ||
| 100 | --- a/shared/systemd/src/basic/sort-util.h | ||
| 101 | +++ b/shared/systemd/src/basic/sort-util.h | ||
| 102 | @@ -5,15 +5,10 @@ | ||
| 103 | |||
| 104 | #include "macro.h" | ||
| 105 | |||
| 106 | -void *xbsearch_r(const void *key, const void *base, size_t nmemb, size_t size, | ||
| 107 | - __compar_d_fn_t compar, void *arg); | ||
| 108 | - | ||
| 109 | -#define typesafe_bsearch_r(k, b, n, func, userdata) \ | ||
| 110 | - ({ \ | ||
| 111 | - const typeof(b[0]) *_k = k; \ | ||
| 112 | - int (*_func_)(const typeof(b[0])*, const typeof(b[0])*, typeof(userdata)) = func; \ | ||
| 113 | - xbsearch_r((const void*) _k, (b), (n), sizeof((b)[0]), (__compar_d_fn_t) _func_, userdata); \ | ||
| 114 | - }) | ||
| 115 | +#if !defined(__GLIBC__) | ||
| 116 | +typedef int (*__compar_fn_t) (const void*, const void*); | ||
| 117 | +typedef __compar_fn_t comparison_fn_t; | ||
| 118 | +#endif | ||
| 119 | |||
| 120 | /** | ||
| 121 | * Normal bsearch requires base to be nonnull. Here were require | ||
| 122 | diff --git a/shared/systemd/src/basic/stdio-util.h b/shared/systemd/src/basic/stdio-util.h | ||
| 123 | index d45d3c1a6..fee1a57ca 100644 | ||
| 124 | --- a/shared/systemd/src/basic/stdio-util.h | ||
| 125 | +++ b/shared/systemd/src/basic/stdio-util.h | ||
| 126 | @@ -2,7 +2,9 @@ | ||
| 127 | #pragma once | ||
| 128 | |||
| 129 | #if 0 /* NM_IGNORED */ | ||
| 130 | +#if defined(__GLIBC__) | ||
| 131 | #include <printf.h> | ||
| 132 | +#endif | ||
| 133 | #endif /* NM_IGNORED */ | ||
| 134 | #include <stdarg.h> | ||
| 135 | #include <stdio.h> | ||
| 136 | diff --git a/shared/systemd/src/basic/string-util.h b/shared/systemd/src/basic/string-util.h | ||
| 137 | index 593cf04ae..541c393f6 100644 | ||
| 138 | --- a/shared/systemd/src/basic/string-util.h | ||
| 139 | +++ b/shared/systemd/src/basic/string-util.h | ||
| 140 | @@ -26,6 +26,11 @@ | ||
| 141 | #define strcaseeq(a,b) (strcasecmp((a),(b)) == 0) | ||
| 142 | #define strncaseeq(a, b, n) (strncasecmp((a), (b), (n)) == 0) | ||
| 143 | |||
| 144 | +/* musl does not know strndupa */ | ||
| 145 | +#if !defined(__GLIBC__) | ||
| 146 | +#define strndupa(x,s) strncpy(alloca(strlen(x)+1),x,s) | ||
| 147 | +#endif | ||
| 148 | + | ||
| 149 | int strcmp_ptr(const char *a, const char *b) _pure_; | ||
| 150 | int strcasecmp_ptr(const char *a, const char *b) _pure_; | ||
| 151 | |||
| 152 | -- | ||
| 153 | 2.20.1 | ||
| 154 | |||
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0002-Fix-build-with-musl-systemd-specific.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0002-Fix-build-with-musl-systemd-specific.patch deleted file mode 100644 index d83efd39e4..0000000000 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager/musl/0002-Fix-build-with-musl-systemd-specific.patch +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 1 | From 7d9a11a17da425d106791ada7100d7a6559e6065 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Adrian Freihofer <adrian.freihofer@siemens.com> | ||
| 3 | Date: Sat, 7 Mar 2020 14:24:01 +0100 | ||
| 4 | Subject: [PATCH 2/2] Fix build with musl - systemd specific | ||
| 5 | |||
| 6 | --- | ||
| 7 | src/core/systemd/src/libsystemd-network/sd-dhcp6-client.c | 2 ++ | ||
| 8 | 1 file changed, 2 insertions(+) | ||
| 9 | |||
| 10 | diff --git a/src/core/systemd/src/libsystemd-network/sd-dhcp6-client.c b/src/core/systemd/src/libsystemd-network/sd-dhcp6-client.c | ||
| 11 | index 3fafd3c0e..79d6096c2 100644 | ||
| 12 | --- a/src/core/systemd/src/libsystemd-network/sd-dhcp6-client.c | ||
| 13 | +++ b/src/core/systemd/src/libsystemd-network/sd-dhcp6-client.c | ||
| 14 | @@ -8,7 +8,9 @@ | ||
| 15 | #include <errno.h> | ||
| 16 | #include <sys/ioctl.h> | ||
| 17 | #if 0 /* NM_IGNORED */ | ||
| 18 | +#ifdef __GLIBC__ /* musl supplies full set of userspace headers */ | ||
| 19 | #include <linux/if_arp.h> | ||
| 20 | +#endif | ||
| 21 | #else /* NM_IGNORED */ | ||
| 22 | #include <net/if_arp.h> | ||
| 23 | #endif /* NM_IGNORED */ | ||
| 24 | -- | ||
| 25 | 2.20.1 | ||
| 26 | |||
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.30.4.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.32.2.bb index 7c07b0a34d..a01e53009b 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.30.4.bb +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.32.2.bb | |||
| @@ -27,11 +27,7 @@ SRC_URI = " \ | |||
| 27 | file://0002-Do-not-create-settings-settings-property-documentati.patch \ | 27 | file://0002-Do-not-create-settings-settings-property-documentati.patch \ |
| 28 | file://0003-install-firewalld-to-var-libdir-rather-than-hardcod-.patch \ | 28 | file://0003-install-firewalld-to-var-libdir-rather-than-hardcod-.patch \ |
| 29 | " | 29 | " |
| 30 | SRC_URI_append_libc-musl = " \ | 30 | SRC_URI[sha256sum] = "701d511067f757d0f92f412c98cdb49a74a6ba69448aabb1beadacbc171e3873" |
| 31 | file://musl/0001-Fix-build-with-musl-systemd-specific.patch \ | ||
| 32 | file://musl/0002-Fix-build-with-musl-systemd-specific.patch \ | ||
| 33 | " | ||
| 34 | SRC_URI[sha256sum] = "6050b724212ea3ce7386113359bea9afa1f679a54f60d999a5999892e672c190" | ||
| 35 | 31 | ||
| 36 | S = "${WORKDIR}/NetworkManager-${PV}" | 32 | S = "${WORKDIR}/NetworkManager-${PV}" |
| 37 | 33 | ||
| @@ -56,7 +52,7 @@ CFLAGS_append_libc-musl = " \ | |||
| 56 | " | 52 | " |
| 57 | 53 | ||
| 58 | do_compile_prepend() { | 54 | do_compile_prepend() { |
| 59 | export GIR_EXTRA_LIBS_PATH="${B}/libnm/.libs:${B}/libnm-glib/.libs:${B}/libnm-util/.libs" | 55 | export GIR_EXTRA_LIBS_PATH="${B}/src/libnm-client-impl/.libs" |
| 60 | } | 56 | } |
| 61 | 57 | ||
| 62 | PACKAGECONFIG ??= "nss ifupdown dnsmasq nmcli \ | 58 | PACKAGECONFIG ??= "nss ifupdown dnsmasq nmcli \ |
