1 |
commit: 75443af4774ae964a1225dd823e4929d0a3aa2da |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 8 13:47:09 2017 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 8 13:48:38 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75443af4 |
7 |
|
8 |
dev-java/icedtea: Always disable PCH on PaX systems, bug #601016 |
9 |
|
10 |
I will add this to 7.2 when it supports disabling PCH in 7.2.7.0. |
11 |
|
12 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
13 |
|
14 |
dev-java/icedtea/icedtea-3.3.0.ebuild | 9 ++++++++- |
15 |
1 file changed, 8 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-java/icedtea/icedtea-3.3.0.ebuild b/dev-java/icedtea/icedtea-3.3.0.ebuild |
18 |
index 1bde5048e78..56c7b57cf85 100644 |
19 |
--- a/dev-java/icedtea/icedtea-3.3.0.ebuild |
20 |
+++ b/dev-java/icedtea/icedtea-3.3.0.ebuild |
21 |
@@ -1,5 +1,6 @@ |
22 |
# Copyright 1999-2017 Gentoo Foundation |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
# Build written by Andrew John Hughes (gnu_andrew@××××××××××.org) |
26 |
|
27 |
EAPI="6" |
28 |
@@ -280,6 +281,13 @@ src_configure() { |
29 |
config+=" --disable-ccache" |
30 |
fi |
31 |
|
32 |
+ # PaX breaks pch, bug #601016 |
33 |
+ if use pch && ! host-is-pax; then |
34 |
+ config+=" --enable-precompiled-headers" |
35 |
+ else |
36 |
+ config+=" --disable-precompiled-headers" |
37 |
+ fi |
38 |
+ |
39 |
config+=" --with-parallel-jobs=$(makeopts_jobs)" |
40 |
|
41 |
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS |
42 |
@@ -310,7 +318,6 @@ src_configure() { |
43 |
$(use_enable doc docs) \ |
44 |
$(use_enable kerberos system-kerberos) \ |
45 |
$(use_with pax_kernel pax "${EPREFIX}/usr/sbin/paxmark.sh") \ |
46 |
- $(use_enable pch precompiled-headers) \ |
47 |
$(use_enable sctp system-sctp) \ |
48 |
$(use_enable smartcard system-pcsc) \ |
49 |
$(use_enable sunec) \ |