diff options
author | Sam James <sam@gentoo.org> | 2022-01-13 08:08:00 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-01-13 08:10:17 +0000 |
commit | 405e55107265eada57895caab0c39d0b17b5a270 (patch) | |
tree | 5a270a1f7c0810c8d986693fc3035bbd5fb5d8a3 /sys-apps/iproute2 | |
parent | app-shells/mcfly: remove old (diff) | |
download | gentoo-405e55107265eada57895caab0c39d0b17b5a270.tar.gz gentoo-405e55107265eada57895caab0c39d0b17b5a270.tar.bz2 gentoo-405e55107265eada57895caab0c39d0b17b5a270.zip |
sys-apps/iproute2: fix build on musl
Closes: https://bugs.gentoo.org/831102
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/iproute2')
-rw-r--r-- | sys-apps/iproute2/files/iproute2-5.16.0-fix-ax25.h-include-for-musl.patch | 23 | ||||
-rw-r--r-- | sys-apps/iproute2/iproute2-5.16.0.ebuild | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/sys-apps/iproute2/files/iproute2-5.16.0-fix-ax25.h-include-for-musl.patch b/sys-apps/iproute2/files/iproute2-5.16.0-fix-ax25.h-include-for-musl.patch new file mode 100644 index 000000000000..8644a93ba115 --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-5.16.0-fix-ax25.h-include-for-musl.patch @@ -0,0 +1,23 @@ +From: Sam James <sam@gentoo.org> +Date: Thu, 13 Jan 2022 08:05:33 +0000 +Subject: [PATCH] Fix ax25.h include for musl + +ax25.h isn't guaranteed to be avilable in netax25/*; +it's dependent on our choice of libc (it's not available +on musl at least) [0]. + +Let's use the version from linux-headers. + +[0] https://sourceware.org/glibc/wiki/Synchronizing_Headers +Bug: https://bugs.gentoo.org/831102 +--- a/lib/ax25_ntop.c ++++ b/lib/ax25_ntop.c +@@ -2,7 +2,7 @@ + + #include <errno.h> + #include <sys/socket.h> +-#include <netax25/ax25.h> ++#include <linux/ax25.h> + + #include "utils.h" + diff --git a/sys-apps/iproute2/iproute2-5.16.0.ebuild b/sys-apps/iproute2/iproute2-5.16.0.ebuild index c26a054ac839..a86a737045cb 100644 --- a/sys-apps/iproute2/iproute2-5.16.0.ebuild +++ b/sys-apps/iproute2/iproute2-5.16.0.ebuild @@ -50,6 +50,7 @@ PATCHES=( "${FILESDIR}"/${PN}-5.12.0-configure-nomagic.patch # bug #643722 #"${FILESDIR}"/${PN}-5.1.0-portability.patch "${FILESDIR}"/${PN}-5.7.0-mix-signal.h-include.patch + "${FILESDIR}"/${PN}-5.16.0-fix-ax25.h-include-for-musl.patch ) doecho() { |