1 |
commit: f336e8bc9cb902d61882358e57531f9269c206e6 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 19 03:11:41 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 19 03:11:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f336e8bc |
7 |
|
8 |
sys-devel/sparse: improve llvm_check_deps logic |
9 |
|
10 |
Bug: https://bugs.gentoo.org/812551 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
sys-devel/sparse/sparse-0.6.4.ebuild | 5 ++--- |
14 |
sys-devel/sparse/sparse-9999.ebuild | 5 ++--- |
15 |
2 files changed, 4 insertions(+), 6 deletions(-) |
16 |
|
17 |
diff --git a/sys-devel/sparse/sparse-0.6.4.ebuild b/sys-devel/sparse/sparse-0.6.4.ebuild |
18 |
index 8e6b268ec5b..6fbcc28e155 100644 |
19 |
--- a/sys-devel/sparse/sparse-0.6.4.ebuild |
20 |
+++ b/sys-devel/sparse/sparse-0.6.4.ebuild |
21 |
@@ -31,9 +31,8 @@ BDEPEND="gtk? ( virtual/pkgconfig ) |
22 |
xml? ( virtual/pkgconfig )" |
23 |
|
24 |
llvm_check_deps() { |
25 |
- has_version "sys-devel/llvm:${LLVM_MAX_SLOT}" || \ |
26 |
- has_version "sys-devel/llvm:$((${LLVM_MAX_SLOT} - 1))" \ |
27 |
- has_version "sys-devel/llvm:$((${LLVM_MAX_SLOT} - 2))" |
28 |
+ has_version "sys-devel/llvm:${LLVM_SLOT}" && \ |
29 |
+ has_version -r "sys-devel/llvm:${LLVM_SLOT}" |
30 |
} |
31 |
|
32 |
pkg_setup() { |
33 |
|
34 |
diff --git a/sys-devel/sparse/sparse-9999.ebuild b/sys-devel/sparse/sparse-9999.ebuild |
35 |
index 8e6b268ec5b..6fbcc28e155 100644 |
36 |
--- a/sys-devel/sparse/sparse-9999.ebuild |
37 |
+++ b/sys-devel/sparse/sparse-9999.ebuild |
38 |
@@ -31,9 +31,8 @@ BDEPEND="gtk? ( virtual/pkgconfig ) |
39 |
xml? ( virtual/pkgconfig )" |
40 |
|
41 |
llvm_check_deps() { |
42 |
- has_version "sys-devel/llvm:${LLVM_MAX_SLOT}" || \ |
43 |
- has_version "sys-devel/llvm:$((${LLVM_MAX_SLOT} - 1))" \ |
44 |
- has_version "sys-devel/llvm:$((${LLVM_MAX_SLOT} - 2))" |
45 |
+ has_version "sys-devel/llvm:${LLVM_SLOT}" && \ |
46 |
+ has_version -r "sys-devel/llvm:${LLVM_SLOT}" |
47 |
} |
48 |
|
49 |
pkg_setup() { |