diff --git a/sed-4.5-sw.patch b/sed-4.5-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..e1be0494c5b240304924cc618c7bf2b25b7e8fb4 --- /dev/null +++ b/sed-4.5-sw.patch @@ -0,0 +1,26 @@ +diff -Naur sed-4.5/m4/host-cpu-c-abi.m4 sed-4.5.sw/m4/host-cpu-c-abi.m4 +--- sed-4.5/m4/host-cpu-c-abi.m4 2018-03-23 06:51:30.000000000 +0800 ++++ sed-4.5.sw/m4/host-cpu-c-abi.m4 2023-05-12 14:37:03.483598809 +0800 +@@ -96,6 +96,12 @@ + gl_cv_host_cpu_c_abi=alpha + ;; + ++changequote(,)dnl ++ sw_64* ) ++changequote([,])dnl ++ gl_cv_host_cpu_c_abi=sw_64 ++ ;; ++ + arm* | aarch64 ) + # Assume arm with EABI. + # On arm64 systems, the C compiler may be generating code in one of +@@ -355,6 +361,9 @@ + #ifndef __x86_64__ + #undef __x86_64__ + #endif ++#ifndef __sw_64__ ++#undef __sw_64__ ++#endif + #ifndef __alpha__ + #undef __alpha__ + #endif diff --git a/sed.spec b/sed.spec index 413538a8ea27ba50e59576e02ddbe2a2fb4f6328..026cd8ec8a6d34987ae4da01ae2b96ae61ff2cf2 100644 --- a/sed.spec +++ b/sed.spec @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -%define anolis_release .0.1 +%define anolis_release .0.2 Summary: A GNU stream text editor Name: sed Version: 4.5 @@ -15,6 +15,7 @@ Patch3: sed-selinux-testsuite.patch # Add by Anolis Patch1000: 0001-fix-inplace-selinux-error.patch +Patch1001: sed-4.5-sw.patch # End BuildRequires: glibc-devel, libselinux-devel, libacl-devel, automake, autoconf @@ -40,6 +41,7 @@ specified in a script file or from the command line. %patch2 -p1 %patch3 -p2 %patch1000 -p1 +%patch1001 -p1 %build %configure --without-included-regex @@ -79,6 +81,9 @@ fi %{_mandir}/man*/* %changelog +* Fri May 12 2023 wxiat - 4.5-5.0.2 +- add sw patch + * Sun Apr 24 2022 Mahailiang - 4.5-5.0.1 - fix testsuite/inplace-selinux.sh check error - Sync from https://debbugs.gnu.org/cgi/bugreport.cgi?bug=35997