diff --git a/time-1.9-sw.patch b/time-1.9-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..65cf464a0912648b92095670027bbf1d839c5f00 --- /dev/null +++ b/time-1.9-sw.patch @@ -0,0 +1,65 @@ +diff -Naur time-1.9.org/config.in time-1.9.sw/config.in +--- time-1.9.org/config.in 2023-06-17 09:08:00.092752873 +0800 ++++ time-1.9.sw/config.in 2023-06-17 09:08:42.084237836 +0800 +@@ -10,6 +10,9 @@ + #ifndef __x86_64__ + #undef __x86_64__ + #endif ++#ifndef __sw_64__ ++#undef __sw_64__ ++#endif + #ifndef __alpha__ + #undef __alpha__ + #endif +diff -Naur time-1.9.org/configure time-1.9.sw/configure +--- time-1.9.org/configure 2023-06-17 09:07:59.569734377 +0800 ++++ time-1.9.sw/configure 2023-06-17 09:10:48.215698263 +0800 +@@ -7973,6 +7973,10 @@ + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ;; + ++ sw_64* ) ++ gl_cv_host_cpu_c_abi=sw_64 ++ ;; ++ + alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] ) + gl_cv_host_cpu_c_abi=alpha + ;; +diff -Naur time-1.9.org/lib/unistd.in.h time-1.9.sw/lib/unistd.in.h +--- time-1.9.org/lib/unistd.in.h 2018-03-13 05:28:57.000000000 +0800 ++++ time-1.9.sw/lib/unistd.in.h 2023-06-17 09:11:53.824018393 +0800 +@@ -871,7 +871,7 @@ + # endif + /* This is for older VMS. */ + # if !defined _gl_getpagesize && defined __VMS +-# ifdef __ALPHA ++# if defined __ALPHA || defined __SW_64 + # define _gl_getpagesize() 8192 + # else + # define _gl_getpagesize() 512 +diff -Naur time-1.9.org/m4/host-cpu-c-abi.m4 time-1.9.sw/m4/host-cpu-c-abi.m4 +--- time-1.9.org/m4/host-cpu-c-abi.m4 2018-03-13 05:28:57.000000000 +0800 ++++ time-1.9.sw/m4/host-cpu-c-abi.m4 2023-06-17 09:12:59.073325827 +0800 +@@ -91,6 +91,12 @@ + ;; + + 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 + gl_cv_host_cpu_c_abi=alpha +@@ -301,6 +307,9 @@ + #ifndef __x86_64__ + #undef __x86_64__ + #endif ++#ifndef __sw_64__ ++#undef __sw_64__ ++#endif + #ifndef __alpha__ + #undef __alpha__ + #endif diff --git a/time.spec b/time.spec index f104d0f5c65cec68e6ac6f2e371843b6e8f1daa3..e70c5610ee6f981f1bc116d3f3d9c57abf1dd458 100644 --- a/time.spec +++ b/time.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 Summary: A GNU utility for monitoring a program's use of system resources Name: time Version: 1.9 @@ -44,6 +44,7 @@ Source: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz # Fix measuring time when a clock experiences a jump, bug #1004416, # Patch0: time-1.8-Prefer-clock_gettime-CLOCK_MONOTONIC.patch +Patch10: time-1.9-sw.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bash @@ -73,6 +74,7 @@ Doc pages for %{name}. %setup -q %patch0 -p1 autoreconf -fi +%patch10 -p1 %build %configure @@ -106,6 +108,9 @@ fi %doc AUTHORS ChangeLog NEWS README %changelog +* Sat Jun 17 2023 wuxiat -1.9-3.0.2 +- add sw patch + * Mon Jul 18 2022 Hangbo Fan - 1.9-3.0.1 - Add doc sub package