I managed to get the package to build in unstable using the free jikes
compiler and free libraries by applying this patch.  It is a quick
hack, and the rules file sure need more cleanup, but I thought it best
to submit it here as a start.

First a minor issue quieting the build:

diff -u commons-httpclient-2.0a1+20020904/debian/docs 
commons-httpclient-2.0a1+200
20904/debian/docs
--- commons-httpclient-2.0a1+20020904/debian/docs
+++ commons-httpclient-2.0a1+20020904/debian/docs
@@ -1 +1 @@
-README.txt
\ No newline at end of file
+README.txt

Next, are the more important parts:

diff -u commons-httpclient-2.0a1+20020904/debian/control 
commons-httpclient-2.0a1+
20020904/debian/control
--- commons-httpclient-2.0a1+20020904/debian/control
+++ commons-httpclient-2.0a1+20020904/debian/control
@@ -2,7 +2,7 @@
 Section: contrib/libs
 Priority: optional
 Maintainer: Stephen Peters <[EMAIL PROTECTED]>
-Build-Depends-Indep: debhelper (>> 3.0.0), j2sdk1.3, libcommons-logging-java, 
ant
+Build-Depends-Indep: debhelper (>> 3.0.0), jikes, kaffe, 
libcommons-logging-java,
 ant
 Standards-Version: 3.5.2

 Package: libcommons-httpclient-java
diff -u commons-httpclient-2.0a1+20020904/debian/rules 
commons-httpclient-2.0a1+20
020904/debian/rules
--- commons-httpclient-2.0a1+20020904/debian/rules
+++ commons-httpclient-2.0a1+20020904/debian/rules
@@ -15,9 +15,9 @@

 # for Blackdown JDK (you shuld add j2sdk1.3 at Build-Depends)
 # And package should go to contrib section even if it's own license is free.
-export JAVA_HOME=/usr/lib/j2sdk1.3
+#export JAVA_HOME=/usr/lib/j2sdk1.3
 export CLASSPATH=.:${JAVA_HOME}/lib/tools.jar:${JAVA_HOME}/jre/lib/rt.jar
-export JAVAC=${JAVA_HOME}/bin/javac
+export JAVAC=jikes

 # for Kaffe
 # remove following comments when you use kaffe
@@ -30,7 +30,7 @@
        # OK, we need the JSSE for this to compile.  But we can't
        # redistribute JSSE, and can't require it for the build.  So
        # this is a workaround, creating stub classes for this compilation.
-       (cd debian/ssl-stub; ant)
+       (cd debian/ssl-stub; ant -Dbuild.compiler=jikes)

 build: build-stamp
 build-stamp: debian/ssl-stub/ssl-stub.jar
@@ -38,7 +38,7 @@

        # Normally we could do just 'ant dist', but this subproject
        # doesn't build all by itself.
-       ant -Djsse.jar=debian/ssl-stub/ssl-stub.jar compile doc
+       ant -Dbuild.compiler=jikes -Djsse.jar=debian/ssl-stub/ssl-stub.jar 
compile
 doc

        touch build-stamp

@@ -58,7 +58,7 @@
        dh_installdirs

        # Add here commands to install the package into 
debian/commons-httpclient.
-       ${JAVA_HOME}/bin/jar cf \
+       jar cf \
                $(CURDIR)/debian/lib${PNAME}-java/usr/share/java/${JARFILE} \
                -C target/classes org



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to