diff --git a/srcpkgs/iproute2/patches/fix-UINT_MAX-undeclared-with-build-with-musl-libc.patch b/srcpkgs/iproute2/patches/fix-UINT_MAX-undeclared-with-build-with-musl-libc.patch deleted file mode 100644 index f5cf23c7446b95..00000000000000 --- a/srcpkgs/iproute2/patches/fix-UINT_MAX-undeclared-with-build-with-musl-libc.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 6c1113633fde51b0e60f02243cfad1b3d09762cc Mon Sep 17 00:00:00 2001 -From: Akhilesh Nema -Date: Tue, 2 Dec 2025 18:11:24 -0800 -Subject: [PATCH] fix 'UINT_MAX' undeclared with build with musl libc - -- utils_math.c:136:20: error: 'UINT_MAX' undeclared (first use in this function) -- tc_core.c:51:22: error: 'UINT_MAX' undeclared (first use in this function) - -Signed-off-by: Akhilesh Nema ---- - lib/utils_math.c | 1 + - tc/tc_core.c | 1 + - 2 files changed, 2 insertions(+) - -diff --git a/lib/utils_math.c b/lib/utils_math.c -index a7e74744..fd2ddc7c 100644 ---- a/lib/utils_math.c -+++ b/lib/utils_math.c -@@ -4,6 +4,7 @@ - #include - #include - #include -+#include - #include - - #include "utils.h" -diff --git a/tc/tc_core.c b/tc/tc_core.c -index a422e02c..b13b7d78 100644 ---- a/tc/tc_core.c -+++ b/tc/tc_core.c -@@ -11,6 +11,7 @@ - #include - #include - #include -+#include - #include - #include - #include --- -2.51.2 - diff --git a/srcpkgs/iproute2/patches/include-json_print.h-add-includes-for-__u32-and-time.patch b/srcpkgs/iproute2/patches/include-json_print.h-add-includes-for-__u32-and-time.patch new file mode 100644 index 00000000000000..5899ec6b5c09df --- /dev/null +++ b/srcpkgs/iproute2/patches/include-json_print.h-add-includes-for-__u32-and-time.patch @@ -0,0 +1,51 @@ +From 987be669151005097c84d842563b45e0d04c9be5 Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich +Date: Mon, 23 Feb 2026 22:34:35 +0000 +Subject: [PATCH] include/json_print.h: add includes for `__u32` and `timeval` + declarations +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Without the change the build fails on `musl` as: + +``` +../include/json_print.h:100:44: error: unknown type name ‘__u32’ + 100 | unsigned int print_range(const char *name, __u32 start, __u32 end); + | ^~~~~ +... +../include/json_print.h:82:30: warning: ‘struct timeval’ declared inside parameter list will not be visible outside of this definition or declaration + 82 | _PRINT_FUNC(tv, const struct timeval *) + | ^~~~~~~ +../include/json_print.h:57:45: note: in definition of macro ‘_PRINT_FUNC’ + 57 | type value) \ + | ^~~~ +../include/json_print.h: In function ‘print_tv’: +../include/json_print.h:60:48: error: passing argument 5 of ‘print_color_tv’ from incompatible pointer type [-Wincompatible-pointer-types] + 60 | value); \ + | ^~~~~ + | | + | const struct timeval * +``` +--- + include/json_print.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/include/json_print.h b/include/json_print.h +index 59edd5b2..c0d6315f 100644 +--- a/include/json_print.h ++++ b/include/json_print.h +@@ -8,6 +8,10 @@ + #ifndef _JSON_PRINT_H_ + #define _JSON_PRINT_H_ + ++#include /* struct timeval typedef */ ++ ++#include /* __u32 typedef */ ++ + #include "json_writer.h" + #include "color.h" + +-- +2.52.0 + diff --git a/srcpkgs/iproute2/template b/srcpkgs/iproute2/template index 0a6eb290bb5c23..156e62163dc35d 100644 --- a/srcpkgs/iproute2/template +++ b/srcpkgs/iproute2/template @@ -1,6 +1,6 @@ # Template file for 'iproute2' pkgname=iproute2 -version=6.18.0 +version=6.19.0 revision=1 build_style=configure make_install_args="SBINDIR=/usr/bin" @@ -12,7 +12,7 @@ maintainer="Enno Boland " license="GPL-2.0-only" homepage="https://wiki.linuxfoundation.org/networking/iproute2" distfiles="${KERNEL_SITE}/utils/net/iproute2/iproute2-${version}.tar.xz" -checksum=6ba520e1975e4c50dc931eeae91ea37c198b8a173744885f8895b84325f9d456 +checksum=9332213d35480b647086a70c302de8568de83455a98774d35de216c4ce191006 # Requires unshare, which is not provided by chroot-util-linux. make_check=no