diff options
-rw-r--r-- | meta-networking/recipes-connectivity/networkmanager/networkmanager/fix_reallocarray_check.patch | 27 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/networkmanager/networkmanager_1.22.14.bb | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/fix_reallocarray_check.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/fix_reallocarray_check.patch new file mode 100644 index 0000000000..0a8de54106 --- /dev/null +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager/fix_reallocarray_check.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | reallocarray() is coming from stdlib.h which maybe indirectly included | ||
2 | by malloc.h but not on all libc implementations | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
6 | --- a/meson.build | ||
7 | +++ b/meson.build | ||
8 | @@ -114,7 +114,7 @@ config_h.set10('HAVE_GETRANDOM', use_sys | ||
9 | # FIXME secure_getenv check is not useful? | ||
10 | 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>')) | ||
13 | +config_h.set10('HAVE_DECL_REALLOCARRAY', cc.has_function('reallocarray', prefix: '#include <stdlib.h>')) | ||
14 | config_h.set10('HAVE_DECL_EXPLICIT_BZERO', cc.has_function('explicit_bzero', prefix: '#include <string.h>')) | ||
15 | config_h.set10('HAVE_DECL_MEMFD_CREATE', cc.has_function('memfd_create', prefix: '#include <sys/mman.h>')) | ||
16 | |||
17 | --- a/configure.ac | ||
18 | +++ b/configure.ac | ||
19 | @@ -82,7 +82,7 @@ AC_CHECK_DECLS([ | ||
20 | AC_CHECK_DECLS([ | ||
21 | reallocarray], | ||
22 | [], [], [[ | ||
23 | -#include <malloc.h> | ||
24 | +#include <stdlib.h> | ||
25 | ]]) | ||
26 | |||
27 | AC_CHECK_DECLS([ | ||
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.22.14.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.22.14.bb index 2613076a7e..aa8ab899bb 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.22.14.bb +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.22.14.bb | |||
@@ -27,6 +27,7 @@ SRC_URI = " \ | |||
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://0001-install-firewalld-to-var-libdir-rather-than-hardcod-.patch \ |
30 | file://fix_reallocarray_check.patch \ | ||
30 | " | 31 | " |
31 | SRC_URI_append_libc-musl = " \ | 32 | SRC_URI_append_libc-musl = " \ |
32 | file://musl/0001-Fix-build-with-musl-systemd-specific.patch \ | 33 | file://musl/0001-Fix-build-with-musl-systemd-specific.patch \ |