commit: 082de40aabef777138fd9a5dd0f7990bc5d68db2
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 14 09:00:10 2019 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jul 14 09:00:10 2019 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=082de40a
scripts/bootstrap-prefix: add python2_7 for clang-based targets
clang-6 (at least) needs python2, so re-add python2_7 to PYTHON_TARGETS
if this package is going to be installed in stage2.
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
scripts/bootstrap-prefix.sh | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index c6c0e1079d..888b620148 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -390,6 +390,13 @@ bootstrap_setup() {
echo "USE=\"\${USE}
${MAKE_CONF_ADDITIONAL_USE}\""
[[ ${OFFLINE_MODE} ]] && \
echo 'FETCHCOMMAND="bash -c \"echo I need
\${FILE} from \${URI} in \${DISTDIR}; read\""'
+ if [[ ${compiler_type} == clang ]] ; then
+ local ptrgs=$(sed -n
's/^PYTHON_TARGETS="\([^"]\+\)".*$/\1/' \
+ "${PORTDIR}"/profiles/prefix/make.conf)
+ ptrgs=${ptrgs/-python2_7/}
+ echo "# python2 is required by
sys-devel/clang-6"
+ echo "PYTHON_TARGETS=\"python2_7 ${ptrgs}\""
+ fi
} > "${ROOT}"/etc/portage/make.conf
fi