Compare commits
2 Commits
master
...
master-ris
Author | SHA1 | Date | |
---|---|---|---|
5c9e6f94cb | |||
754b5f85f4 |
19
Python-3.6.10-riscv-triplets.patch
Normal file
19
Python-3.6.10-riscv-triplets.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index c071ec3..53ed6cd 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -846,6 +846,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
|
@ -17,7 +17,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.0.riscv64%{?dist}
|
||||||
License: Python
|
License: Python
|
||||||
|
|
||||||
|
|
||||||
@ -365,6 +365,9 @@ Patch294: 00294-define-TLS-cipher-suite-on-build-time.patch
|
|||||||
# https://github.com/python/cpython/commit/ac827edc493d3ac3f5b9b0cc353df1d4b418a9aa
|
# https://github.com/python/cpython/commit/ac827edc493d3ac3f5b9b0cc353df1d4b418a9aa
|
||||||
Patch343: 00343-faulthandler-gcc10.patch
|
Patch343: 00343-faulthandler-gcc10.patch
|
||||||
|
|
||||||
|
# Add riscv64-linux-gnu to the triplet detection
|
||||||
|
Patch500: Python-3.6.10-riscv-triplets.patch
|
||||||
|
|
||||||
# (New patches go here ^^^)
|
# (New patches go here ^^^)
|
||||||
#
|
#
|
||||||
# When adding new patches to "python" and "python3" in Fedora, EL, etc.,
|
# When adding new patches to "python" and "python3" in Fedora, EL, etc.,
|
||||||
@ -653,6 +656,7 @@ rm Lib/ensurepip/_bundled/*.whl
|
|||||||
%patch294 -p1
|
%patch294 -p1
|
||||||
%patch343 -p1
|
%patch343 -p1
|
||||||
|
|
||||||
|
%patch500 -p1
|
||||||
|
|
||||||
# Remove files that should be generated by the build
|
# Remove files that should be generated by the build
|
||||||
# (This is after patching, so that we can use patches directly from upstream)
|
# (This is after patching, so that we can use patches directly from upstream)
|
||||||
@ -1050,7 +1054,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 ppc64le
|
%ifarch ppc64le
|
||||||
@ -1529,6 +1533,9 @@ CheckPython optimized
|
|||||||
# ======================================================
|
# ======================================================
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 01 2020 David Abdurachmanov <david.abdurachmanov@sifive.com> - 3.6.10-5.0.riscv64
|
||||||
|
- Disable test_ctypes test for riscv64
|
||||||
|
|
||||||
* Thu May 28 2020 Victor Stinner <vstinner@python.org> - 3.6.10-5
|
* Thu May 28 2020 Victor Stinner <vstinner@python.org> - 3.6.10-5
|
||||||
- Fix python3-config --configdir (rhbz#1772988).
|
- Fix python3-config --configdir (rhbz#1772988).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user