From b80cca454c9d12dac9d1ee4803baf3aa0ecb3f2b Mon Sep 17 00:00:00 2001 From: wzx Date: Thu, 3 Nov 2022 15:23:45 +0800 Subject: [PATCH] Add sw64 architecture Signed-off-by: wzx --- libpcap-1.10.1-sw.patch | 25 +++++++++++++++++++++++++ libpcap.spec | 8 +++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 libpcap-1.10.1-sw.patch diff --git a/libpcap-1.10.1-sw.patch b/libpcap-1.10.1-sw.patch new file mode 100644 index 0000000..410ec67 --- /dev/null +++ b/libpcap-1.10.1-sw.patch @@ -0,0 +1,25 @@ +From c6afceac927a19206e49c205f222c9dc90ae3770 Mon Sep 17 00:00:00 2001 +From: rpm-build +Date: Thu, 3 Nov 2022 15:15:41 +0800 +Subject: [PATCH] Add sw64 architecture + +Signed-off-by: rpm-build +--- + extract.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/extract.h b/extract.h +index e776a9e..528b893 100644 +--- a/extract.h ++++ b/extract.h +@@ -114,6 +114,7 @@ EXTRACT_BE_S_8(const void *p) + } + #elif PCAP_IS_AT_LEAST_GNUC_VERSION(2,0) && \ + (defined(__alpha) || defined(__alpha__) || \ ++ defined(__sw_64) || defined(__sw_64__) || \ + defined(__mips) || defined(__mips__)) + /* + * This is MIPS or Alpha, which don't natively handle unaligned loads, +-- +2.33.0 + diff --git a/libpcap.spec b/libpcap.spec index af77319..3714042 100644 --- a/libpcap.spec +++ b/libpcap.spec @@ -1,7 +1,7 @@ Name: libpcap Epoch: 14 Version: 1.10.1 -Release: 2 +Release: 3 Summary: A system-independent interface for user-level packet capture License: BSD with advertising URL: http://www.tcpdump.org @@ -9,6 +9,9 @@ Source0: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz Patch0: backport-0003-pcap-linux-apparently-ctc-interfaces-on-s390-has-eth.patch Patch1: backport-pcap-config-mitigate-multilib-conflict.patch +%ifarch sw_64 +Patch2: libpcap-1.10.1-sw.patch +%endif BuildRequires: bison flex gcc git glibc-kernheaders >= 2.2.0 @@ -63,6 +66,9 @@ export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %{_mandir}/man* %changelog +* Thu Jul 28 2022 wuzx - 14:1.10.1-3 +- add sw64 patch + * Fri Feb 18 2022 xihaochen - 14:1.10.1-2 - Type:bugfix - ID:NA -- Gitee