已开启
增加sw patch #51
wuzx065891创建于 2024年9月24日
增加sw patch #51
已开启
wuzx065891创建于 2024年9月24日
refs/pull/51/head合入到openEuler-22.03-LTS-SP1
2 个文件变更+43-2
@@ -0,0 +1,37 @@
1+diff -uNar RHash-1.4.2/configure RHash-1.4.2.sw/configure
2+--- RHash-1.4.2/configure 2021-07-15 04:55:34.000000000 +0800
3++++ RHash-1.4.2.sw/configure 2024-09-25 00:10:34.848433003 +0800
4+@@ -404,7 +404,7 @@
5+ alpha) HOST_ARCH=alpha ;;
6+ sun4*|sparc*) HOST_ARCH=sparc ;;
7+ parisc*|hppa*|9000*) HOST_ARCH=hppa ;;
8+- aarch64*) HOST_ARCH=aarch64 ;;
9++ sw_64*) HOST_ARCH=sw_64 ;;
10+ arm*|zaurus|cats) HOST_ARCH=arm ;;
11+ sh3|sh4|sh4a) HOST_ARCH=sh ;;
12+ s390) HOST_ARCH=s390 ;;
13+diff -uNar RHash-1.4.2/librhash/byte_order.h RHash-1.4.2.sw/librhash/byte_order.h
14+--- RHash-1.4.2/librhash/byte_order.h 2021-07-15 04:55:34.000000000 +0800
15++++ RHash-1.4.2.sw/librhash/byte_order.h 2024-09-25 00:10:34.848433003 +0800
16+@@ -61,7 +61,7 @@
17+ #ifdef RHASH_BYTE_ORDER
18+ #elif defined(CPU_IA32) || defined(CPU_X64) || defined(__ia64) || defined(__ia64__) || \
19+ defined(__alpha__) || defined(_M_ALPHA) || defined(vax) || defined(MIPSEL) || \
20+- defined(_ARM_) || defined(__arm__)
21++ defined(_ARM_) || defined(__arm__) || defined(__sw_64__)
22+ # define RHASH_BYTE_ORDER RHASH_BYTE_ORDER_LE
23+ #elif defined(__sparc) || defined(__sparc__) || defined(sparc) || \
24+ defined(_ARCH_PPC) || defined(_ARCH_PPC64) || defined(_POWER) || \
25+diff -uNar RHash-1.4.2/librhash/test_hashes.h RHash-1.4.2.sw/librhash/test_hashes.h
26+--- RHash-1.4.2/librhash/test_hashes.h 2021-07-15 04:55:34.000000000 +0800
27++++ RHash-1.4.2.sw/librhash/test_hashes.h 2024-09-25 00:10:34.849433003 +0800
28+@@ -155,6 +155,9 @@
29+ #ifdef __s390x__
30+ " __s390x__"
31+ #endif
32++#ifdef __sw_64__
33++ " __sw_64__"
34++#endif
35+ #ifdef sel
36+ " sel"
37+ #endif
@@ -1,6 +1,6 @@
1Name: rhash1Name: rhash
2Version: 1.4.22Version: 1.4.2
3-Release: 43+Release: 5
4Summary: Great utility for computing hash sums4Summary: Great utility for computing hash sums
5License: MIT5License: MIT
6URL: https://github.com/rhash/RHash6URL: https://github.com/rhash/RHash
@@ -10,6 +10,7 @@ Source0: https://github.com/rhash/RHash/archive/v%{version}/rhash-%{versi
10Patch0: Fix-bug-with-hash-options-in-check-mode.patch10Patch0: Fix-bug-with-hash-options-in-check-mode.patch
11Patch1: 0001-fix-incorrect-total-message-in-check-embedded-mode.patch11Patch1: 0001-fix-incorrect-total-message-in-check-embedded-mode.patch
12Patch2: 0001-Fix-install-gmo-target-to-recompile-gmo-files-only-i.patch12Patch2: 0001-Fix-install-gmo-target-to-recompile-gmo-files-only-i.patch
13+Patch3: RHash-Add-sw64-architecture.patch
13 14 
14BuildRequires: gcc15BuildRequires: gcc
15 16 
@@ -35,7 +36,7 @@ Summary: Documentation for rhash
35Documentation for rhash36Documentation for rhash
36 37 
37%prep38%prep
38-%autosetup -n RHash-%{version}39+%autosetup -n RHash-%{version} -p1
39sed -i -e '/^INSTALL_SHARED/s/644/755/' librhash/Makefile40sed -i -e '/^INSTALL_SHARED/s/644/755/' librhash/Makefile
40 41 
41%build42%build
@@ -68,6 +69,9 @@ make test-shared
68%{_mandir}/man1/*.1*69%{_mandir}/man1/*.1*
69 70 
70%changelog71%changelog
72+* Tue Sep 24 2024 wuzx<wuzx1226@qq.com> - 1.4.2-5
73+- add sw64 patch
74+ 
71* Fri Jan 6 2023 caofei <caofei@xfusion.com> - 1.4.2-475* Fri Jan 6 2023 caofei <caofei@xfusion.com> - 1.4.2-4
72- Fix install-gmo target to recompile gmo files only if needed76- Fix install-gmo target to recompile gmo files only if needed
73 77