mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
52669a67b1
commit
16bf2e4da5
@@ -1,41 +0,0 @@
|
||||
From b13f04c0c685b6d2474aa7d97e191531f327bc45 Mon Sep 17 00:00:00 2001
|
||||
From: Trevor Gamblin <tgamblin@baylibre.com>
|
||||
Date: Thu, 20 Jul 2023 14:32:23 -0400
|
||||
Subject: [PATCH] bridge/mdb.c: include limits.h
|
||||
|
||||
Upstream-Status: Submitted
|
||||
(https://lore.kernel.org/netdev/20230720203726.2316251-1-tgamblin@baylibre.com/)
|
||||
|
||||
While building iproute2 6.4.0 with musl using Yocto Project, errors such
|
||||
as the following were encountered:
|
||||
|
||||
| mdb.c: In function 'mdb_parse_vni':
|
||||
| mdb.c:666:47: error: 'ULONG_MAX' undeclared (first use in this function)
|
||||
| 666 | if ((endptr && *endptr) || vni_num == ULONG_MAX)
|
||||
| | ^~~~~~~~~
|
||||
| mdb.c:666:47: note: 'ULONG_MAX' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?
|
||||
|
||||
Include limits.h in bridge/mdb.c to fix this issue. This change is based
|
||||
on one in Alpine Linux, but the author there had no plans to submit:
|
||||
https://git.alpinelinux.org/aports/commit/main/iproute2/include.patch?id=bd46efb8a8da54948639cebcfa5b37bd608f1069
|
||||
|
||||
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
|
||||
---
|
||||
bridge/mdb.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/bridge/mdb.c b/bridge/mdb.c
|
||||
index fbb4f704..18793458 100644
|
||||
--- a/bridge/mdb.c
|
||||
+++ b/bridge/mdb.c
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <string.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
+#include <limits.h>
|
||||
|
||||
#include "libnetlink.h"
|
||||
#include "utils.h"
|
||||
--
|
||||
2.41.0
|
||||
|
||||
@@ -13,10 +13,9 @@ DEPENDS = "flex-native bison-native iptables libcap"
|
||||
|
||||
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BP}.tar.xz \
|
||||
file://0001-libc-compat.h-add-musl-workaround.patch \
|
||||
file://0001-bridge-mdb.c-include-limits.h.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "4c51b8decbc7e4da159ffb066f590cfb93dbf9af7ff86b1647ce42b7c179a272"
|
||||
SRC_URI[sha256sum] = "a70179085fa1b96d3c33b040c809b75e2b57563adc505a4ad05e2609df373463"
|
||||
|
||||
inherit update-alternatives bash-completion pkgconfig
|
||||
|
||||
@@ -37,6 +36,7 @@ EXTRA_OEMAKE = "\
|
||||
DOCDIR=${docdir}/iproute2 \
|
||||
SUBDIRS='${IPROUTE2_MAKE_SUBDIRS}' \
|
||||
SBINDIR='${base_sbindir}' \
|
||||
CONF_USR_DIR='${libdir}/iproute2' \
|
||||
LIBDIR='${libdir}' \
|
||||
CCOPTS='${CFLAGS}' \
|
||||
"
|
||||
@@ -82,7 +82,7 @@ FILES:${PN}-lnstat = "${base_sbindir}/lnstat \
|
||||
${base_sbindir}/ctstat \
|
||||
${base_sbindir}/rtstat"
|
||||
FILES:${PN}-ifstat = "${base_sbindir}/ifstat"
|
||||
FILES:${PN}-ip = "${base_sbindir}/ip.${PN} ${sysconfdir}/iproute2"
|
||||
FILES:${PN}-ip = "${base_sbindir}/ip.* ${libdir}/iproute2"
|
||||
FILES:${PN}-genl = "${base_sbindir}/genl"
|
||||
FILES:${PN}-rtacct = "${base_sbindir}/rtacct"
|
||||
FILES:${PN}-nstat = "${base_sbindir}/nstat"
|
||||
Reference in New Issue
Block a user