Accepting request 1227932 from home:glaubitz:branches:devel:languages:python:Factory

- Add add-loongarch64-support.patch to support loongarch64

OBS-URL: https://build.opensuse.org/request/show/1227932
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=152
This commit is contained in:
2024-12-03 09:29:46 +00:00
committed by Git OBS Bridge
parent 41577a6efe
commit 5b6e9cc98e
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
Description: Add platform triplets for LoongArch.
--- a/configure.ac
+++ b/configure.ac
@@ -976,6 +976,20 @@ cat > conftest.c <<EOF
hppa-linux-gnu
# elif defined(__ia64__)
ia64-linux-gnu
+# elif defined(__loongarch__)
+# if defined(__loongarch_lp64)
+# if defined(__loongarch_soft_float)
+ loongarch64-linux-gnusf
+# elif defined(__loongarch_single_float)
+ loongarch64-linux-gnuf32
+# elif defined(__loongarch_double_float)
+ loongarch64-linux-gnu
+# else
+# error unknown platform triplet
+# endif
+# else
+# error unknown platform triplet
+# endif
# elif defined(__m68k__) && !defined(__mcoldfire__)
m68k-linux-gnu
# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Dec 3 08:21:35 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Add add-loongarch64-support.patch to support loongarch64
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Dec 2 22:50:07 UTC 2024 - Matej Cepl <mcepl@suse.com> Mon Dec 2 22:50:07 UTC 2024 - Matej Cepl <mcepl@suse.com>

View File

@@ -182,6 +182,8 @@ Patch22: gh120226-fix-sendfile-test-kernel-610.patch
# PATCH-FIX-UPSTREAM CVE-2024-9287-venv_path_unquoted.patch gh#python/cpython#124651 mcepl@suse.com # PATCH-FIX-UPSTREAM CVE-2024-9287-venv_path_unquoted.patch gh#python/cpython#124651 mcepl@suse.com
# venv should properly quote path names provided when creating a venv # venv should properly quote path names provided when creating a venv
Patch23: CVE-2024-9287-venv_path_unquoted.patch Patch23: CVE-2024-9287-venv_path_unquoted.patch
# PATCH-FIX-UPSTREAM Add platform triplets for 64-bit LoongArch gh#python/cpython#30939 glaubitz@suse.com
Patch24: add-loongarch64-support.patch
BuildRequires: autoconf-archive BuildRequires: autoconf-archive
BuildRequires: automake BuildRequires: automake
BuildRequires: fdupes BuildRequires: fdupes
@@ -445,6 +447,7 @@ other applications.
%patch -p1 -P 19 %patch -p1 -P 19
%patch -p1 -P 22 %patch -p1 -P 22
%patch -p1 -P 23 %patch -p1 -P 23
%patch -p1 -P 24
# drop Autoconf version requirement # drop Autoconf version requirement
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac