package/iproute2: bump to version 6.13.0

Changelog - https://github.com/iproute2/iproute2/compare/v6.12.0...v6.13.0

Drop 0001-Fix-implicit-declaration-of-function-htobe64-in-gcc-.patch
Upstream commit - https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=c8b3ecc22ed0edaf0259eaf7d1a5c04f300ad6e4

Drop 0002-Fix-implicit-declaration-of-function-basename-in-gcc.patch
Upstream commit - https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=fa3949b792e275f75d7d6200dc2036ef7fff8816

Note: Since commit [1] "package/iproute2: bump to version 6.12.0",
iproute2 can fail to build with musl libc with error:

    iplink.c: In function 'iplink_parse':
    iplink.c:663:43: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'AF_MAX'?
      663 |                                 char path[PATH_MAX];
          |                                           ^~~~~~~~

This is fixed with iproute2 commit [2] included in this 6.13.0 version.

Fixes:
- https://autobuild.buildroot.org/results/029493e02f5c2858fc987ba7a4c8fe53deb27017/
- and many others...

[1] 4d40998db8
[2] 7e23da91fc

Signed-off-by: Akhilesh Nema <nemaakhilesh@gmail.com>
[Julien: add a commit log comment about the fixed build failures]
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Akhilesh Nema
2025-01-20 23:42:17 -08:00
committed by Julien Olivain
parent 16adbd4df0
commit 739acecd13
4 changed files with 2 additions and 78 deletions

View File

@@ -1,43 +0,0 @@
From ea78477cba25b50e7f63f02635e6870d72dcf68e Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Wed, 14 Aug 2024 19:10:09 +0200
Subject: [PATCH] Fix implicit declaration of function 'htobe64' in gcc 14 on
musl systems
On musl systems with GCC 14 and above, the htobe64 function cannot be
found by default. From the man page[0], the function is from endian.h
header file. If the file is not included in, then we get the following
error message. The issue however cannot be reproduced on glibc systems.
In file included from ../include/libgenl.h:5,
from libgenl.c:12:
../include/libnetlink.h: In function 'rta_getattr_be64':
../include/libnetlink.h:281:16: error: implicit declaration of function 'htobe64' [-Wimplicit-function-declaration]
281 | return htobe64(rta_getattr_u64(rta));
| ^~~~~~~
make[1]: *** [../config.include:24: libgenl.o] Error 1
[0]: https://linux.die.net/man/3/htobe64
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Upstream: https://lore.kernel.org/netdev/20240514084335.19f5b280@hermes.local/T/
---
include/libnetlink.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/libnetlink.h b/include/libnetlink.h
index 30f0c2d2..77e81815 100644
--- a/include/libnetlink.h
+++ b/include/libnetlink.h
@@ -12,6 +12,7 @@
#include <linux/neighbour.h>
#include <linux/netconf.h>
#include <arpa/inet.h>
+#include <endian.h>
struct rtnl_handle {
int fd;
--
2.39.2

View File

@@ -1,33 +0,0 @@
From 482b7362dedc57d0c9783bd83084919ccaa79e77 Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Wed, 14 Aug 2024 19:43:44 +0200
Subject: [PATCH] Fix implicit declaration of function basename in gcc-14.x
From Alpine Linux.
https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/iproute2/basename.patch?ref_type=heads
But also reported Upstream via netdev mailinglist by Gentoo people.
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Upstream: https://marc.info/?l=linux-netdev&m=172278781323421&w=2
---
rdma/rdma.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/rdma/rdma.c b/rdma/rdma.c
index 131c6b2a..1e7db382 100644
--- a/rdma/rdma.c
+++ b/rdma/rdma.c
@@ -8,6 +8,9 @@
#include "version.h"
#include "color.h"
+/* For basename(3) prototype */
+#include <libgen.h>
+
/* Global utils flags */
int json;
--
2.39.2

View File

@@ -1,3 +1,3 @@
# From https://kernel.org/pub/linux/utils/net/iproute2/sha256sums.asc
sha256 bbd141ef7b5d0127cc2152843ba61f274dc32814fa3e0f13e7d07a080bef53d9 iproute2-6.12.0.tar.xz
sha256 a43aa43338d882b44d01e549f3f105a92ae9feea32a82fae45a88e7a49302819 iproute2-6.13.0.tar.xz
sha256 e6d6a009505e345fe949e1310334fcb0747f28dae2856759de102ab66b722cb4 COPYING

View File

@@ -4,7 +4,7 @@
#
################################################################################
IPROUTE2_VERSION = 6.12.0
IPROUTE2_VERSION = 6.13.0
IPROUTE2_SOURCE = iproute2-$(IPROUTE2_VERSION).tar.xz
IPROUTE2_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/net/iproute2
IPROUTE2_DEPENDENCIES = host-bison host-flex host-pkgconf \