1 |
commit: 2b399d66100724cf7eb03d2a2f98c3d552feea12 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 19 13:08:13 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 6 18:49:45 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b399d66 |
7 |
|
8 |
kde5.eclass: only export pkg_pretend if KDE_GCC_MINIMAL is defined |
9 |
|
10 |
Exporting pkg_pretend is expensive, even if the exported function is a noop. |
11 |
|
12 |
As kde5_pkg_pretend is currently only used to check if the active GCC version |
13 |
is recent enough, only export that phase if it will have something to do. |
14 |
|
15 |
The number of situations in which KDE_GCC_MINIMAL is exported will be |
16 |
substantially reduced in a future commit. This will result in a large time |
17 |
saving at the beginning of the emerge process as we will no longer see hundreds |
18 |
of lines of: |
19 |
|
20 |
>>> Running pre-merge checks for kde-foo/bar-123 |
21 |
>>> Running pre-merge checks for kde-foo/baz-123 |
22 |
|
23 |
eclass/kde5.eclass | 2 +- |
24 |
1 file changed, 1 insertion(+), 1 deletion(-) |
25 |
|
26 |
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass |
27 |
index 4da810b..5c4bbba 100644 |
28 |
--- a/eclass/kde5.eclass |
29 |
+++ b/eclass/kde5.eclass |
30 |
@@ -27,7 +27,7 @@ if [[ ${KDE_BUILD_TYPE} = live ]]; then |
31 |
esac |
32 |
fi |
33 |
|
34 |
-if [[ ${CATEGORY} != kde-frameworks ]]; then |
35 |
+if [[ -v KDE_GCC_MINIMAL ]]; then |
36 |
EXPORT_FUNCTIONS pkg_pretend |
37 |
fi |