summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-11-26 20:38:26 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-11-26 20:38:26 +0000
commitba2cf02ea7592c754301e3754de43e1422e88c2d (patch)
tree004120f137e60dd874163e760e6a209a3d46f282 /eclass/java-utils-2.eclass
parentStable on amd64 wrt bug #200411 (diff)
downloadgentoo-2-ba2cf02ea7592c754301e3754de43e1422e88c2d.tar.gz
gentoo-2-ba2cf02ea7592c754301e3754de43e1422e88c2d.tar.bz2
gentoo-2-ba2cf02ea7592c754301e3754de43e1422e88c2d.zip
Use export VAR= instead of unset because Portage does not preserve unsetting across functions.
Diffstat (limited to 'eclass/java-utils-2.eclass')
-rw-r--r--eclass/java-utils-2.eclass14
1 files changed, 9 insertions, 5 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index fdf7b6be6455..b98e12956862 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -6,7 +6,7 @@
#
# Licensed under the GNU General Public License, v2
#
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.96 2007/11/25 07:51:41 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.97 2007/11/26 20:38:26 betelgeuse Exp $
# -----------------------------------------------------------------------------
# @eclass-begin
@@ -2049,6 +2049,7 @@ use_doc() {
#
# -----------------------------------------------------------------------------
java-pkg_init() {
+ debug-print-function ${FUNCNAME} $*
unset JAVAC
unset JAVA_HOME
@@ -2066,7 +2067,7 @@ java-pkg_init() {
fi
if [[ -z ${accept} ]]; then
- unset _JAVA_OPTIONS
+ export _JAVA_OPTIONS=
# phase hooks make this run many times without this
I_WANT_GLOBAL_JAVA_OPTIONS="true"
fi
@@ -2084,15 +2085,18 @@ java-pkg_init() {
# Do some QA checks
java-pkg_check-jikes
+ # Can't use unset here because Portage does not save the unset
+ # see https://bugs.gentoo.org/show_bug.cgi?id=189417#c11
+
# When users have crazy classpaths some packages can fail to compile.
# and everything should work with empty CLASSPATH.
# This also helps prevent unexpected dependencies on random things
# from the CLASSPATH.
- unset CLASSPATH
+ export CLASSPATH=
# Unset external ANT_ stuff
- unset ANT_TASKS
- unset ANT_OPTS
+ export ANT_TASKS=
+ export ANT_OPTS=
}
# ------------------------------------------------------------------------------