From b1067db563f57f54f8e199e022589889a4dad5f8 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 24 Sep 2024 19:39:44 +0800 Subject: [PATCH] add sw64 patch --- RHash-Add-sw64-architecture.patch | 37 +++++++++++++++++++++++++++++++ rhash.spec | 8 +++++-- 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 RHash-Add-sw64-architecture.patch diff --git a/RHash-Add-sw64-architecture.patch b/RHash-Add-sw64-architecture.patch new file mode 100644 index 0000000..e6874ba --- /dev/null +++ b/RHash-Add-sw64-architecture.patch @@ -0,0 +1,37 @@ +diff -uNar RHash-1.4.2/configure RHash-1.4.2.sw/configure +--- RHash-1.4.2/configure 2021-07-15 04:55:34.000000000 +0800 ++++ RHash-1.4.2.sw/configure 2024-09-25 00:10:34.848433003 +0800 +@@ -404,7 +404,7 @@ + alpha) HOST_ARCH=alpha ;; + sun4*|sparc*) HOST_ARCH=sparc ;; + parisc*|hppa*|9000*) HOST_ARCH=hppa ;; +- aarch64*) HOST_ARCH=aarch64 ;; ++ sw_64*) HOST_ARCH=sw_64 ;; + arm*|zaurus|cats) HOST_ARCH=arm ;; + sh3|sh4|sh4a) HOST_ARCH=sh ;; + s390) HOST_ARCH=s390 ;; +diff -uNar RHash-1.4.2/librhash/byte_order.h RHash-1.4.2.sw/librhash/byte_order.h +--- RHash-1.4.2/librhash/byte_order.h 2021-07-15 04:55:34.000000000 +0800 ++++ RHash-1.4.2.sw/librhash/byte_order.h 2024-09-25 00:10:34.848433003 +0800 +@@ -61,7 +61,7 @@ + #ifdef RHASH_BYTE_ORDER + #elif defined(CPU_IA32) || defined(CPU_X64) || defined(__ia64) || defined(__ia64__) || \ + defined(__alpha__) || defined(_M_ALPHA) || defined(vax) || defined(MIPSEL) || \ +- defined(_ARM_) || defined(__arm__) ++ defined(_ARM_) || defined(__arm__) || defined(__sw_64__) + # define RHASH_BYTE_ORDER RHASH_BYTE_ORDER_LE + #elif defined(__sparc) || defined(__sparc__) || defined(sparc) || \ + defined(_ARCH_PPC) || defined(_ARCH_PPC64) || defined(_POWER) || \ +diff -uNar RHash-1.4.2/librhash/test_hashes.h RHash-1.4.2.sw/librhash/test_hashes.h +--- RHash-1.4.2/librhash/test_hashes.h 2021-07-15 04:55:34.000000000 +0800 ++++ RHash-1.4.2.sw/librhash/test_hashes.h 2024-09-25 00:10:34.849433003 +0800 +@@ -155,6 +155,9 @@ + #ifdef __s390x__ + " __s390x__" + #endif ++#ifdef __sw_64__ ++ " __sw_64__" ++#endif + #ifdef sel + " sel" + #endif diff --git a/rhash.spec b/rhash.spec index 91fe3e1..1d89672 100644 --- a/rhash.spec +++ b/rhash.spec @@ -1,6 +1,6 @@ Name: rhash Version: 1.4.2 -Release: 4 +Release: 5 Summary: Great utility for computing hash sums License: MIT URL: https://github.com/rhash/RHash @@ -10,6 +10,7 @@ Source0: https://github.com/rhash/RHash/archive/v%{version}/rhash-%{versi Patch0: Fix-bug-with-hash-options-in-check-mode.patch Patch1: 0001-fix-incorrect-total-message-in-check-embedded-mode.patch Patch2: 0001-Fix-install-gmo-target-to-recompile-gmo-files-only-i.patch +Patch3: RHash-Add-sw64-architecture.patch BuildRequires: gcc @@ -35,7 +36,7 @@ Summary: Documentation for rhash Documentation for rhash %prep -%autosetup -n RHash-%{version} +%autosetup -n RHash-%{version} -p1 sed -i -e '/^INSTALL_SHARED/s/644/755/' librhash/Makefile %build @@ -68,6 +69,9 @@ make test-shared %{_mandir}/man1/*.1* %changelog +* Tue Sep 24 2024 wuzx - 1.4.2-5 +- add sw64 patch + * Fri Jan 6 2023 caofei - 1.4.2-4 - Fix install-gmo target to recompile gmo files only if needed -- Gitee