summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/iproute2
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-09-22 09:24:09 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-26 10:35:27 +0100
commit16bf2e4da5b45dfc00e637e8f33df7aa5224ce33 (patch)
tree2ce2cd4693461b35f1a7321f16cc8193169dc90f /meta/recipes-connectivity/iproute2
parent52669a67b1c9ddd908f0fa96ff801a8aa3056623 (diff)
downloadpoky-16bf2e4da5b45dfc00e637e8f33df7aa5224ce33.tar.gz
iproute2: upgrade 6.4.0 -> 6.5.0
Set CONF_USR_DIR explicitly as upstream hardcodes 'lib' in it. Fix up iproute2-ip packaging to reflect that, and fix multilib error where the executable would end up in the main package. (From OE-Core rev: c88d6e94c0df3079410930abff9af0a08930ec8c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/iproute2')
-rw-r--r--meta/recipes-connectivity/iproute2/iproute2/0001-bridge-mdb.c-include-limits.h.patch41
-rw-r--r--meta/recipes-connectivity/iproute2/iproute2_6.5.0.bb (renamed from meta/recipes-connectivity/iproute2/iproute2_6.4.0.bb)6
2 files changed, 3 insertions, 44 deletions
diff --git a/meta/recipes-connectivity/iproute2/iproute2/0001-bridge-mdb.c-include-limits.h.patch b/meta/recipes-connectivity/iproute2/iproute2/0001-bridge-mdb.c-include-limits.h.patch
deleted file mode 100644
index f9a0e35d83..0000000000
--- a/meta/recipes-connectivity/iproute2/iproute2/0001-bridge-mdb.c-include-limits.h.patch
+++ /dev/null
@@ -1,41 +0,0 @@
1From b13f04c0c685b6d2474aa7d97e191531f327bc45 Mon Sep 17 00:00:00 2001
2From: Trevor Gamblin <tgamblin@baylibre.com>
3Date: Thu, 20 Jul 2023 14:32:23 -0400
4Subject: [PATCH] bridge/mdb.c: include limits.h
5
6Upstream-Status: Submitted
7(https://lore.kernel.org/netdev/20230720203726.2316251-1-tgamblin@baylibre.com/)
8
9While building iproute2 6.4.0 with musl using Yocto Project, errors such
10as the following were encountered:
11
12| mdb.c: In function 'mdb_parse_vni':
13| mdb.c:666:47: error: 'ULONG_MAX' undeclared (first use in this function)
14| 666 | if ((endptr && *endptr) || vni_num == ULONG_MAX)
15| | ^~~~~~~~~
16| mdb.c:666:47: note: 'ULONG_MAX' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?
17
18Include limits.h in bridge/mdb.c to fix this issue. This change is based
19on one in Alpine Linux, but the author there had no plans to submit:
20https://git.alpinelinux.org/aports/commit/main/iproute2/include.patch?id=bd46efb8a8da54948639cebcfa5b37bd608f1069
21
22Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
23---
24 bridge/mdb.c | 1 +
25 1 file changed, 1 insertion(+)
26
27diff --git a/bridge/mdb.c b/bridge/mdb.c
28index fbb4f704..18793458 100644
29--- a/bridge/mdb.c
30+++ b/bridge/mdb.c
31@@ -15,6 +15,7 @@
32 #include <string.h>
33 #include <arpa/inet.h>
34 #include <netdb.h>
35+#include <limits.h>
36
37 #include "libnetlink.h"
38 #include "utils.h"
39--
402.41.0
41
diff --git a/meta/recipes-connectivity/iproute2/iproute2_6.4.0.bb b/meta/recipes-connectivity/iproute2/iproute2_6.5.0.bb
index 32e2f8176b..2b28b10c20 100644
--- a/meta/recipes-connectivity/iproute2/iproute2_6.4.0.bb
+++ b/meta/recipes-connectivity/iproute2/iproute2_6.5.0.bb
@@ -13,10 +13,9 @@ DEPENDS = "flex-native bison-native iptables libcap"
13 13
14SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BP}.tar.xz \ 14SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BP}.tar.xz \
15 file://0001-libc-compat.h-add-musl-workaround.patch \ 15 file://0001-libc-compat.h-add-musl-workaround.patch \
16 file://0001-bridge-mdb.c-include-limits.h.patch \
17 " 16 "
18 17
19SRC_URI[sha256sum] = "4c51b8decbc7e4da159ffb066f590cfb93dbf9af7ff86b1647ce42b7c179a272" 18SRC_URI[sha256sum] = "a70179085fa1b96d3c33b040c809b75e2b57563adc505a4ad05e2609df373463"
20 19
21inherit update-alternatives bash-completion pkgconfig 20inherit update-alternatives bash-completion pkgconfig
22 21
@@ -37,6 +36,7 @@ EXTRA_OEMAKE = "\
37 DOCDIR=${docdir}/iproute2 \ 36 DOCDIR=${docdir}/iproute2 \
38 SUBDIRS='${IPROUTE2_MAKE_SUBDIRS}' \ 37 SUBDIRS='${IPROUTE2_MAKE_SUBDIRS}' \
39 SBINDIR='${base_sbindir}' \ 38 SBINDIR='${base_sbindir}' \
39 CONF_USR_DIR='${libdir}/iproute2' \
40 LIBDIR='${libdir}' \ 40 LIBDIR='${libdir}' \
41 CCOPTS='${CFLAGS}' \ 41 CCOPTS='${CFLAGS}' \
42" 42"
@@ -82,7 +82,7 @@ FILES:${PN}-lnstat = "${base_sbindir}/lnstat \
82 ${base_sbindir}/ctstat \ 82 ${base_sbindir}/ctstat \
83 ${base_sbindir}/rtstat" 83 ${base_sbindir}/rtstat"
84FILES:${PN}-ifstat = "${base_sbindir}/ifstat" 84FILES:${PN}-ifstat = "${base_sbindir}/ifstat"
85FILES:${PN}-ip = "${base_sbindir}/ip.${PN} ${sysconfdir}/iproute2" 85FILES:${PN}-ip = "${base_sbindir}/ip.* ${libdir}/iproute2"
86FILES:${PN}-genl = "${base_sbindir}/genl" 86FILES:${PN}-genl = "${base_sbindir}/genl"
87FILES:${PN}-rtacct = "${base_sbindir}/rtacct" 87FILES:${PN}-rtacct = "${base_sbindir}/rtacct"
88FILES:${PN}-nstat = "${base_sbindir}/nstat" 88FILES:${PN}-nstat = "${base_sbindir}/nstat"