diff --git a/0001-php-uos-add-sw64-support.patch b/0001-php-uos-add-sw64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..26573e8eb6c653a9f3844bd603b5938fc0aa9110 --- /dev/null +++ b/0001-php-uos-add-sw64-support.patch @@ -0,0 +1,39 @@ +From c7b28de613017d78e8ec824f819e586ac4f54ff6 Mon Sep 17 00:00:00 2001 +From: zhuhongbo +Date: Tue, 25 Mar 2025 10:14:17 +0800 +Subject: [PATCH] php uos add sw64 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 e81d3ae7..eb0d6bcd 100644 +--- a/build/config.guess ++++ b/build/config.guess +@@ -1140,6 +1140,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 d74fb6de..8156350b 100644 +--- a/build/config.sub ++++ b/build/config.sub +@@ -1261,6 +1261,7 @@ case $cpu-$vendor in + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \ + | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ ++ | sw_64 \ + | spu \ + | tahoe \ + | thumbv7* \ +-- +2.39.3 + diff --git a/php.spec b/php.spec index 270f487d83e055d7e9548cb60d60005884dcdc18..d6be172450ee0e84644cc2a25660e9ee8b465b5b 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 @@ -99,6 +99,8 @@ Patch100: https://github.com/php/php-src/commit/0dadd6616a491418871fb0b41590a73b # Factory is droped from system tzdata Patch300: php-7.4.0-datetests.patch +#add by uos +Patch301: 0001-php-uos-add-sw64-support.patch BuildRequires: gnupg2 BuildRequires: bzip2-devel @@ -701,6 +703,7 @@ bytecode optimization patterns that make code execution faster. # Fixes for tests %patch -P 300 -p1 -b .datetests +%patch -P 301 -p1 -b .php-uos-add-sw64-support # Prevent %%doc confusion over LICENSE files cp ext/date/lib/LICENSE.rst timelib_LICENSE @@ -1511,6 +1514,9 @@ systemctl try-restart php-fpm.service >/dev/null 2>&1 || : %changelog +* Mon Mar 25 2025 zhuhongbo - 8.2.27-2 +- php uos add sw64 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