summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2015-09-04 23:11:30 +0100
committerJames Le Cuirot <chewi@gentoo.org>2015-09-04 23:49:55 +0100
commitcb7b42ad0aa1a36f52f759eb70f2021c98ce8541 (patch)
treec80b4a4cf6b0aa074fa0ff2cccbe871e18ddf8c8 /eclass/java-utils-2.eclass
parentapp-emulation/vmware-player: Version bump (diff)
downloadgentoo-cb7b42ad0aa1a36f52f759eb70f2021c98ce8541.tar.gz
gentoo-cb7b42ad0aa1a36f52f759eb70f2021c98ce8541.tar.bz2
gentoo-cb7b42ad0aa1a36f52f759eb70f2021c98ce8541.zip
java-utils-2.eclass: Make java-pkg_init-compiler_ output to stderr
It was corrupting the result of java-pkg_get-javac in rare cases. Fixes bug #559230.
Diffstat (limited to 'eclass/java-utils-2.eclass')
-rw-r--r--eclass/java-utils-2.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index 0a1a8a38b470..6e333118f5bb 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -2203,7 +2203,7 @@ java-pkg_init-compiler_() {
if has ${compiler} ${JAVA_PKG_FILTER_COMPILER}; then
if [[ -z ${JAVA_PKG_FORCE_COMPILER} ]]; then
- einfo "Filtering ${compiler}"
+ einfo "Filtering ${compiler}" >&2
continue
fi
fi
@@ -2243,10 +2243,10 @@ java-pkg_init-compiler_() {
# If it hasn't been defined already, default to javac
if [[ -z ${GENTOO_COMPILER} ]]; then
if [[ -n ${compilers} ]]; then
- einfo "No suitable compiler found: defaulting to JDK default for compilation"
+ einfo "No suitable compiler found: defaulting to JDK default for compilation" >&2
else
# probably don't need to notify users about the default.
- :;#einfo "Defaulting to javac for compilation"
+ :;#einfo "Defaulting to javac for compilation" >&2
fi
if java-config -g GENTOO_COMPILER 2> /dev/null; then
export GENTOO_COMPILER=$(java-config -g GENTOO_COMPILER)
@@ -2254,7 +2254,7 @@ java-pkg_init-compiler_() {
export GENTOO_COMPILER=javac
fi
else
- einfo "Using ${GENTOO_COMPILER} for compilation"
+ einfo "Using ${GENTOO_COMPILER} for compilation" >&2
fi
}