diff options
author | Mike Auty <ikelos@gentoo.org> | 2021-03-03 21:02:48 +0000 |
---|---|---|
committer | Mike Auty <ikelos@gentoo.org> | 2021-03-03 21:05:25 +0000 |
commit | c6262bf324688e9a2b5e9564d3e8fb4fca5bbe9e (patch) | |
tree | a37909f71802211a1dc5e71c6e2d21338253a9c8 /net-analyzer/scapy | |
parent | app-benchmarks/iozone: set GCC variable to CC (diff) | |
download | gentoo-c6262bf324688e9a2b5e9564d3e8fb4fca5bbe9e.tar.gz gentoo-c6262bf324688e9a2b5e9564d3e8fb4fca5bbe9e.tar.bz2 gentoo-c6262bf324688e9a2b5e9564d3e8fb4fca5bbe9e.zip |
net-analyzer/scapy: Fix libc library search
Closes: https://bugs.gentoo.org/774084
Signed-off-by: Mike Auty <ikelos@gentoo.org>
Diffstat (limited to 'net-analyzer/scapy')
-rw-r--r-- | net-analyzer/scapy/files/scapy-2.4.4-libc.patch | 13 | ||||
-rw-r--r-- | net-analyzer/scapy/scapy-2.4.4-r1.ebuild (renamed from net-analyzer/scapy/scapy-2.4.4.ebuild) | 4 |
2 files changed, 16 insertions, 1 deletions
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 000000000000..dd27896b5658 --- /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 index efc71e5bac27..ebda6205e3bf 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 |