add loongarch64 support for python 3.11.6
This commit is contained in:
parent
4c89affc6e
commit
30c2fccc26
24
0001-add-loongarch64-support-for-python.patch
Normal file
24
0001-add-loongarch64-support-for-python.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From cd9f19a56816985d05f132319874f6697d7da872 Mon Sep 17 00:00:00 2001
|
||||
From: Wenlong Zhang <zhangwenlong@loongson.cn>
|
||||
Date: Mon, 26 Feb 2024 03:25:24 +0000
|
||||
Subject: [PATCH] add loongarch64 support for python
|
||||
|
||||
---
|
||||
configure.ac | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index e1cbb7c..1b8c272 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -968,6 +968,8 @@ cat > conftest.c <<EOF
|
||||
hppa-linux-gnu
|
||||
# elif defined(__ia64__)
|
||||
ia64-linux-gnu
|
||||
+# elif defined(__loongarch64)
|
||||
+ loongarch64-linux-gnu
|
||||
# elif defined(__m68k__) && !defined(__mcoldfire__)
|
||||
m68k-linux-gnu
|
||||
# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)
|
||||
--
|
||||
2.43.0
|
||||
10
python3.spec
10
python3.spec
@ -3,7 +3,7 @@ Summary: Interpreter of the Python3 programming language
|
||||
URL: https://www.python.org/
|
||||
|
||||
Version: 3.11.6
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: Python-2.0
|
||||
|
||||
%global branchversion 3.11
|
||||
@ -89,6 +89,7 @@ Patch1: 00001-rpath.patch
|
||||
Patch251: 00251-change-user-install-location.patch
|
||||
|
||||
Patch9000: add-the-sm3-method-for-obtaining-the-salt-value.patch
|
||||
Patch9001: 0001-add-loongarch64-support-for-python.patch
|
||||
|
||||
Provides: python%{branchversion} = %{version}-%{release}
|
||||
Provides: python(abi) = %{branchversion}
|
||||
@ -185,6 +186,7 @@ rm configure pyconfig.h.in
|
||||
%patch251 -p1
|
||||
|
||||
%patch9000 -p1
|
||||
%patch9001 -p1
|
||||
|
||||
%build
|
||||
autoconf
|
||||
@ -846,6 +848,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP"
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Mon Feb 26 2024 Wenlong Zhang<zhangwenlong@loongson.cn> - 3.11.6-2
|
||||
- Type:bugfix
|
||||
- CVE:NA
|
||||
- SUG:NA
|
||||
- DESC: add loongarch64 support for python 3.11.6
|
||||
|
||||
* Wed Jan 31 2024 xinsheng3<xinsheng3@huawei.com> - 3.11.6-1
|
||||
- Type:bugfix
|
||||
- CVE:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user