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: media-libs/mesa/
Date: Thu, 28 Sep 2017 13:19:21
Message-Id: 1506604533.8c6b43c7f4bd4a7de57bfbe4e3af433281565b1f.mgorny@gentoo
1 commit: 8c6b43c7f4bd4a7de57bfbe4e3af433281565b1f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 17 10:13:34 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 28 13:15:33 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c6b43c7
7
8 media-libs/mesa: Use correct slotted LLVM deps
9
10 Introduce a proper complete slotted dependency block for LLVM. While
11 it's not strictly necessary whenever the Mesa version supports
12 the newest LLVM version, keeping it unconditionally will help developers
13 wrap up Mesa releases correctly.
14
15 media-libs/mesa/mesa-9999.ebuild | 15 ++++++++++++++-
16 1 file changed, 14 insertions(+), 1 deletion(-)
17
18 diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild
19 index 6cc00b90712..cd6ff53c78a 100644
20 --- a/media-libs/mesa/mesa-9999.ebuild
21 +++ b/media-libs/mesa/mesa-9999.ebuild
22 @@ -140,7 +140,20 @@ RDEPEND="${RDEPEND}
23 # Please keep the LLVM dependency block separate. Since LLVM is slotted,
24 # we need to *really* make sure we're not pulling one than more slot
25 # simultaneously.
26 -LLVM_DEPSTR=">=sys-devel/llvm-3.9.0:=[${MULTILIB_USEDEP}]"
27 +#
28 +# How to use it:
29 +# 1. List all the working slots (with min versions) in ||, newest first.
30 +# 2. Update the := to specify *max* version, e.g. < 7.
31 +# 3. Specify LLVM_MAX_SLOT, e.g. 6.
32 +LLVM_DEPSTR="
33 + || (
34 + sys-devel/llvm:6[${MULTILIB_USEDEP}]
35 + sys-devel/llvm:5[${MULTILIB_USEDEP}]
36 + sys-devel/llvm:4[${MULTILIB_USEDEP}]
37 + >=sys-devel/llvm-3.9.0:0[${MULTILIB_USEDEP}]
38 + )
39 + sys-devel/llvm:=[${MULTILIB_USEDEP}]
40 +"
41 LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
42 CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
43 CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}