mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user