tags 503771 +patch
thanks

While coco-java does list openjdk in it's build-dependencies it lists other options too so the class versions will depend on the build machine setup (as they will for any package that doesn't take explicit steps to choose the build jdk that matches the build-depends), the current binaries in the archive for both lenny and sid have class version 46, a build on a machine with openjdk as the default jdk (afaict openjdk currently has the highest priority for the java alternatives) results in class version 50

The attatched patch makes coco-java always build with openjdk (IIRC it is reccomended to pick a JDK and then make sure that JDK is always used to ensure package consistancy accross security updates etc) and gives javac explicit -source 1.3 and -target 1.3 arguments (I chose 1.3 because that gave the same classfile versions as the version currently in the archive but 1.4 or 1.5 should also be fine).


diff -ur coco-java-20081001/debian/control coco-java-20081001.new/debian/control
--- coco-java-20081001/debian/control	2008-10-31 19:36:29.000000000 +0000
+++ coco-java-20081001.new/debian/control	2008-10-31 19:29:32.000000000 +0000
@@ -2,7 +2,7 @@
 Section: devel
 Priority: optional
 Maintainer: Markus Loeberbauer <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 7), openjdk-6-jdk | java2-sdk, openjdk-6-jre | java2-runtime
+Build-Depends: debhelper (>= 7), openjdk-6-jdk
 Standards-Version: 3.8.0
 Homepage: http://www.ssw.uni-linz.ac.at/Research/Projects/Coco/
 
diff -ur coco-java-20081001/Makefile coco-java-20081001.new/Makefile
--- coco-java-20081001/Makefile	2008-10-31 19:36:29.000000000 +0000
+++ coco-java-20081001.new/Makefile	2008-10-31 19:34:39.000000000 +0000
@@ -1,6 +1,9 @@
+export JAVA_HOME :=/usr/lib/jvm/java-6-openjdk
+
+
 all:
-	javac -d . Trace.java Scanner.java Tab.java DFA.java ParserGen.java Parser.java Coco.java
-	jar cfm Coco.jar Coco.manifest Coco/*.class
+	$(JAVA_HOME)/bin/javac -source 1.3 -target 1.3 -d . Trace.java Scanner.java Tab.java DFA.java ParserGen.java Parser.java Coco.java
+	$(JAVA_HOME)/bin/jar cfm Coco.jar Coco.manifest Coco/*.class
 	rm -rf Coco
 
 clean:

Reply via email to