commit: 32765ef2ededce753ce94fe8568e4254a4cacdfd Author: Violet Purcell <vimproved <AT> inventati <DOT> org> AuthorDate: Tue Jun 27 19:07:30 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Jun 27 19:53:53 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32765ef2
sys-apps/iproute2: Add missing limits.h include to bridge/mdb.c Fixes build on musl. Signed-off-by: Violet Purcell <vimproved <AT> inventati.org> Closes: https://github.com/gentoo/gentoo/pull/31646 Signed-off-by: Sam James <sam <AT> gentoo.org> ...route2-6.4.0-add-missing-limits.h-include.patch | 22 ++++++++++++++++++++++ sys-apps/iproute2/iproute2-6.4.0.ebuild | 1 + 2 files changed, 23 insertions(+) diff --git a/sys-apps/iproute2/files/iproute2-6.4.0-add-missing-limits.h-include.patch b/sys-apps/iproute2/files/iproute2-6.4.0-add-missing-limits.h-include.patch new file mode 100644 index 000000000000..63d1397d8d3b --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-6.4.0-add-missing-limits.h-include.patch @@ -0,0 +1,22 @@ +From https://github.com/shemminger/iproute2/pull/69/commits/030013c4b9ba032869f72b766e28eaf8c8099f36 Mon Sep 17 00:00:00 2001 +From: Violet Purcell <[email protected]> +Date: Tue, 27 Jun 2023 18:58:05 +0000 +Subject: [PATCH] bridge: mdb: add missing limits.h include + +Adding limits.h include for USHRT_MAX and ULONG_MAX. Don't rely on it +being transitively include (as it is not on musl). + +Signed-off-by: Violet Purcell <[email protected]> +--- 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 + diff --git a/sys-apps/iproute2/iproute2-6.4.0.ebuild b/sys-apps/iproute2/iproute2-6.4.0.ebuild index 5281e47ca76a..1a167417ca7d 100644 --- a/sys-apps/iproute2/iproute2-6.4.0.ebuild +++ b/sys-apps/iproute2/iproute2-6.4.0.ebuild @@ -52,6 +52,7 @@ PATCHES=( "${FILESDIR}"/${PN}-3.1.0-mtu.patch # bug #291907 "${FILESDIR}"/${PN}-5.12.0-configure-nomagic.patch # bug #643722 "${FILESDIR}"/${PN}-5.7.0-mix-signal.h-include.patch + "${FILESDIR}"/${PN}-6.4.0-add-missing-limits.h-include.patch ) src_prepare() {
