[rfc][icedtea-web] Java 7 bump
Omair Majid
omajid at redhat.com
Mon Apr 7 21:39:22 UTC 2014
* Andrew Azores <aazores at redhat.com> [2014-04-07 17:24]:
> Here's my attempt at getting the build system properly checking for
> and working with Java 7.
Previously, a 6 was the a minimal version, but icedtea-web would
build/work with 7 too. The mirror of that would be requiring 7 but also
working with 8. But I don't think this patch works with just 8. Am I
mistaken?
> Note that (1) almost all of what I know about autotools was learned
> today
This is amazing stuff!
> - for dir in /usr/lib/jvm/java-openjdk /usr/lib/jvm/icedtea6 \
> - /usr/lib/jvm/java-6-openjdk /usr/lib/jvm/openjdk \
> - /usr/lib/jvm/java-icedtea /usr/lib/jvm/java-gcj /usr/lib/jvm/gcj-jdk \
> - /usr/lib/jvm/cacao ; do
> + for dir in /etc/alternatives/java_sdk \
> + /usr/lib/jvm/java-openjdk \
> + /usr/lib/jvm/java-1.7.0-openjdk \
> + /usr/lib/jvm/openjdk \
> + /usr/lib/jvm/java-icedtea \
> + /usr/lib/jvm/cacao ; do
Wouldn't it make sense to add '/usr/lib/jvm/icedtea7' and
'/usr/lib/jvm/java-7-openjdk' to the paths too? Or have those
distributions changed the paths?
I can't make up my mind whether we should try the well-known 7 or 8
locations. The default location may be 6, but it may also be the 7 or 8
VM the user wants to use.
> AC_PATH_PROG(JAVA, "gij")
Does 'gij' work? That's a 1.5 VM, right? Maybe this needs more cruft
removed.
> - AC_MSG_ERROR("A 1.5-compatible Java VM is required.")
> + AC_MSG_ERROR("A 1.7-compatible Java VM is required.")
1.7 or newer, right?
> JAVA_VERSION=`$JAVA -version 2>&1 | sed -n '1s/@<:@^"@:>@*"\(.*\)"$/\1/p'`
> + AC_MSG_RESULT($JAVA_VERSION)
> HAVE_JAVA7=`echo $JAVA_VERSION | awk '{if ($(0) >= 1.7) print "yes"}'`
> - if ! test -z "$HAVE_JAVA7" ; then
> - VERSION_DEFS='-DHAVE_JAVA7'
> + HAVE_JAVA8=`echo $JAVA_VERSION | awk '{if ($(0) >= 1.8) print "yes"}'`
> + if test -z "$HAVE_JAVA7"; then
This test is for just 7. I take it you meant to test 8 here too?
Thanks,
Omair
--
PGP Key: 66484681 (http://pgp.mit.edu/)
Fingerprint = F072 555B 0A17 3957 4E95 0056 F286 F14F 6648 4681
More information about the distro-pkg-dev
mailing list