Bug#232632: libgnucrypto-java: FTBFS: Java exception in jar
Daniel Schepler
Daniel Schepler <schepler@math.berkeley.edu>, 232632@bugs.debian.org
Tue Feb 17 14:23:05 2004
--=-=-=
tags 232632 + patch
thanks
Arnaud Vandyck <avdyk@debian.org> writes:
> Strange, I did put this line in debian/rules:
> export JAR=/usr/bin/fastjar
>
> So I thought fastjar would be used!? Did you change something in the
> debian/rules?
I found the problem: jce/Makefile is hardcoded to use jar instead of
$(JAR). I'm attaching a patch which fixes that. With it pbuilder no
longer has any problems building the package.
--
Daniel Schepler "Please don't disillusion me. I
schepler@math.berkeley.edu haven't had breakfast yet."
-- Orson Scott Card
--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=libgnucrypto-java.diff
Content-Description: libgnucrypto-java patch
diff -urN libgnucrypto-java-1.1.0.99cvs20031116.old/debian/rules libgnucrypto-java-1.1.0.99cvs20031116/debian/rules
--- libgnucrypto-java-1.1.0.99cvs20031116.old/debian/rules 2004-02-17 05:02:38.587799888 -0800
+++ libgnucrypto-java-1.1.0.99cvs20031116/debian/rules 2004-02-17 04:57:32.168765183 -0800
@@ -49,7 +49,7 @@
dh_testroot
rm -f build-stamp configure-stamp config.log config.status
- -$(MAKE) clean
+ -$(MAKE) distclean
dh_clean
diff -urN libgnucrypto-java-1.1.0.99cvs20031116.old/jce/Makefile.am libgnucrypto-java-1.1.0.99cvs20031116/jce/Makefile.am
--- libgnucrypto-java-1.1.0.99cvs20031116.old/jce/Makefile.am 2003-09-29 13:17:14.000000000 -0700
+++ libgnucrypto-java-1.1.0.99cvs20031116/jce/Makefile.am 2004-02-17 04:57:58.619797726 -0800
@@ -159,7 +159,7 @@
CLASSPATH=$(CLASSPATH) $(JAVAC) $(JAVACFLAGS) $<
$(main_jar): $(main_classes)
- @ jar cf $@ -C . javax/crypto/*.class javax/crypto/interfaces/*.class \
+ @ $(JAR) cf $@ -C . javax/crypto/*.class javax/crypto/interfaces/*.class \
javax/crypto/spec/*.class org/bouncycastle/asn1/*.class \
org/bouncycastle/asn1/pkcs/*.class org/bouncycastle/asn1/x509/*.class
diff -urN libgnucrypto-java-1.1.0.99cvs20031116.old/jce/Makefile.in libgnucrypto-java-1.1.0.99cvs20031116/jce/Makefile.in
--- libgnucrypto-java-1.1.0.99cvs20031116.old/jce/Makefile.in 2003-09-30 16:20:00.000000000 -0700
+++ libgnucrypto-java-1.1.0.99cvs20031116/jce/Makefile.in 2004-02-17 04:58:13.151877688 -0800
@@ -445,7 +445,7 @@
CLASSPATH=$(CLASSPATH) $(JAVAC) $(JAVACFLAGS) $<
$(main_jar): $(main_classes)
- @ jar cf $@ -C . javax/crypto/*.class javax/crypto/interfaces/*.class \
+ @ $(JAR) cf $@ -C . javax/crypto/*.class javax/crypto/interfaces/*.class \
javax/crypto/spec/*.class org/bouncycastle/asn1/*.class \
org/bouncycastle/asn1/pkcs/*.class org/bouncycastle/asn1/x509/*.class
--=-=-=--