From 4053049b2000d1a0a0e3538f7862d90f27acafbb Mon Sep 17 00:00:00 2001 From: liweigang Date: Mon, 17 Feb 2025 15:30:03 +0800 Subject: [PATCH] add sw_64 support Signed-off-by: liweigang --- 0001-botan2-uos-add-sw64-support.patch | 37 ++++++++++++++++++++++++++ botan2.spec | 6 ++++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 0001-botan2-uos-add-sw64-support.patch diff --git a/0001-botan2-uos-add-sw64-support.patch b/0001-botan2-uos-add-sw64-support.patch new file mode 100644 index 0000000..af42058 --- /dev/null +++ b/0001-botan2-uos-add-sw64-support.patch @@ -0,0 +1,37 @@ +From 189b83c5017a6eff44f0f49e503cf2bd2965e582 Mon Sep 17 00:00:00 2001 +From: root +Date: Mon, 11 Nov 2024 11:36:50 +0800 +Subject: [PATCH] add sw64 support + +--- + src/build-data/arch/sw_64.txt | 3 +++ + src/build-data/detect_arch.cpp | 3 +++ + 2 files changed, 6 insertions(+) + create mode 100644 src/build-data/arch/sw_64.txt + +diff --git a/src/build-data/arch/sw_64.txt b/src/build-data/arch/sw_64.txt +new file mode 100644 +index 0000000..af225c5 +--- /dev/null ++++ b/src/build-data/arch/sw_64.txt +@@ -0,0 +1,3 @@ ++family sw_64 ++endian little ++wordsize 64 +diff --git a/src/build-data/detect_arch.cpp b/src/build-data/detect_arch.cpp +index 3a4bf8e..c49d3b1 100644 +--- a/src/build-data/detect_arch.cpp ++++ b/src/build-data/detect_arch.cpp +@@ -44,6 +44,9 @@ + #elif defined(__alpha__) + ALPHA + ++#elif defined(__sw_64__) ++ SW_64 ++ + #elif defined(__hppa__) || defined(__hppa) + HPPA + +-- +2.33.0 + diff --git a/botan2.spec b/botan2.spec index dc3377d..ca857bd 100644 --- a/botan2.spec +++ b/botan2.spec @@ -2,7 +2,7 @@ Name: botan2 Version: 2.19.3 -Release: 4 +Release: 5 Summary: Crypto and TLS for C++11 License: BSD @@ -12,6 +12,7 @@ Source0: %{url}/releases/Botan-%{version}.tar.xz Patch01: Backport-CVE-2024-34703-When-decoding-an-arbi.patch Patch02: backport-CVE-2024-39312.patch Patch03: backport-CVE-2024-50382.patch +Patch04: 0001-botan2-uos-add-sw64-support.patch BuildRequires: gcc-c++ python3 python3-devel python3-sphinx python-docutils BuildRequires: bzip2-devel zlib-devel make @@ -128,6 +129,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./botan-test %changelog +* Mon Feb 17 2025 liweigang - 2.19.3-5 +- add sw_64 support + * Fri Oct 25 2024 liningjie - 2.19.3-4 - Fix CVE-2024-50382