diff --git a/tar-Add-sw64-architecture.patch b/tar-Add-sw64-architecture.patch new file mode 100644 index 0000000000000000000000000000000000000000..5c7b83e15feaa1ef710c2ced034f384a0614c260 --- /dev/null +++ b/tar-Add-sw64-architecture.patch @@ -0,0 +1,60 @@ +From 7e8239c9e6dd50431f221d72716b20c0411eab0e Mon Sep 17 00:00:00 2001 +From: Wu Zixuan +Date: Thu, 24 Nov 2022 14:59:00 +0800 +Subject: [PATCH] Add sw64 architecture + +Add sw64 architecture in file m4/host-cpu-c-abi.m4 to support sw64 architecture. + +Signed-off-by: wzx +--- + m4/host-cpu-c-abi.m4 | 13 +++++++++++-- + 1 file changed, 11 insertions(+), 2 deletions(-) + +diff --git a/m4/host-cpu-c-abi.m4 b/m4/host-cpu-c-abi.m4 +index 7dc830e..b4c0830 100644 +--- a/m4/host-cpu-c-abi.m4 ++++ b/m4/host-cpu-c-abi.m4 +@@ -90,6 +90,12 @@ changequote([,])dnl + [gl_cv_host_cpu_c_abi=i386]) + ;; + ++changequote(,)dnl ++ sw_64* ) ++changequote([,])dnl ++ gl_cv_host_cpu_c_abi=sw_64 ++ ;; ++ + changequote(,)dnl + alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] ) + changequote([,])dnl +@@ -355,6 +361,9 @@ EOF + #ifndef __x86_64__ + #undef __x86_64__ + #endif ++#ifndef __sw_64__ ++#undef __sw_64__ ++#endif + #ifndef __alpha__ + #undef __alpha__ + #endif +@@ -468,7 +477,7 @@ AC_DEFUN([gl_HOST_CPU_C_ABI_32BIT], + case "$gl_cv_host_cpu_c_abi" in + i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) + gl_cv_host_cpu_c_abi_32bit=yes ;; +- x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) ++ x86_64 | sw_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) + gl_cv_host_cpu_c_abi_32bit=no ;; + *) + gl_cv_host_cpu_c_abi_32bit=unknown ;; +@@ -498,7 +507,7 @@ AC_DEFUN([gl_HOST_CPU_C_ABI_32BIT], + + # CPUs that only support a 64-bit ABI. + changequote(,)dnl +- alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ ++ sw_64* | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ + | mmix ) + changequote([,])dnl + gl_cv_host_cpu_c_abi_32bit=no +-- +2.33.0 + diff --git a/tar.spec b/tar.spec index c77749718a888fd29d1ba0f8993dadfa5540ead8..b536f629e2531a15e36f8219c69c44a6408157bd 100644 --- a/tar.spec +++ b/tar.spec @@ -1,6 +1,6 @@ Name: tar Version: 1.34 -Release: 2 +Release: 3 Epoch: 2 Summary: An organized and systematic method of controlling a large amount of data License: GPLv3+ @@ -17,6 +17,7 @@ Patch0002: tar-1.28-vfatTruncate.patch Patch0003: tar-1.29-wildcards.patch Patch0004: tar-1.28-atime-rofs.patch Patch0005: tar-1.28-document-exclude-mistakes.patch +Patch0006: tar-Add-sw64-architecture.patch %description GNU Tar provides the ability to create tar archives, as well as various other @@ -75,6 +76,9 @@ make check %{_infodir}/tar.info* %changelog +* Fri Nov 11 2022 wuzx - 2:1.34-3 +- Add sw64 architecture + * Thu Oct 27 2022 dongyuzhen - 2:1.34-2 - Rebuild for next release