Compare commits
3 Commits
master
...
master-ris
Author | SHA1 | Date | |
---|---|---|---|
6523bbe976 | |||
5927a89d1c | |||
4eba03b102 |
19
Python-3.5.9-riscv-triplets.patch
Normal file
19
Python-3.5.9-riscv-triplets.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 6c7813b..d1611da 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -840,6 +840,14 @@ cat >> conftest.c <<EOF
|
||||||
|
sparc64-linux-gnu
|
||||||
|
# elif defined(__sparc__)
|
||||||
|
sparc-linux-gnu
|
||||||
|
+# elif defined(__riscv)
|
||||||
|
+# if __riscv_xlen == 32
|
||||||
|
+ riscv32-linux-gnu
|
||||||
|
+# elif __riscv_xlen == 64
|
||||||
|
+ riscv64-linux-gnu
|
||||||
|
+# else
|
||||||
|
+# error unknown platform triplet
|
||||||
|
+# endif
|
||||||
|
# else
|
||||||
|
# error unknown platform triplet
|
||||||
|
# endif
|
@ -87,7 +87,7 @@ URL: https://www.python.org/
|
|||||||
#global prerel ...
|
#global prerel ...
|
||||||
%global upstream_version %{general_version}%{?prerel}
|
%global upstream_version %{general_version}%{?prerel}
|
||||||
Version: %{general_version}%{?prerel:~%{prerel}}
|
Version: %{general_version}%{?prerel:~%{prerel}}
|
||||||
Release: 5%{?dist}
|
Release: 5.1.riscv64%{?dist}
|
||||||
License: Python
|
License: Python
|
||||||
|
|
||||||
# Whether to use RPM build wheels from the python-{pip,setuptools}-wheel package
|
# Whether to use RPM build wheels from the python-{pip,setuptools}-wheel package
|
||||||
@ -440,6 +440,8 @@ Patch348: 00348-always-disable-lchmod.patch
|
|||||||
# it should be ppc64le-linux-gnu/ppc64-linux-gnu instead powerpc64le-linux-gnu/powerpc64-linux-gnu
|
# it should be ppc64le-linux-gnu/ppc64-linux-gnu instead powerpc64le-linux-gnu/powerpc64-linux-gnu
|
||||||
Patch5001: python3-powerppc-arch.patch
|
Patch5001: python3-powerppc-arch.patch
|
||||||
|
|
||||||
|
# Add riscv64-linux-gnu to the triplet detection
|
||||||
|
Patch6000: Python-3.5.9-riscv-triplets.patch
|
||||||
|
|
||||||
# ======================================================
|
# ======================================================
|
||||||
# Additional metadata, and subpackages
|
# Additional metadata, and subpackages
|
||||||
@ -566,6 +568,8 @@ sed --in-place \
|
|||||||
|
|
||||||
%patch5001 -p1
|
%patch5001 -p1
|
||||||
|
|
||||||
|
%patch6000 -p1
|
||||||
|
|
||||||
# ======================================================
|
# ======================================================
|
||||||
# Configuring and building the code:
|
# Configuring and building the code:
|
||||||
# ======================================================
|
# ======================================================
|
||||||
@ -980,7 +984,7 @@ CheckPython() {
|
|||||||
%ifarch ppc64le aarch64
|
%ifarch ppc64le aarch64
|
||||||
-x test_faulthandler \
|
-x test_faulthandler \
|
||||||
%endif
|
%endif
|
||||||
%ifarch %{mips64}
|
%ifarch %{mips64} riscv64
|
||||||
-x test_ctypes \
|
-x test_ctypes \
|
||||||
%endif
|
%endif
|
||||||
%ifarch %{power64} s390 s390x armv7hl aarch64 %{mips}
|
%ifarch %{power64} s390 s390x armv7hl aarch64 %{mips}
|
||||||
@ -1069,6 +1073,9 @@ CheckPython optimized
|
|||||||
# ======================================================
|
# ======================================================
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 01 2020 David Abdurachmanov <david.abdurachmanov@sifive.com> - 3.5.9-5.1.riscv64
|
||||||
|
- Disable test_ctypes test on riscv64
|
||||||
|
|
||||||
* Wed May 06 2020 Miro Hrončok <mhroncok@redhat.com> - 3.5.9-5
|
* Wed May 06 2020 Miro Hrončok <mhroncok@redhat.com> - 3.5.9-5
|
||||||
- Rename from python35 to python3.5
|
- Rename from python35 to python3.5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user