Package: flute
Version: 1:1.1.6-2
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu precise ubuntu-patch

Dear Maintainer,

In Ubuntu, flute was FTBFS, and I've been looking into it.  Flute would build 
locally,
but not in a pbuilder instance.

https://launchpadlibrarian.net/85013254/buildlog_ubuntu-precise-i386.flute_1%3A1.1.6-2_FAILEDTOBUILD.txt.gz

The problem was that it was not finding sac.jar in the classpath.

If I set includeantruntime="false" on the <javac> of the compile target, I
could also reproduce locally.  Seems that the ant run time was providing the
classpaths necessary to find sac.jar, but it wasn't for some reason in a chroot.

Since includeantruntime="false" is the recommended way to achieve reliable
builds, it seems like a genuine bug that the build fails with it even though 
Debian doesn't seem to be hitting this issue.

Looking further, I discovered that if I used ivy to resolve the dependencies,
it would work because ivy would put sac.jar in ./lib (which is the default
${lib.dir} value).

So I tried the attached patch to define lib.dir manually to /usr/share/java
and that worked.

Thanks for considering the patch, which would let us get back in sync.


-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 
'precise')
Architecture: i386 (i686)

Kernel: Linux 3.1.0-2-generic-pae (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru flute-1.1.6/debian/rules flute-1.1.6/debian/rules
--- flute-1.1.6/debian/rules	2011-11-01 10:38:42.000000000 -0400
+++ flute-1.1.6/debian/rules	2011-11-14 11:17:16.000000000 -0500
@@ -10,7 +10,7 @@
 
 override_dh_auto_build:
 	cd source/org/w3c/flute/parser && javacc Parser.jj
-	ant -Dantcontrib.build.cache.dir=/usr/share/java compile jar javadoc
+	ant -Dantcontrib.build.cache.dir=/usr/share/java -Dlib.dir=/usr/share/java compile jar javadoc
 
 override_dh_auto_clean:
 	for i in TokenMgrError.java Token.java CharStream.java \
__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to