From 0c72e3bae911d4b43b0cd2049b928777b4525c1f Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Sep 2024 18:31:02 +0800 Subject: [PATCH] add sw64 patch --- man-db-Add-sw64-architecture.patch | 45 ++++++++++++++++++++++++++++++ man-db.spec | 6 +++- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 man-db-Add-sw64-architecture.patch diff --git a/man-db-Add-sw64-architecture.patch b/man-db-Add-sw64-architecture.patch new file mode 100644 index 0000000..489578e --- /dev/null +++ b/man-db-Add-sw64-architecture.patch @@ -0,0 +1,45 @@ +diff -uNar man-db-2.11.0/configure man-db-2.11.0.sw/configure +--- man-db-2.11.0/configure 2022-10-15 21:41:18.000000000 +0800 ++++ man-db-2.11.0.sw/configure 2024-09-25 18:24:20.571667806 +0800 +@@ -53356,7 +53356,7 @@ + case "$gl_cv_host_cpu_c_abi" in + i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) + gl_cv_host_cpu_c_abi_32bit=yes ;; +- x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) ++ x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 | sw_64) + gl_cv_host_cpu_c_abi_32bit=no ;; + *) + gl_cv_host_cpu_c_abi_32bit=unknown ;; +@@ -53390,6 +53390,10 @@ + gl_cv_host_cpu_c_abi_32bit=no + ;; + ++ sw_64 | sw_64* ) ++ gl_cv_host_cpu_c_abi_32bit=no ++ ;; ++ + i[34567]86 ) + gl_cv_host_cpu_c_abi_32bit=yes + ;; +diff -uNar man-db-2.11.0/gl/m4/host-cpu-c-abi.m4 man-db-2.11.0.sw/gl/m4/host-cpu-c-abi.m4 +--- man-db-2.11.0/gl/m4/host-cpu-c-abi.m4 2022-10-15 21:40:43.000000000 +0800 ++++ man-db-2.11.0.sw/gl/m4/host-cpu-c-abi.m4 2024-09-25 18:25:59.488665313 +0800 +@@ -454,6 +454,9 @@ + #ifndef __sparc64__ + #undef __sparc64__ + #endif ++#ifndef __sw_64__ ++#undef __sw_64__ ++#endif + ]) + + ]) +@@ -471,7 +474,7 @@ + case "$gl_cv_host_cpu_c_abi" in + i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) + gl_cv_host_cpu_c_abi_32bit=yes ;; +- x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) ++ x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 | sw_64 ) + gl_cv_host_cpu_c_abi_32bit=no ;; + *) + gl_cv_host_cpu_c_abi_32bit=unknown ;; diff --git a/man-db.spec b/man-db.spec index 33716a2..6209341 100644 --- a/man-db.spec +++ b/man-db.spec @@ -2,7 +2,7 @@ Name: man-db Version: 2.11.0 -Release: 2 +Release: 3 Summary: Online database for using man pages License: GPLv2+ and GPLv3+ URL: http://www.nongnu.org/man-db/ @@ -12,6 +12,7 @@ Source2: man-db.sysconfig Source3: man-db-cache-update.service Patch1: backport-mandb-Fix-crash-when-processing-stray-cats.patch +Patch2: man-db-Add-sw64-architecture.patch BuildRequires: gcc systemd gdbm-devel gettext groff less libpipeline-devel zlib-devel BuildRequires: po4a perl-interpreter perl-version make chrpath @@ -169,6 +170,9 @@ fi %{_mandir}/ro/man8/mandb.8.gz %changelog +* Wed Sep 25 2024 wuzx - 2.11.0-3 +- add sw64 patch + * Sat Jun 17 2023 yanglongkang - 2.11.0-2 - Fix crash when processing stray cats -- Gitee