diff --git a/0001-botan2-uos-add-sw64-support.patch b/0001-botan2-uos-add-sw64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..af42058f3160d8cb728957aba4bb74c50cf072fd --- /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 2d55d747fd126a01aa40bea08af26fec11eb0a6a..118e88e4acaa1172fc526741d0aad8bd851ac45c 100644 --- a/botan2.spec +++ b/botan2.spec @@ -2,14 +2,15 @@ Name: botan2 Version: 2.19.5 -Release: 2 +Release: 3 Summary: Crypto and TLS for C++11 License: BSD URL: https://botan.randombit.net/ Source0: %{url}/releases/Botan-%{version}.tar.xz -Patch01: backport-CVE-2024-50382.patch +Patch01: backport-CVE-2024-50382.patch +Patch02: 0001-botan2-uos-add-sw64-support.patch BuildRequires: gcc-c++ python3 python3-devel python3-sphinx python-docutils BuildRequires: bzip2-devel zlib-devel make @@ -126,6 +127,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./botan-test %changelog +* Mon Feb 17 2025 liweigang - 2.19.5-3 +- add sw_64 support + * Fri Oct 25 2024 liningjie - 2.19.5-2 - Fix CVE-2024-50382