Skip to content

Commit

Permalink
sys-libs/compiler-rt-sanitizers: Try to stop pulling py3.10
Browse files Browse the repository at this point in the history
Portage has a bug where repeated Python any-of (||) dependencies cause
it to wrongly pull Python 3.10 instead of being happy with the installed
interpreter.  Put the non-test? Python dependency into "!test?" block
to work around that.

Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Dec 4, 2021
1 parent 72d7376 commit 331b742
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ BDEPEND="
=sys-devel/clang-${PV%_*}*:${CLANG_SLOT}
sys-libs/compiler-rt:${SLOT}
)
${PYTHON_DEPS}"
!test? (
${PYTHON_DEPS}
)"

LLVM_COMPONENTS=( compiler-rt )
LLVM_TEST_COMPONENTS=( llvm/lib/Testing/Support llvm/utils/unittest )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ BDEPEND="
=sys-devel/clang-${PV%_*}*:${CLANG_SLOT}
sys-libs/compiler-rt:${SLOT}
)
${PYTHON_DEPS}"
!test? (
${PYTHON_DEPS}
)"

LLVM_COMPONENTS=( compiler-rt )
LLVM_TEST_COMPONENTS=( llvm/lib/Testing/Support llvm/utils/unittest )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ BDEPEND="
=sys-devel/clang-${PV%_*}*:${CLANG_SLOT}
sys-libs/compiler-rt:${SLOT}
)
${PYTHON_DEPS}"
!test? (
${PYTHON_DEPS}
)"

LLVM_COMPONENTS=( compiler-rt )
LLVM_TEST_COMPONENTS=( llvm/lib/Testing/Support llvm/utils/unittest )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ BDEPEND="
=sys-devel/clang-${PV%_*}*:${CLANG_SLOT}
sys-libs/compiler-rt:${SLOT}
)
${PYTHON_DEPS}"
!test? (
${PYTHON_DEPS}
)"

LLVM_COMPONENTS=( compiler-rt cmake )
LLVM_TEST_COMPONENTS=( llvm/lib/Testing/Support llvm/utils/unittest )
Expand Down

0 comments on commit 331b742

Please sign in to comment.