commit:     0cd78596917a0e12644793e8b5ba5f3da3d1e496
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 30 09:47:42 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 30 09:47:42 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cd78596

net-analyzer/cutter: fix build on musl

Closes: https://bugs.gentoo.org/715994
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/cutter/cutter-1.04.ebuild                    |  1 +
 net-analyzer/cutter/files/cutter-1.04-musl-if-ether.patch | 12 ++++++++++++
 2 files changed, 13 insertions(+)

diff --git a/net-analyzer/cutter/cutter-1.04.ebuild 
b/net-analyzer/cutter/cutter-1.04.ebuild
index 46cc52cc6f2c..ebe71d34d0bc 100644
--- a/net-analyzer/cutter/cutter-1.04.ebuild
+++ b/net-analyzer/cutter/cutter-1.04.ebuild
@@ -15,6 +15,7 @@ KEYWORDS="amd64 ~ppc x86"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-1.03-debian.patch
+       "${FILESDIR}"/${PN}-1.04-musl-if-ether.patch
 )
 
 src_prepare() {

diff --git a/net-analyzer/cutter/files/cutter-1.04-musl-if-ether.patch 
b/net-analyzer/cutter/files/cutter-1.04-musl-if-ether.patch
new file mode 100644
index 000000000000..fed8bc26ee02
--- /dev/null
+++ b/net-analyzer/cutter/files/cutter-1.04-musl-if-ether.patch
@@ -0,0 +1,12 @@
+https://git.alpinelinux.org/aports/tree/main/cutter/musl-fix.patch
+https://bugs.gentoo.org/715994
+--- a/cutter.c
++++ b/cutter.c
+@@ -47,7 +47,6 @@
+ #include <linux/socket.h>
+ #include <linux/ip.h>
+ #include <linux/tcp.h>
+-#include <linux/if_ether.h>
+ #include <fcntl.h>
+ #include <netpacket/packet.h>
+ #include <net/ethernet.h>     /* the L2 protocols */

Reply via email to