Package: javahelper Version: 0.37 Severity: normal Tags: patch Hi.
jh_build fails when the classpath is too long, because jar rejects manifests with long lines. The attached patch puts every classpath element on a different line and solves this issue. Please, apply the patch ASAP, because geogebra cannot compile otherwise. Thanks, Giovanni. --- System information. --- Architecture: amd64 Kernel: Linux 3.1.0-1-amd64 Debian Release: wheezy/sid 500 unstable www.toastfreeware.priv.at 500 unstable www.debian-multimedia.org 500 unstable poisson.phc.unipi.it 500 unstable ftp.it.debian.org 500 stable security.debian.org --- Package information. --- Depends (Version) | Installed ==================================-+-=========== debhelper | 8.9.13 devscripts | 2.11.2 bsdmainutils | 8.2.3 dpkg-dev | 1.16.1.2 dctrl-tools | 2.20.1 libarchive-zip-perl (>= 1.20) | 1.30-4 Package's Recommends field is empty. Suggests (Version) | Installed =======================-+-=========== cvs | 2:1.12.13+real-6 gawk | 1:3.1.8+dfsg-0.1 tofrodos | 1.7.9.debian.1-1 -- Giovanni Mascellani <mascell...@poisson.phc.unipi.it> Pisa, Italy Web: http://poisson.phc.unipi.it/~mascellani Jabber: g.mascell...@jabber.org / giova...@elabor.homelinux.org
From 6738f7dcfea56ae3a1a318449d57095c0b180ac1 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani <g...@debian.org> Date: Tue, 27 Dec 2011 20:37:44 +0100 Subject: [PATCH] Putting classpath elements on different lines. This is necessary to avoid jar complaining about manifest having too long lines. --- debian/changelog | 7 ++++++- jh_build | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index c485899..eb97d8b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,12 +1,17 @@ javatools (0.38) UNRELEASED; urgency=low + [ Niels Thykier ] * Added missing empty line the in d/control generated by jh_makepkg * Bumped debhelper compat to 8 in packages generated by jh_makepkg * Fixed the "find" expressions in jh_repack to only remove files named "*.jar" or "*.class". Thanks to Andrew Ross for the report. (Closes: #646514) - -- Niels Thykier <ni...@thykier.net> Mon, 11 Jul 2011 15:20:40 +0200 + [ Giovanni Mascellani ] + * Putting classpath elements for the manifest in different lines, + because jar fails when manifest lines are too long. + + -- Giovanni Mascellani <g...@debian.org> Tue, 27 Dec 2011 20:35:19 +0100 javatools (0.37) unstable; urgency=low diff --git a/jh_build b/jh_build index 8fb495f..2310c22 100755 --- a/jh_build +++ b/jh_build @@ -83,7 +83,7 @@ function dobuild() touch debian/_jh_manifest.$ext if [ -n "$CLASSPATH" ]; then echo -n "Class-Path: " >> debian/_jh_manifest.$ext - echo $CLASSPATH | sed 's/:/ /g' >> debian/_jh_manifest.$ext + echo $CLASSPATH | sed 's/:/\n /g' >> debian/_jh_manifest.$ext fi if [ -n "`getarg m main`" ]; then echo "Main-Class: `getarg m main`" >> debian/_jh_manifest.$ext -- 1.7.7.3
signature.asc
Description: OpenPGP digital signature