summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2006-12-31 01:39:38 +0000
committerVlastimil Babka <caster@gentoo.org>2006-12-31 01:39:38 +0000
commit69a82896fd42be2a0717c9f966e5fad970c9b75c (patch)
tree0ddd9acd42a9478fe11070fd620afa36540a1778 /eclass
parentAdd ~alpha keyword, bug 156584. (diff)
downloadgentoo-2-69a82896fd42be2a0717c9f966e5fad970c9b75c.tar.gz
gentoo-2-69a82896fd42be2a0717c9f966e5fad970c9b75c.tar.bz2
gentoo-2-69a82896fd42be2a0717c9f966e5fad970c9b75c.zip
Removed bogus sanity checks from java-pkg_get-target() wrt bug #158094.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-utils-2.eclass19
1 files changed, 2 insertions, 17 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index a1f3425b8eba..bb57f977bc8a 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.36 2006/12/20 22:45:18 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.37 2006/12/31 01:39:38 caster Exp $
# -----------------------------------------------------------------------------
@@ -1186,26 +1186,11 @@ java-pkg_get-source() {
# Determines what target version should be used, for passing to -target.
# If you don't care about lower versions, you can set _WANT_TARGET to the
# version of your JDK.
-# Remember doing this will mostly like cause things to break.
-# Doesn't allow it to be lower then the one in depend.
-# Doesn't allow it to be higher then the active vm.
#
# @return string - Either the lowest possible target, or JAVA_PKG_WANT_TARGET
# ------------------------------------------------------------------------------
java-pkg_get-target() {
- local min=$(depend-java-query --get-lowest "${DEPEND} ${RDEPEND}")
- if [[ -n "${JAVA_PKG_WANT_TARGET}" ]]; then
- local max="$(java-config --select-vm "${GENTOO_VM}" -g PROVIDES_VERSION)"
- if version_is_at_least "${min}" "${JAVA_PKG_WANT_TARGET}" && version_is_at_least "${JAVA_PKG_WANT_TARGET}" "${max}"; then
- echo ${JAVA_PKG_WANT_TARGET}
- else
- echo ${min}
- fi
- else
- echo ${min}
- fi
-
- #echo ${JAVA_PKG_WANT_TARGET:-$(depend-java-query --get-lowest "${DEPEND}")}
+ echo ${JAVA_PKG_WANT_TARGET:-$(depend-java-query --get-lowest "${DEPEND} ${RDEPEND}")}
}
java-pkg_get-javac() {