From a47203128ba6a9d840280377a8dd3a72888c3708 Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Wed, 2 Feb 2022 19:32:18 +0000 Subject: build: Make the build work on Debian 11 Debian 11 has some packages that have changed, and need adjustment. Also - its default compiler is gcc 10, which, contrary to either gcc 8 or gcc 11 prints a bunch of warnings, which fails compilation. And there is no gcc 11 package. Therefore, use clang for this build. Additionally, python 3.9 has exposed this issue: https://bugs.python.org/issue42580 Therefore, make a local patch to scapy to tackle it. Type: feature Signed-off-by: Andrew Yourtchenko Change-Id: I7b9c0f852ab97fe3c1feca3f22020ac0970ba3e2 --- test/patches/scapy-2.4.3/issue42580.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/patches/scapy-2.4.3/issue42580.patch (limited to 'test') diff --git a/test/patches/scapy-2.4.3/issue42580.patch b/test/patches/scapy-2.4.3/issue42580.patch new file mode 100644 index 00000000000..1269cb985d7 --- /dev/null +++ b/test/patches/scapy-2.4.3/issue42580.patch @@ -0,0 +1,19 @@ +*** a/scapy/arch/bpf/core.py.orig 2022-02-02 16:25:51.475845472 +0000 +--- b/scapy/arch/bpf/core.py 2022-02-02 16:26:11.868800941 +0000 +*************** +*** 28,34 **** + + # ctypes definitions + +! LIBC = cdll.LoadLibrary(find_library("libc")) + LIBC.ioctl.argtypes = [c_int, c_ulong, c_char_p] + LIBC.ioctl.restype = c_int + +--- 28,34 ---- + + # ctypes definitions + +! LIBC = cdll.LoadLibrary(find_library("c")) + LIBC.ioctl.argtypes = [c_int, c_ulong, c_char_p] + LIBC.ioctl.restype = c_int + -- cgit 1.2.3-korg