diff --git a/add-sw_64-support.patch b/add-sw_64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..082531d8c4cdbdb7e3fc177444ac260ec46a9613 --- /dev/null +++ b/add-sw_64-support.patch @@ -0,0 +1,46 @@ + +From 01107239fb86d89cf8aa01b4723b8e7ba078203a Mon Sep 17 00:00:00 2001 +From: mahailiang +Date: Wed, 30 Oct 2024 17:41:39 +0800 +Subject: [PATCH] add sw_64 support +--- + configure | 6 ++++++ + gl/m4/fpieee.m4 | 6 ++++++ + 2 files changed, 12 insertions(+) +diff --git a/configure b/configure +index 551cb6f..a32f241 100755 +--- a/configure ++++ b/configure +@@ -7782,6 +7782,12 @@ $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h + # (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/gl/m4/fpieee.m4 b/gl/m4/fpieee.m4 +index c0c23e9..79c742d 100644 +--- a/gl/m4/fpieee.m4 ++++ b/gl/m4/fpieee.m4 +@@ -30,6 +30,12 @@ AC_DEFUN([gl_FP_IEEE], + # (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 +-- +2.20.1 + diff --git a/findutils.spec b/findutils.spec index a59232cee65bbc95f5b2255a7af5c0c0fc4fcc69..fe60939a27a0b545952f6e11d7989aeb79d80667 100644 --- a/findutils.spec +++ b/findutils.spec @@ -1,7 +1,7 @@ Name: findutils Epoch: 2 Version: 4.9.0 -Release: 1 +Release: 2 Summary: The GNU Find Utilities License: GPLv3+ URL: http://www.gnu.org/software/findutils/ @@ -12,6 +12,8 @@ Source0: https://ftp.gnu.org/pub/gnu/findutils/%{name}-%{version}.tar.xz Patch1: 0001-findutils-xautofs.patch # rhbz #1252549 #1299169 Patch2: 0001-findutils-leaf-opt.patch +# sw_64 support +Patch3: add-sw_64-support.patch Buildrequires: gcc autoconf gettext-devel texinfo libselinux-devel dejagnu automake Requires(post): info @@ -94,7 +96,10 @@ fi %exclude %{_mandir}/man5/locatedb.5* %changelog -* Tue Oct 18 2022 dillon chen - 4.9.0-1 +* Mon Sep 08 2025 liweigang - 2:4.9.0-2 +- add sw_64 support + +* Tue Oct 18 2022 dillon chen - 2:4.9.0-1 - update to 4.9.0 * Thu Jun 16 2022 tanyulong - 2:4.8.0-4