Bug#301267: FIX: libant1.6-java: FTBFS: Jikes could not find package "java.lang"
Grzegorz B. Prokopski
"Grzegorz B. Prokopski" <gadek@debian.org>, 301267@bugs.debian.org
Fri Mar 25 15:09:11 2005
--=-Tw1gzr7SA6Uhzgzb35pZ
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
tags 301267 patch
thanks
Since a few months SableVM's class library is compressed, so the
/usr/share/sablevm/sablevm-classpath does not contain it. The
preferred interface for finding the boot class path has always
been `cat /usr/share/sablevm/classlib.pth`, while the rules
had the path hardcoded.
In any case, the upstream now includes a stable path:
/usr/lib/sablevm/jre/lib/rt.jar for the boot class library,
so the attached patch modifies the debian/rules to use it.
This resolves one problem, but I am getting:
build:
Created dir: /tmp/libant1.6-java-1.6.2/build/lib
Compiling 218 source files to /tmp/libant1.6-java-1.6.2/build/classes
Error: "-source" only recognizes Java releases 1.3 (JLS 2 features), 1.4
(assert statement), and 1.5 (partial support beta, see NEWS for
supported features).
use: jikes [options] [@files] file.java...
For more help, try -help or -version.
BUILD FAILED
/tmp/libant1.6-java-1.6.2/build.xml:1063: The following error occurred
while executing this line:
/tmp/libant1.6-java-1.6.2/build.xml:631: Compile failed; see the
compiler error output for details.
I have not figured out why jikes does not like the -source parameter.
I am looking into that.
Thanks & cheers,
Grzegorz B. Prokopski
--
Grzegorz B. Prokopski <gadek@sablevm.org>
SableVM - Free, LGPL'ed Java VM http://sablevm.org
Why SableVM ?!? http://sablevm.org/wiki/Features
Debian GNU/Linux - the Free OS http://www.debian.org
--=-Tw1gzr7SA6Uhzgzb35pZ
Content-Disposition: attachment; filename=rules.diff
Content-Type: text/x-patch; name=rules.diff; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
--- ./orig/rules 2005-03-25 09:44:51.000000000 -0500
+++ ./new/rules 2005-03-25 09:38:15.000000000 -0500
@@ -9,7 +9,7 @@
# Java compiler for bootstrap.sh and the Ant javac task
export JAVAC=/usr/bin/jikes
-export BOOTJAVAC_OPTS=-bootclasspath /usr/share/sablevm/sablevm-classpath:/usr/share/java/jaxp-1.2.jar -target 1.2
+export BOOTJAVAC_OPTS=-bootclasspath /usr/lib/sablevm/jre/lib/rt.jar:/usr/share/java/jaxp-1.2.jar -target 1.2
# The Xerces-J classes are added by a symlink in lib/
export CLASSPATH=/usr/share/java/junit.jar
--=-Tw1gzr7SA6Uhzgzb35pZ--