commit:     063779bef9dcbf9f76360d89a18d89f95a7c025d
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  8 12:30:47 2024 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Dec  8 12:30:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=063779be

sys-apps/iproute2: add patch for <limits.h> on musl

Closes: https://bugs.gentoo.org/946088
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../iproute2/files/iproute2-6.12.0-musl-3.patch    | 37 ++++++++++++++++++++++
 sys-apps/iproute2/iproute2-6.12.0.ebuild           |  1 +
 2 files changed, 38 insertions(+)

diff --git a/sys-apps/iproute2/files/iproute2-6.12.0-musl-3.patch 
b/sys-apps/iproute2/files/iproute2-6.12.0-musl-3.patch
new file mode 100644
index 000000000000..37eeb84aa350
--- /dev/null
+++ b/sys-apps/iproute2/files/iproute2-6.12.0-musl-3.patch
@@ -0,0 +1,37 @@
+https://github.com/iproute2/iproute2/pull/71
+
+From cdc6a1759ea1858d65fdbbfe825999b3d4ed377e Mon Sep 17 00:00:00 2001
+From: David Seifert <[email protected]>
+Date: Sun, 8 Dec 2024 13:19:14 +0100
+Subject: [PATCH] musl: include <limits.h> for PATH_MAX macro
+
+https://bugs.gentoo.org/946088
+---
+ ip/iplink.c  | 1 +
+ ip/ipnetns.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/ip/iplink.c b/ip/iplink.c
+index aa2332fcc..27863b981 100644
+--- a/ip/iplink.c
++++ b/ip/iplink.c
+@@ -21,6 +21,7 @@
+ #include <string.h>
+ #include <sys/ioctl.h>
+ #include <stdbool.h>
++#include <limits.h>
+ #include <linux/mpls.h>
+ 
+ #include "rt_names.h"
+diff --git a/ip/ipnetns.c b/ip/ipnetns.c
+index 5c9434009..de16b2790 100644
+--- a/ip/ipnetns.c
++++ b/ip/ipnetns.c
+@@ -15,6 +15,7 @@
+ #include <errno.h>
+ #include <unistd.h>
+ #include <ctype.h>
++#include <limits.h>
+ #include <linux/limits.h>
+ 
+ #include <linux/net_namespace.h>

diff --git a/sys-apps/iproute2/iproute2-6.12.0.ebuild 
b/sys-apps/iproute2/iproute2-6.12.0.ebuild
index 3ea2b7db3ea0..e2a123f5156c 100644
--- a/sys-apps/iproute2/iproute2-6.12.0.ebuild
+++ b/sys-apps/iproute2/iproute2-6.12.0.ebuild
@@ -49,6 +49,7 @@ BDEPEND="
 PATCHES=(
        "${FILESDIR}"/${PN}-6.10.0-musl-1.patch # bug #936234
        "${FILESDIR}"/${PN}-6.10.0-musl-2.patch # bug #926341
+       "${FILESDIR}"/${PN}-6.12.0-musl-3.patch # bug #946088
        "${FILESDIR}"/${PN}-6.9.0-mtu.patch # bug #291907
        "${FILESDIR}"/${PN}-6.8.0-configure-nomagic-nolibbsd.patch # bug 
#643722 & #911727
        "${FILESDIR}"/${PN}-6.8.0-disable-libbsd-fallback.patch # bug #911727

Reply via email to