diff --git a/sed-4.5-sw.patch b/sed-4.5-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..83f2cc91c1e59b684e42893c772fcd7c286e2332 --- /dev/null +++ b/sed-4.5-sw.patch @@ -0,0 +1,37 @@ +diff -Naur sed-4.5.org/configure sed-4.5/configure +--- sed-4.5.org/configure 2018-04-01 09:40:02.000000000 +0800 ++++ sed-4.5/configure 2023-05-11 15:08:34.931653400 +0800 +@@ -10571,6 +10571,9 @@ + alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] ) + gl_cv_host_cpu_c_abi=alpha + ;; ++ sw_64* | | | ) ++ gl_cv_host_cpu_c_abi=sw_64 ++ ;; + + arm* | aarch64 ) + # Assume arm with EABI. +diff -Naur sed-4.5.org/m4/host-cpu-c-abi.m4 sed-4.5/m4/host-cpu-c-abi.m4 +--- sed-4.5.org/m4/host-cpu-c-abi.m4 2018-03-23 06:51:30.000000000 +0800 ++++ sed-4.5/m4/host-cpu-c-abi.m4 2023-05-11 15:13:14.752536200 +0800 +@@ -95,6 +95,10 @@ + changequote([,])dnl + gl_cv_host_cpu_c_abi=alpha + ;; ++ sw_64* ) ++changequote([,])dnl ++ gl_cv_host_cpu_c_abi=sw_64 ++ ;; + + arm* | aarch64 ) + # Assume arm with EABI. +@@ -352,6 +356,9 @@ + #ifndef __x86_64_x32__ + #undef __x86_64_x32__ + #endif ++#ifndef __sw_64__ ++#undef __sw_64__ ++#endif + #ifndef __x86_64__ + #undef __x86_64__ + #endif diff --git a/sed.spec b/sed.spec index 413538a8ea27ba50e59576e02ddbe2a2fb4f6328..128ac5cd181317c45c8536740e2a307c7e256373 100644 --- a/sed.spec +++ b/sed.spec @@ -3,7 +3,7 @@ Summary: A GNU stream text editor Name: sed Version: 4.5 -Release: 5%{anolis_release}%{?dist} +Release: 6%{anolis_release}%{?dist} License: GPLv3+ Group: Applications/Text URL: http://sed.sourceforge.net/ @@ -16,6 +16,7 @@ Patch3: sed-selinux-testsuite.patch # Add by Anolis Patch1000: 0001-fix-inplace-selinux-error.patch # End +patch1001: sed-4.5-sw.patch BuildRequires: glibc-devel, libselinux-devel, libacl-devel, automake, autoconf BuildRequires: perl-Getopt-Long @@ -40,6 +41,7 @@ specified in a script file or from the command line. %patch2 -p1 %patch3 -p2 %patch1000 -p1 +%patch10001 -p1 %build %configure --without-included-regex