Compare commits
2 Commits
master
...
master-ris
Author | SHA1 | Date |
---|---|---|
David Abdurachmanov | 5c9e6f94cb | |
David Abdurachmanov | 754b5f85f4 |
|
@ -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 upstream_version %{general_version}%{?prerel}
|
||||
Version: %{general_version}%{?prerel:~%{prerel}}
|
||||
Release: 5%{?dist}
|
||||
Release: 5.0.riscv64%{?dist}
|
||||
License: Python
|
||||
|
||||
|
||||
|
@ -365,6 +365,9 @@ Patch294: 00294-define-TLS-cipher-suite-on-build-time.patch
|
|||
# https://github.com/python/cpython/commit/ac827edc493d3ac3f5b9b0cc353df1d4b418a9aa
|
||||
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 ^^^)
|
||||
#
|
||||
# When adding new patches to "python" and "python3" in Fedora, EL, etc.,
|
||||
|
@ -653,6 +656,7 @@ rm Lib/ensurepip/_bundled/*.whl
|
|||
%patch294 -p1
|
||||
%patch343 -p1
|
||||
|
||||
%patch500 -p1
|
||||
|
||||
# Remove files that should be generated by the build
|
||||
# (This is after patching, so that we can use patches directly from upstream)
|
||||
|
@ -1050,7 +1054,7 @@ CheckPython() {
|
|||
%ifarch ppc64le aarch64
|
||||
-x test_faulthandler \
|
||||
%endif
|
||||
%ifarch %{mips64}
|
||||
%ifarch %{mips64} riscv64
|
||||
-x test_ctypes \
|
||||
%endif
|
||||
%ifarch ppc64le
|
||||
|
@ -1529,6 +1533,9 @@ CheckPython optimized
|
|||
# ======================================================
|
||||
|
||||
%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
|
||||
- Fix python3-config --configdir (rhbz#1772988).
|
||||
|
||||
|
|
Loading…
Reference in New Issue