From d20ef59c7d2836577b851955de8affed1b08e8a7 Mon Sep 17 00:00:00 2001 From: pangqing Date: Tue, 25 Mar 2025 10:23:12 +0800 Subject: [PATCH] Add sw_64 arch support Signed-off-by: pangqing --- 0001-add-sw_64-support.patch | 39 ++++++++++++++++++++++++++++++++++++ php.spec | 8 ++++++-- 2 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 0001-add-sw_64-support.patch diff --git a/0001-add-sw_64-support.patch b/0001-add-sw_64-support.patch new file mode 100644 index 0000000..cd59662 --- /dev/null +++ b/0001-add-sw_64-support.patch @@ -0,0 +1,39 @@ +From 462a9ad554509e47f0f38c0aad6e19c9d4f83da6 Mon Sep 17 00:00:00 2001 +From: mahailiang +Date: Tue, 3 Dec 2024 15:23:06 +0800 +Subject: [PATCH] add sw_64 support + +--- + build/config.guess | 3 +++ + build/config.sub | 1 + + 2 files changed, 4 insertions(+) + +diff --git a/build/config.guess b/build/config.guess +index 354a8ccd..2a062362 100644 +--- a/build/config.guess ++++ b/build/config.guess +@@ -1149,6 +1149,9 @@ EOF + sparc:Linux:*:* | sparc64:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; ++ sw_64*:Linux:*:*) ++ GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ++ ;; + tile*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; +diff --git a/build/config.sub b/build/config.sub +index 9865d6ea..9245db77 100644 +--- a/build/config.sub ++++ b/build/config.sub +@@ -1268,6 +1268,7 @@ case $cpu-$vendor in + | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ + | spu \ ++ | sw_64 \ + | tahoe \ + | thumbv7* \ + | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \ +-- +2.20.1 + diff --git a/php.spec b/php.spec index 270f487..cfe1405 100644 --- a/php.spec +++ b/php.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 # API/ABI check %global apiver 20220829 @@ -98,6 +98,7 @@ Patch100: https://github.com/php/php-src/commit/0dadd6616a491418871fb0b41590a73b # Factory is droped from system tzdata Patch300: php-7.4.0-datetests.patch +Patch301: 0001-add-sw_64-support.patch BuildRequires: gnupg2 @@ -700,7 +701,7 @@ bytecode optimization patterns that make code execution faster. # Fixes for tests %patch -P 300 -p1 -b .datetests - +%patch -P 301 -p1 -b .support # Prevent %%doc confusion over LICENSE files cp ext/date/lib/LICENSE.rst timelib_LICENSE @@ -1511,6 +1512,9 @@ systemctl try-restart php-fpm.service >/dev/null 2>&1 || : %changelog +* Tue Mar 25 2025 pangqing - 8.2.27-2 +- Add sw_64 support + * Tue Jan 14 2025 yangxinyu - 8.2.27-1 - Update to version 8.2.27 - fix cve-2024-8929 cve-2024-11233 cve-2024-11234 -- Gitee