From b304273237dd05652d1a2657481ab3258e336b22 Mon Sep 17 00:00:00 2001 From: "zhixin.zhang" Date: Tue, 13 Dec 2022 15:10:30 +0800 Subject: [PATCH 1/2] Add SW arch correlation patch --- findutils-4.8.0-sw.patch | 32 ++++++++++++++++++++++++++++++++ findutils.spec | 4 ++++ 2 files changed, 36 insertions(+) create mode 100644 findutils-4.8.0-sw.patch diff --git a/findutils-4.8.0-sw.patch b/findutils-4.8.0-sw.patch new file mode 100644 index 0000000..04f4446 --- /dev/null +++ b/findutils-4.8.0-sw.patch @@ -0,0 +1,32 @@ +diff -Nuar findutils-4.8.0.org/configure findutils-4.8.0.sw/configure +--- findutils-4.8.0.org/configure 2022-02-14 07:11:40.370000000 +0000 ++++ findutils-4.8.0.sw/configure 2022-02-14 07:15:18.850000000 +0000 +@@ -7431,6 +7431,12 @@ + # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4 + # and the GCC 4.1.2 manual). + case "$host_cpu" in ++ sw_64*) ++ if test -n "$GCC"; then ++ # GCC has the option -mieee. ++ CPPFLAGS="$CPPFLAGS -mieee" ++ fi ++ ;; + alpha*) + # On Alpha systems, a compiler option provides the behaviour. + # See the ieee(3) manual page, also available at +diff -Nuar findutils-4.8.0.org/gl/m4/fpieee.m4 findutils-4.8.0.sw/gl/m4/fpieee.m4 +--- findutils-4.8.0.org/gl/m4/fpieee.m4 2022-02-14 07:11:40.460000000 +0000 ++++ findutils-4.8.0.sw/gl/m4/fpieee.m4 2022-02-14 07:18:13.770000000 +0000 +@@ -30,6 +30,12 @@ + # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4 + # and the GCC 4.1.2 manual). + case "$host_cpu" in ++ sw_64*) ++ if test -n "$GCC"; then ++ # GCC has the option -mieee. ++ CPPFLAGS="$CPPFLAGS -mieee" ++ fi ++ ;; + alpha*) + # On Alpha systems, a compiler option provides the behaviour. + # See the ieee(3) manual page, also available at diff --git a/findutils.spec b/findutils.spec index c0d0ffc..debb217 100644 --- a/findutils.spec +++ b/findutils.spec @@ -13,6 +13,10 @@ Patch1: backport-findutils-xautofs.patch # rhbz #1252549 #1299169 Patch2: backport-findutils-leaf-opt.patch Patch3: backport-maint-fix-typo-in-comments-in-parser.c.patch +%ifarch sw_64 +Patch4: findutils-4.8.0-sw.patch +%endif + Buildrequires: gcc autoconf gettext-devel texinfo libselinux-devel dejagnu automake gdb Requires(post): info -- Gitee From 96f1757d51775f86e389049a130d99e3b1813485 Mon Sep 17 00:00:00 2001 From: "zhixin.zhang" Date: Thu, 15 Dec 2022 14:17:07 +0800 Subject: [PATCH 2/2] Add sw arch patch --- findutils.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/findutils.spec b/findutils.spec index debb217..45d9754 100644 --- a/findutils.spec +++ b/findutils.spec @@ -1,7 +1,7 @@ Name: findutils Epoch: 2 Version: 4.8.0 -Release: 4 +Release: 5 Summary: The GNU Find Utilities License: GPLv3+ URL: http://www.gnu.org/software/findutils/ @@ -99,6 +99,12 @@ fi %exclude %{_mandir}/man5/locatedb.5* %changelog +* Thu Dec 15 2022 zhangzhixin - 2:4.8.0-5 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:Add sw arch patch + * Tue Oct 25 2022 zhoushuiqing - 2:4.8.0-4 - Type:bugfix - ID:NA -- Gitee