1 |
commit: 3f8f4ec753f1d0778e873dda4e1e7b3d26b8f10a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 15 08:52:00 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 15 08:53:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f8f4ec7 |
7 |
|
8 |
sys-devel/clang: Remove no-longer-useful check-reqs |
9 |
|
10 |
Now that LLVM is split, the package is no longer horribly large |
11 |
in regular builds. The new sizes fit the usual limits and so do not need |
12 |
specific checks. Furthermore, maintaining all those values with |
13 |
different USE flags and compiler flags combinations. |
14 |
|
15 |
sys-devel/clang/clang-4.0.0-r2.ebuild | 33 +-------------------------------- |
16 |
sys-devel/clang/clang-9999.ebuild | 33 +-------------------------------- |
17 |
2 files changed, 2 insertions(+), 64 deletions(-) |
18 |
|
19 |
diff --git a/sys-devel/clang/clang-4.0.0-r2.ebuild b/sys-devel/clang/clang-4.0.0-r2.ebuild |
20 |
index a127f9c864f..43fec7af397 100644 |
21 |
--- a/sys-devel/clang/clang-4.0.0-r2.ebuild |
22 |
+++ b/sys-devel/clang/clang-4.0.0-r2.ebuild |
23 |
@@ -8,7 +8,7 @@ EAPI=6 |
24 |
CMAKE_MIN_VERSION=3.7.0-r1 |
25 |
PYTHON_COMPAT=( python2_7 ) |
26 |
|
27 |
-inherit check-reqs cmake-utils flag-o-matic llvm multilib-minimal \ |
28 |
+inherit cmake-utils flag-o-matic llvm multilib-minimal \ |
29 |
python-single-r1 toolchain-funcs pax-utils versionator |
30 |
|
31 |
DESCRIPTION="C language family frontend for LLVM" |
32 |
@@ -71,38 +71,7 @@ CMAKE_BUILD_TYPE=RelWithDebInfo |
33 |
# Therefore: use sys-devel/clang[${MULTILIB_USEDEP}] only if you need |
34 |
# multilib clang* libraries (not runtime, not wrappers). |
35 |
|
36 |
-check_space() { |
37 |
- local build_size=650 |
38 |
- |
39 |
- if use debug; then |
40 |
- ewarn "USE=debug is known to increase the size of package considerably" |
41 |
- ewarn "and cause the tests to fail." |
42 |
- ewarn |
43 |
- |
44 |
- (( build_size *= 14 )) |
45 |
- elif is-flagq '-g?(gdb)?([1-9])'; then |
46 |
- ewarn "The C++ compiler -g option is known to increase the size of the package" |
47 |
- ewarn "considerably. If you run out of space, please consider removing it." |
48 |
- ewarn |
49 |
- |
50 |
- (( build_size *= 10 )) |
51 |
- fi |
52 |
- |
53 |
- # Multiply by number of ABIs :). |
54 |
- local abis=( $(multilib_get_enabled_abis) ) |
55 |
- (( build_size *= ${#abis[@]} )) |
56 |
- |
57 |
- local CHECKREQS_DISK_BUILD=${build_size}M |
58 |
- check-reqs_pkg_pretend |
59 |
-} |
60 |
- |
61 |
-pkg_pretend() { |
62 |
- check_space |
63 |
-} |
64 |
- |
65 |
pkg_setup() { |
66 |
- check_space |
67 |
- |
68 |
LLVM_MAX_SLOT=${SLOT} llvm_pkg_setup |
69 |
python-single-r1_pkg_setup |
70 |
} |
71 |
|
72 |
diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild |
73 |
index 9987f2bfa1a..fb0fc68cff4 100644 |
74 |
--- a/sys-devel/clang/clang-9999.ebuild |
75 |
+++ b/sys-devel/clang/clang-9999.ebuild |
76 |
@@ -8,7 +8,7 @@ EAPI=6 |
77 |
CMAKE_MIN_VERSION=3.7.0-r1 |
78 |
PYTHON_COMPAT=( python2_7 ) |
79 |
|
80 |
-inherit check-reqs cmake-utils flag-o-matic git-r3 llvm multilib-minimal \ |
81 |
+inherit cmake-utils flag-o-matic git-r3 llvm multilib-minimal \ |
82 |
python-single-r1 toolchain-funcs pax-utils versionator |
83 |
|
84 |
DESCRIPTION="C language family frontend for LLVM" |
85 |
@@ -74,38 +74,7 @@ CMAKE_BUILD_TYPE=RelWithDebInfo |
86 |
# Therefore: use sys-devel/clang[${MULTILIB_USEDEP}] only if you need |
87 |
# multilib clang* libraries (not runtime, not wrappers). |
88 |
|
89 |
-check_space() { |
90 |
- local build_size=650 |
91 |
- |
92 |
- if use debug; then |
93 |
- ewarn "USE=debug is known to increase the size of package considerably" |
94 |
- ewarn "and cause the tests to fail." |
95 |
- ewarn |
96 |
- |
97 |
- (( build_size *= 14 )) |
98 |
- elif is-flagq '-g?(gdb)?([1-9])'; then |
99 |
- ewarn "The C++ compiler -g option is known to increase the size of the package" |
100 |
- ewarn "considerably. If you run out of space, please consider removing it." |
101 |
- ewarn |
102 |
- |
103 |
- (( build_size *= 10 )) |
104 |
- fi |
105 |
- |
106 |
- # Multiply by number of ABIs :). |
107 |
- local abis=( $(multilib_get_enabled_abis) ) |
108 |
- (( build_size *= ${#abis[@]} )) |
109 |
- |
110 |
- local CHECKREQS_DISK_BUILD=${build_size}M |
111 |
- check-reqs_pkg_pretend |
112 |
-} |
113 |
- |
114 |
-pkg_pretend() { |
115 |
- check_space |
116 |
-} |
117 |
- |
118 |
pkg_setup() { |
119 |
- check_space |
120 |
- |
121 |
LLVM_MAX_SLOT=${SLOT} llvm_pkg_setup |
122 |
python-single-r1_pkg_setup |
123 |
} |