tag 400894 + patch thanks * Lex Spoon wrote: > The problem is related to bug 397045. The package depends on > "ant" and on "gcj" in order to try and get a setup for compiling > Java code using ant. I am not sure what the dependencies should > be changed to. > > I will leave it alone for now, in the hopes that the ant and/or gcj > maintainers make this combination of dependencies sufficient....
I have been looking at this bug as part of T&S (New Maintainer process) and
have attached a patch that should fix the build failure.
The change that fixes the primary build-failure is to set scala.home in
build.xml to /usr/share and scala.lib.dir to ${scala.home}/java.
Alternatively scala.lib.dir could be set to /usr/share/java directly. That
enables the build to correctly find the scala-{compiler,library}.jar files.
However, building in clean sid chroot also revealed some subsequent build
failures: libservlet2.3-java doesn't provide the servlet-api.jar, only
libservlet2.4-java does. In order to generate the PDF documentation, sbaz
needs build-dependencies on tetex-bin | texdoctk (for pdflatex) and
tetex-extra for (times.sty).
Using the NMU diff below makes sbaz build fine in a clean sid chroot.
Cheers,
Thierry
diff -u sbaz-1.18/debian/changelog sbaz-1.18/debian/changelog
--- sbaz-1.18/debian/changelog
+++ sbaz-1.18/debian/changelog
@@ -1,3 +1,19 @@
+sbaz (1.18-1.1) unstable; urgency=high
+
+ * Non-maintainer upload: (Closes: #400894)
+ + Add build-dependency on java-gcj-compat-dev.
+ + Set scala.home in build.xml to /usr/share and scala.lib.dir to
+ ${scala.home}/java, which is where scala and scala-library install the
+ required JAR files.
+ + Build-depend on libservlet2.4-java instead of libservlet2.3-java.
+ + Add build-dependency on tetex-bin | texdoctk which provide pdflatex
+ needed to build PDF documentation.
+ + Build-depend on tetex-extra which provides fonts needed to build the PDF
+ documentation.
+ * Urgency set to high because it fixes an RC bug.
+
+ -- Thierry Reding <[EMAIL PROTECTED]> Fri, 19 Jan 2007 09:58:40 +0100
+
sbaz (1.18-1) unstable; urgency=low
* New upstream release.
diff -u sbaz-1.18/build.xml sbaz-1.18/build.xml
--- sbaz-1.18/build.xml
+++ sbaz-1.18/build.xml
@@ -2,9 +2,9 @@
<project name="sbaz" default="build">
<!-- Set the following to your local sbaz-managed directory -->
- <property name="scala.home" value="${user.home}/sbaz"/>
+ <property name="scala.home" value="/usr/share"/>
- <property name="scala.lib.dir" value="${scala.home}/lib"/>
+ <property name="scala.lib.dir" value="${scala.home}/java"/>
<property name="junit.jar" value="${scala.lib.dir}/junit.jar"/>
<property name="servlet-api.jar" value="${scala.lib.dir}/servlet-api.jar"/>
<property name="scala.comp.jar" value="${scala.lib.dir}/scala-compiler.jar"/>
only in patch2:
unchanged:
--- sbaz-1.18.orig/debian/control
+++ sbaz-1.18/debian/control
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Lex Spoon <[EMAIL PROTECTED]>
Standards-Version: 3.7.2
-Build-Depends: scala, ant, libservlet2.3-java, junit, debhelper (>= 5)
+Build-Depends: scala, ant, libservlet2.4-java, junit, debhelper (>= 5), java-gcj-compat-dev, tetex-bin | texdoctk, tetex-extra
Package: sbaz
Architecture: all
signature.asc
Description: Digital signature

