1 |
commit: 6f31bf5705bf6d67def94f2356f097504d31465b |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 7 12:18:20 2017 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 7 12:23:57 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f31bf57 |
7 |
|
8 |
java-pkg-opt-2.eclass: fix EAPI 6 support in java-pkg-opt-2_src_prepare |
9 |
|
10 |
For EAPI 6+ java-pkg-opt-2_src_prepare() has eapply_user call via |
11 |
java-utils-2_src_prepare() from java-utils-2.eclass. But |
12 |
java-utils-2_src_prepare() call is conditional and in case when |
13 |
package is build with USE=-java java-utils-2_src_prepare() is not |
14 |
called, hence eapply_user is not called in src_prepare phase and |
15 |
ebuild fails. |
16 |
|
17 |
This problem is fixed by calling eapply_user if java USE is |
18 |
disabled _and_ EAPI is 6+. |
19 |
|
20 |
eclass/java-pkg-opt-2.eclass | 4 ++++ |
21 |
1 file changed, 4 insertions(+) |
22 |
|
23 |
diff --git a/eclass/java-pkg-opt-2.eclass b/eclass/java-pkg-opt-2.eclass |
24 |
index 16c9f8fcbf2..fa72421a0d7 100644 |
25 |
--- a/eclass/java-pkg-opt-2.eclass |
26 |
+++ b/eclass/java-pkg-opt-2.eclass |
27 |
@@ -44,6 +44,10 @@ java-pkg-opt-2_pkg_setup() { |
28 |
|
29 |
java-pkg-opt-2_src_prepare() { |
30 |
use ${JAVA_PKG_OPT_USE} && java-utils-2_src_prepare |
31 |
+ case "${EAPI:-0}" in |
32 |
+ [0-5]) ;; |
33 |
+ *) use ${JAVA_PKG_OPT_USE} || eapply_user ;; |
34 |
+ esac |
35 |
} |