From c6262bf324688e9a2b5e9564d3e8fb4fca5bbe9e Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 3 Mar 2021 21:02:48 +0000 Subject: [PATCH] net-analyzer/scapy: Fix libc library search Closes: https://bugs.gentoo.org/774084 Signed-off-by: Mike Auty --- net-analyzer/scapy/files/scapy-2.4.4-libc.patch | 13 +++++++++++++ .../{scapy-2.4.4.ebuild => scapy-2.4.4-r1.ebuild} | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 net-analyzer/scapy/files/scapy-2.4.4-libc.patch rename net-analyzer/scapy/{scapy-2.4.4.ebuild => scapy-2.4.4-r1.ebuild} (93%) diff --git a/net-analyzer/scapy/files/scapy-2.4.4-libc.patch b/net-analyzer/scapy/files/scapy-2.4.4-libc.patch new file mode 100644 index 0000000000000..dd27896b5658f --- /dev/null +++ b/net-analyzer/scapy/files/scapy-2.4.4-libc.patch @@ -0,0 +1,13 @@ +diff --git a/scapy/arch/bpf/core.py b/scapy/arch/bpf/core.py +index 0ebdb53..c74902a 100644 +--- a/scapy/arch/bpf/core.py ++++ b/scapy/arch/bpf/core.py +@@ -27,7 +27,7 @@ from scapy.modules.six.moves import range + + # ctypes definitions + +-LIBC = cdll.LoadLibrary(find_library("libc")) ++LIBC = cdll.LoadLibrary(find_library("c")) + LIBC.ioctl.argtypes = [c_int, c_ulong, c_char_p] + LIBC.ioctl.restype = c_int + diff --git a/net-analyzer/scapy/scapy-2.4.4.ebuild b/net-analyzer/scapy/scapy-2.4.4-r1.ebuild similarity index 93% rename from net-analyzer/scapy/scapy-2.4.4.ebuild rename to net-analyzer/scapy/scapy-2.4.4-r1.ebuild index efc71e5bac271..ebda6205e3bfa 100644 --- a/net-analyzer/scapy/scapy-2.4.4.ebuild +++ b/net-analyzer/scapy/scapy-2.4.4-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -29,6 +29,8 @@ Scapy has optional support for the following packages: See also ""${EPREFIX}/usr/share/doc/${PF}/installation.rst"" " +PATCHES=("${FILESDIR}/${P}-libc.patch") + src_prepare() { if ! [[ -f ${PN}/VERSION ]]; then echo ${PV} > ${PN}/VERSION || die