diff --git a/Python-3.8.12-sw.patch b/Python-3.8.12-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..a74846b6ad7e20f70e980d9d302a4b39937af470 --- /dev/null +++ b/Python-3.8.12-sw.patch @@ -0,0 +1,21 @@ +diff -Naur Python-3.8.12.org/configure.ac Python-3.8.12.sw/configure.ac +--- Python-3.8.12.org/configure.ac 2023-05-17 14:43:58.297879872 +0800 ++++ Python-3.8.12.sw/configure.ac 2023-05-17 14:53:00.961987495 +0800 +@@ -756,6 +756,8 @@ + # else + aarch64_be-linux-gnu + # endif ++# elif defined(__sw_64__) ++ sw_64-linux-gnu + # elif defined(__alpha__) + alpha-linux-gnu + # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) +@@ -1812,7 +1814,7 @@ + # support. Without this, treatment of subnormals doesn't follow + # the standard. + case $host in +- alpha*) ++ alpha* | sw_64* ) + BASECFLAGS="$BASECFLAGS -mieee" + ;; + esac diff --git a/python38.spec b/python38.spec index 7a25166e730065f39ff8d16e649d2cf81b5b5efe..28fa5c222283557815da3b06cd035206ec7523bb 100644 --- a/python38.spec +++ b/python38.spec @@ -3,7 +3,7 @@ # ================== %global pybasever 3.8 -%define anolis_release .0.1 +%define anolis_release .0.2 # pybasever without the dot: %global pyshortver 38 @@ -374,6 +374,7 @@ Patch359: 00359-CVE-2021-23336.patch # Rebrand for Anolis OS Patch1000: 1000-add-anolis-platform.patch Patch1001: 1001-anolis-python-support-loongarch64.patch +Patch1002: Python-3.8.12-sw.patch # ========================================== # Descriptions, and metadata for subpackages @@ -720,6 +721,7 @@ rm Lib/ensurepip/_bundled/*.whl %patch1000 -p1 %patch1001 -p1 +%patch1002 -p1 # Remove files that should be generated by the build # (This is after patching, so that we can use patches directly from upstream) @@ -1808,6 +1810,10 @@ fi # ====================================================== %changelog +* Wed May 17 2023 wxiat - 3.8.12-1.0.2 +- add sw patch + + * Tue Apr 19 2022 Liwei Ge - 3.8.12-1.0.1 - Rebrand for Anolis OS - Support loongarch64 platform