net-analyzer/scapy: Fix libc library search

Closes: https://bugs.gentoo.org/774084
Signed-off-by: Mike Auty <ikelos@gentoo.org>
This commit is contained in:
Mike Auty
2021-03-03 21:05:25 +00:00
parent 381a61e96c
commit c6262bf324
2 changed files with 16 additions and 1 deletions
@@ -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
@@ -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