diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-08-10 22:54:33 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 19:22:04 +0100 |
| commit | e4f3c93c33b3fefd16cb70e76c55097632450f57 (patch) | |
| tree | 5cc2a391ed5e16d3aeccdb0512ec17c7ce3ebc63 | |
| parent | 8cfe74e01adf895134373a10b3fa5bf84fd5cb6d (diff) | |
| download | poky-uninative-3.7.tar.gz | |
iproute2: Fix netns check during configureuninative-3.7
Check would fail with compilers using -Werror since _GNU_SOURCE is
needed for this function.
(From OE-Core rev: f820e177f9d1d1f1c3c9411003e44d04961e1ba4)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-connectivity/iproute2/iproute2/0001-configure-Define-_GNU_SOURCE-when-checking-for-setns.patch | 28 | ||||
| -rw-r--r-- | meta/recipes-connectivity/iproute2/iproute2_5.19.0.bb | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/iproute2/iproute2/0001-configure-Define-_GNU_SOURCE-when-checking-for-setns.patch b/meta/recipes-connectivity/iproute2/iproute2/0001-configure-Define-_GNU_SOURCE-when-checking-for-setns.patch new file mode 100644 index 0000000000..04d44ef444 --- /dev/null +++ b/meta/recipes-connectivity/iproute2/iproute2/0001-configure-Define-_GNU_SOURCE-when-checking-for-setns.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From dc837a6b4c2cad7f31cddfe56cd652e26baadc02 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 10 Aug 2022 22:31:03 -0700 | ||
| 4 | Subject: [PATCH] configure: Define _GNU_SOURCE when checking for setns | ||
| 5 | |||
| 6 | glibc defines this function only as gnu extention | ||
| 7 | |||
| 8 | Upstream-Status: Submitted [https://lore.kernel.org/netdev/20220811053440.778649-1-raj.khem@gmail.com/T/#u] | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | configure | 1 + | ||
| 12 | 1 file changed, 1 insertion(+) | ||
| 13 | |||
| 14 | diff --git a/configure b/configure | ||
| 15 | index 440facb..c02753b 100755 | ||
| 16 | --- a/configure | ||
| 17 | +++ b/configure | ||
| 18 | @@ -191,6 +191,7 @@ check_ipt_lib_dir() | ||
| 19 | check_setns() | ||
| 20 | { | ||
| 21 | cat >$TMPDIR/setnstest.c <<EOF | ||
| 22 | +#define _GNU_SOURCE | ||
| 23 | #include <sched.h> | ||
| 24 | int main(int argc, char **argv) | ||
| 25 | { | ||
| 26 | -- | ||
| 27 | 2.37.1 | ||
| 28 | |||
diff --git a/meta/recipes-connectivity/iproute2/iproute2_5.19.0.bb b/meta/recipes-connectivity/iproute2/iproute2_5.19.0.bb index c45920b015..6a007797c9 100644 --- a/meta/recipes-connectivity/iproute2/iproute2_5.19.0.bb +++ b/meta/recipes-connectivity/iproute2/iproute2_5.19.0.bb | |||
| @@ -3,6 +3,7 @@ require iproute2.inc | |||
| 3 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BP}.tar.xz \ | 3 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BP}.tar.xz \ |
| 4 | file://0001-libc-compat.h-add-musl-workaround.patch \ | 4 | file://0001-libc-compat.h-add-musl-workaround.patch \ |
| 5 | file://0001-ip-ipstats.c-add-an-include-where-MIN-is-defined.patch \ | 5 | file://0001-ip-ipstats.c-add-an-include-where-MIN-is-defined.patch \ |
| 6 | file://0001-configure-Define-_GNU_SOURCE-when-checking-for-setns.patch \ | ||
| 6 | " | 7 | " |
| 7 | 8 | ||
| 8 | SRC_URI[sha256sum] = "26b7a34d6a7fd2f7a42e2b39c5a90cb61bac522d1096067ffeb195e5693d7791" | 9 | SRC_URI[sha256sum] = "26b7a34d6a7fd2f7a42e2b39c5a90cb61bac522d1096067ffeb195e5693d7791" |
