commit:     5a576e626fb9459377ad3628f780b47ab2888158
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Thu May  2 21:44:56 2019 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Thu May  2 21:44:56 2019 +0000
URL:        https://gitweb.gentoo.org/proj/riscv.git/commit/?id=5a576e62

profiles: Rework so we only use python-3.7 (no patches needed there)

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 profiles/arch/riscv/package.accept_keywords   | 1 -
 profiles/arch/riscv/rv64gc/make.defaults      | 4 ++++
 profiles/arch/riscv/{ => rv64gc}/package.mask | 2 +-
 profiles/arch/riscv/rv64gc/use.mask           | 8 ++++++++
 profiles/arch/riscv/use.mask                  | 3 ---
 5 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/profiles/arch/riscv/package.accept_keywords 
b/profiles/arch/riscv/package.accept_keywords
index 41b16e7..dc5941f 100644
--- a/profiles/arch/riscv/package.accept_keywords
+++ b/profiles/arch/riscv/package.accept_keywords
@@ -1,5 +1,4 @@
 # we need specific versions / patches for riscv
-dev-lang/python -amd64 -~amd64
 sys-devel/gcc -amd64 -~amd64
 sys-libs/glibc -amd64 -~amd64
 

diff --git a/profiles/arch/riscv/rv64gc/make.defaults 
b/profiles/arch/riscv/rv64gc/make.defaults
index 43de775..0d78820 100644
--- a/profiles/arch/riscv/rv64gc/make.defaults
+++ b/profiles/arch/riscv/rv64gc/make.defaults
@@ -36,3 +36,7 @@ USE_EXPAND_HIDDEN="-ABI_RISCV"
 
 # Implicitly enable lp64d in ebuilds without multilib support
 IUSE_IMPLICIT="abi_riscv_lp64d"
+
+# Enable Python 3.7 (and potentially later versions) only
+PYTHON_TARGETS="python3_7"
+PYTHON_SINGLE_TARGET="python3_7"

diff --git a/profiles/arch/riscv/package.mask 
b/profiles/arch/riscv/rv64gc/package.mask
similarity index 70%
rename from profiles/arch/riscv/package.mask
rename to profiles/arch/riscv/rv64gc/package.mask
index 887eef2..e351251 100644
--- a/profiles/arch/riscv/package.mask
+++ b/profiles/arch/riscv/rv64gc/package.mask
@@ -1,2 +1,2 @@
 # Doesnt work properly with the two-level libdirs
-dev-lang/python:2.7
+<dev-lang/python-3.7

diff --git a/profiles/arch/riscv/rv64gc/use.mask 
b/profiles/arch/riscv/rv64gc/use.mask
index cf1e9a0..f7180f2 100644
--- a/profiles/arch/riscv/rv64gc/use.mask
+++ b/profiles/arch/riscv/rv64gc/use.mask
@@ -1,3 +1,11 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
 # Unmask the multilib flags for this arch.
 -abi_riscv_lp64d
 -abi_riscv_lp64
+
+# Our Python has a lot of trouble with the two-level libdir.
+python_targets_python2_7
+python_targets_python3_5
+python_targets_python3_6

diff --git a/profiles/arch/riscv/use.mask b/profiles/arch/riscv/use.mask
index d974bbe..7e3b454 100644
--- a/profiles/arch/riscv/use.mask
+++ b/profiles/arch/riscv/use.mask
@@ -6,6 +6,3 @@
 
 # The required library has not been ported to riscv yet.
 seccomp
-
-# Python 2 has a lot of trouble with the two-level libdir.
-python_targets_python2_7

Reply via email to