Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| d3b0d41f3a | |||
| d57323e4e4 |
31
p0f-fix-gcc14.patch
Normal file
31
p0f-fix-gcc14.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
diff --git a/build.sh b/build.sh
|
||||
index f674433..d130905 100755
|
||||
--- a/build.sh
|
||||
+++ b/build.sh
|
||||
@@ -197,7 +197,7 @@ echo -n "[*] Checking if memory alignment is required... "
|
||||
|
||||
rm -f "$TMP" "$TMP.c" "$TMP.log" || exit 1
|
||||
|
||||
-echo -e "#include \"types.h\"\nvolatile u8 tmp[6]; int main() { printf(\"%d\x5cn\", *(u32*)(tmp+1)); return 0; }" >"$TMP.c" || exit 1
|
||||
+echo -e "#include \"stdio.h\"\n#include \"types.h\"\nvolatile u8 tmp[6]; int main() { printf(\"%d\x5cn\", *(u32*)(tmp+1)); return 0; }" >"$TMP.c" || exit 1
|
||||
$CC $USE_CFLAGS $USE_LDFLAGS "$TMP.c" -o "$TMP" &>"$TMP.log"
|
||||
|
||||
if [ ! -x "$TMP" ]; then
|
||||
@@ -236,7 +236,7 @@ echo -n "[*] Checking for working libpcap... "
|
||||
|
||||
rm -f "$TMP" "$TMP.c" "$TMP.log" || exit 1
|
||||
|
||||
-echo -e "#include <pcap.h>\nint main() { char i[PCAP_ERRBUF_SIZE]; pcap_lookupdev(i); return 0; }" >"$TMP.c" || exit 1
|
||||
+echo -e "#include \"stdio.h\"\n#include <pcap.h>\nint main() { char i[PCAP_ERRBUF_SIZE]; pcap_lookupdev(i); return 0; }" >"$TMP.c" || exit 1
|
||||
$CC $USE_CFLAGS $USE_LDFLAGS "$TMP.c" -o "$TMP" $USE_LIBS &>"$TMP.log"
|
||||
|
||||
if [ ! -x "$TMP" ]; then
|
||||
@@ -281,7 +281,7 @@ echo -n "[*] Checking for working BPF... "
|
||||
|
||||
rm -f "$TMP" "$TMP.c" "$TMP.log" || exit 1
|
||||
|
||||
-echo -e "#include <pcap.h>\n#include <pcap-bpf.h>\nint main() { return 0; }" >"$TMP.c" || exit 1
|
||||
+echo -e "#include \"stdio.h\"\n#include <pcap.h>\n#include <pcap-bpf.h>\nint main() { return 0; }" >"$TMP.c" || exit 1
|
||||
$CC $USE_CFLAGS $USE_LDFLAGS "$TMP.c" -o "$TMP" $USE_LIBS &>"$TMP.log"
|
||||
|
||||
if [ ! -x "$TMP" ]; then
|
||||
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 2 20:27:14 UTC 2024 - Martin Hauke <mardnh@gmx.de>
|
||||
|
||||
- Add patch:
|
||||
* p0f-fix-gcc14.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 29 14:30:37 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
||||
3
p0f.spec
3
p0f.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package p0f
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -26,6 +26,7 @@ Group: Productivity/Networking/Diagnostic
|
||||
URL: http://lcamtuf.coredump.cx/p0f3/
|
||||
Source: http://lcamtuf.coredump.cx/p0f3/releases/%{name}-%{version}.tgz
|
||||
Patch0: p0f-set-fingerprint-file.diff
|
||||
Patch1: p0f-fix-gcc14.patch
|
||||
BuildRequires: libpcap-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user