From 4da08f922a1238e365c8fd934e008a492d41cd7d Mon Sep 17 00:00:00 2001 From: doupengda Date: Tue, 7 Mar 2023 10:20:22 +0800 Subject: [PATCH] add loongarch64 support and disable valgrind-devel for loongarch64 --- 0001-Add-loongarch64-support.patch | 25 +++++++++++++++++++++++++ python3.spec | 21 ++++++++++++++++++++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 0001-Add-loongarch64-support.patch diff --git a/0001-Add-loongarch64-support.patch b/0001-Add-loongarch64-support.patch new file mode 100644 index 0000000..114cf06 --- /dev/null +++ b/0001-Add-loongarch64-support.patch @@ -0,0 +1,25 @@ +From 102eb809bb9a0e5ccfe0bc4afd2efb0d4eb6076d Mon Sep 17 00:00:00 2001 +From: doupengda +Date: Tue, 7 Mar 2023 09:54:04 +0800 +Subject: [PATCH] Add loongarch64 support + +--- + configure.ac | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/configure.ac b/configure.ac +index ac3be38..7f6cb78 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -769,6 +769,8 @@ cat >> conftest.c <=6) && defined(_MIPSEL) +-- +2.33.0 + diff --git a/python3.spec b/python3.spec index ed9c446..350cef1 100644 --- a/python3.spec +++ b/python3.spec @@ -3,7 +3,7 @@ Summary: Interpreter of the Python3 programming language URL: https://www.python.org/ Version: 3.10.9 -Release: 1 +Release: 2 License: Python-2.0 %global branchversion 3.10 @@ -69,8 +69,10 @@ BuildRequires: tix-devel BuildRequires: tk-devel %ifarch %{valgrind_arches} +%ifnarch loongarch64 BuildRequires: valgrind-devel %endif +%endif BuildRequires: xz-devel BuildRequires: zlib-devel @@ -89,6 +91,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.patch Provides: python%{branchversion} = %{version}-%{release} Provides: python(abi) = %{branchversion} @@ -184,6 +187,12 @@ rm configure pyconfig.h.in %patch251 -p1 %patch9000 -p1 +%patch9001 -p1 + +%ifarch loongarch64 +%_update_config_guess +%_update_config_sub +%endif %build autoconf @@ -230,7 +239,9 @@ pushd ${DebugBuildDir} --with-dtrace \ --with-ssl-default-suites=openssl \ %ifarch %{valgrind_arches} +%ifnarch loongarch64 --with-valgrind \ +%endif %endif --without-ensurepip \ --with-pydebug @@ -259,7 +270,9 @@ pushd ${OptimizedBuildDir} --with-dtrace \ --with-ssl-default-suites=openssl \ %ifarch %{valgrind_arches} +%ifnarch loongarch64 --with-valgrind \ +%endif %endif --without-ensurepip \ %{optimizations_flag} @@ -799,6 +812,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP" %{_mandir}/*/* %changelog +* Tue Mar 7 2023 doupengda - 3.10.9-2 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC: add loongarch64 support and disable valgrind-devel for loongarch64 + * Mon Jan 30 2023 zhuofeng - 3.10.9-1 - Type:enhancement - CVE:NA -- Gitee