commit: c6262bf324688e9a2b5e9564d3e8fb4fca5bbe9e Author: Mike Auty <ikelos <AT> gentoo <DOT> org> AuthorDate: Wed Mar 3 21:02:48 2021 +0000 Commit: Mike Auty <ikelos <AT> gentoo <DOT> org> CommitDate: Wed Mar 3 21:05:25 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6262bf3
net-analyzer/scapy: Fix libc library search Closes: https://bugs.gentoo.org/774084 Signed-off-by: Mike Auty <ikelos <AT> gentoo.org> net-analyzer/scapy/files/scapy-2.4.4-libc.patch | 13 +++++++++++++ .../scapy/{scapy-2.4.4.ebuild => scapy-2.4.4-r1.ebuild} | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) 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 00000000000..dd27896b565 --- /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 efc71e5bac2..ebda6205e3b 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
