iproute2: fix build for musl

These patches were removed when iproute2 was updated, but are still
necessary.  (They fix implicit function declarations, which are an
error with GCC 14.)

Fixes: e74ce644d0 ("iproute2: 6.11.0 -> 6.12.0")
This commit is contained in:
Alyssa Ross
2024-11-26 20:17:08 +01:00
parent 1e91e27202
commit 62e24cdb9b
+13
View File
@@ -13,6 +13,19 @@ stdenv.mkDerivation rec {
hash = "sha256-u9FB73tdASfMIVKEO6YfJ03DKBT6Pg8T59B6CAvvU9k=";
};
patches = [
(fetchurl {
name = "musl-endian.patch";
url = "https://lore.kernel.org/netdev/20240712191209.31324-1-contact@hacktivis.me/raw";
hash = "sha256-MX+P+PSEh6XlhoWgzZEBlOV9aXhJNd20Gi0fJCcSZ5E=";
})
(fetchurl {
name = "musl-basename.patch";
url = "https://lore.kernel.org/netdev/20240804161054.942439-1-dilfridge@gentoo.org/raw";
hash = "sha256-47obv6mIn/HO47lt47slpTAFDxiQ3U/voHKzIiIGCTM=";
})
];
postPatch = ''
substituteInPlace Makefile \
--replace "CC := gcc" "CC ?= $CC"