Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Thu, 28 May 2020 11:41:33
Message-Id: 1590666081.2f90db9a989471a41a152b7ccf59bb1c590d14e0.mgorny@gentoo
1 commit: 2f90db9a989471a41a152b7ccf59bb1c590d14e0
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 26 07:27:47 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 28 11:41:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f90db9a
7
8 llvm.eclass: Remove remnants of slot :0 support
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 eclass/llvm.eclass | 18 +++++-------------
13 1 file changed, 5 insertions(+), 13 deletions(-)
14
15 diff --git a/eclass/llvm.eclass b/eclass/llvm.eclass
16 index a2da231b035..4f968dc39f8 100644
17 --- a/eclass/llvm.eclass
18 +++ b/eclass/llvm.eclass
19 @@ -71,6 +71,10 @@ EXPORT_FUNCTIONS pkg_setup
20
21 if [[ ! ${_LLVM_ECLASS} ]]; then
22
23 +# make sure that the versions installing straight into /usr/bin
24 +# are uninstalled
25 +DEPEND="!!sys-devel/llvm:0"
26 +
27 # @ECLASS-VARIABLE: LLVM_MAX_SLOT
28 # @DEFAULT_UNSET
29 # @DESCRIPTION:
30 @@ -173,13 +177,6 @@ get_llvm_prefix() {
31 die "${FUNCNAME}: invalid max_slot=${max_slot}"
32 fi
33
34 - # fallback to :0
35 - # assume it's always <= 4 (the lower max_slot allowed)
36 - if has_version ${hv_switch} "sys-devel/llvm:0"; then
37 - echo "${prefix}/usr"
38 - return
39 - fi
40 -
41 die "No LLVM slot${1:+ <= ${1}} found installed!"
42 }
43
44 @@ -202,12 +199,7 @@ llvm_pkg_setup() {
45
46 if [[ ${MERGE_TYPE} != binary ]]; then
47 local llvm_prefix=$(get_llvm_prefix "${LLVM_MAX_SLOT}")
48 -
49 - # do not prepend /usr/bin, it's not necessary and breaks other
50 - # prepends, https://bugs.gentoo.org/622866
51 - if [[ ${llvm_prefix} != ${EPREFIX}/usr ]]; then
52 - export PATH=${llvm_prefix}/bin:${PATH}
53 - fi
54 + export PATH=${llvm_prefix}/bin:${PATH}
55 fi
56 }