[pkg-java] r13477 - in branches/groovy/1.8/debian: . patches
Miguel Landaeta
nomadium-guest at alioth.debian.org
Wed Mar 30 03:59:17 UTC 2011
Author: nomadium-guest
Date: 2011-03-30 03:59:14 +0000 (Wed, 30 Mar 2011)
New Revision: 13477
Modified:
branches/groovy/1.8/debian/changelog
branches/groovy/1.8/debian/control
branches/groovy/1.8/debian/patches/0001-start-scripts.patch
Log:
* Use the location of java command instead of javac one to determine JAVA_HOME.
* Replace optional dependency of java5-runtime-headless with
sun-java6-jre since is not true that groovy will work with any Java 5
runtime available in Debian.
Modified: branches/groovy/1.8/debian/changelog
===================================================================
--- branches/groovy/1.8/debian/changelog 2011-03-30 03:50:47 UTC (rev 13476)
+++ branches/groovy/1.8/debian/changelog 2011-03-30 03:59:14 UTC (rev 13477)
@@ -1,8 +1,13 @@
groovy (1.8.0~rc3-1) UNRELEASED; urgency=low
* New upstream release.
+ * Use the location of java command instead of javac one to determine
+ JAVA_HOME.
+ * Replace optional dependency of java5-runtime-headless with
+ sun-java6-jre since is not true that groovy will work with any Java 5
+ runtime available in Debian.
- -- Miguel Landaeta <miguel at miguel.cc> Wed, 23 Mar 2011 19:53:46 -0430
+ -- Miguel Landaeta <miguel at miguel.cc> Wed, 23 Mar 2011 20:37:55 -0430
groovy (1.8.0~rc2-1) experimental; urgency=low
Modified: branches/groovy/1.8/debian/control
===================================================================
--- branches/groovy/1.8/debian/control 2011-03-30 03:50:47 UTC (rev 13476)
+++ branches/groovy/1.8/debian/control 2011-03-30 03:59:14 UTC (rev 13477)
@@ -20,8 +20,7 @@
libcommons-cli-java (>= 1.0),
libcommons-logging-java (>= 1.0.3), junit4, libmockobjects-java (>=
0.09), libregexp-java (>= 1.2), libservlet2.5-java, libjline-java,
- libxstream-java, ivy, libjansi-java,
- default-jre-headless | java5-runtime-headless
+ libxstream-java, ivy, libjansi-java, default-jre-headless | sun-java6-jre
Suggests: groovy-doc, ant (>= 1.7.1)
Description: Agile dynamic language for the Java Virtual Machine
Groovy is an agile dynamic language for the JVM combining lots of great
Modified: branches/groovy/1.8/debian/patches/0001-start-scripts.patch
===================================================================
--- branches/groovy/1.8/debian/patches/0001-start-scripts.patch 2011-03-30 03:50:47 UTC (rev 13476)
+++ branches/groovy/1.8/debian/patches/0001-start-scripts.patch 2011-03-30 03:59:14 UTC (rev 13477)
@@ -1,20 +1,22 @@
From: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
-Date: Sun, 08 Aug 2010 19:54:15 -0430
+Date: Tue, 29 Mar 2011 19:50:41 -0430
Subject: [PATCH] start-scripts
---- groovy-1.7.4.orig/src/bin/startGroovy
-+++ groovy-1.7.4/src/bin/startGroovy
-@@ -65,6 +65,8 @@ if [ "$1" = "-cp" -o "$1" = "-classpath"
- shift 2
- fi
+--- groovy-1.7.10.orig/src/bin/startGroovy
++++ groovy-1.7.10/src/bin/startGroovy
+@@ -71,8 +71,8 @@ if [ -z "$JAVA_HOME" ] ; then
+ [ -z "$JAVA_HOME" -a -d "/Library/Java/Home" ] && export JAVA_HOME="/Library/Java/Home"
+ [ -z "$JAVA_HOME" -a -d "/System/Library/Frameworks/JavaVM.framework/Home" ] && export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"
+ else
+- javaExecutable="`which javac`"
+- [ -z "$javaExecutable" -o "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ] && die "JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME."
++ javaExecutable="`which java`"
++ [ -z "$javaExecutable" -o "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ] && die "JAVA_HOME not set and cannot find java to deduce location, please set JAVA_HOME."
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=`which readlink`
+ [ `expr "$readLink" : '\([^ ]*\)'` = "no" ] && die "JAVA_HOME not set and readlink not available, please set JAVA_HOME."
+@@ -105,27 +105,12 @@ fi
-+export JAVA_HOME="${JAVA_HOME:-/usr/lib/jvm/default-java}"
-+
- # Attempt to set JAVA_HOME if it's not already set.
- if [ -z "$JAVA_HOME" ] ; then
- if $darwin ; then
-@@ -105,27 +107,12 @@ fi
-
# Attempt to set GROOVY_HOME if it is not already set.
if [ -z "$GROOVY_HOME" -o ! -d "$GROOVY_HOME" ] ; then
- # Resolve links: $0 may be a link to groovy's home.
More information about the pkg-java-commits
mailing list