Your message dated Mon, 24 Mar 2014 03:37:48 +0000 with message-id <[email protected]> and subject line Bug#729943: fixed in javatools 0.46 has caused the Debian Bug report #729943, regarding jarwrapper: pass only 48 chars of Debian-Java-Parameters to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 729943: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729943 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: javatools Version: 0.45 Severity: important Tags: patch "jarwrapper" parses MANIFEST.MF line-by-line using `sed`. However java tools wrap manifest on 72nd character (and add space) so after parsing only 48 characters (72 - length("Debian-Java-Parameters: ")) of Debian-Java-Parameters are passed to application. In the attached MANIFEST.MF I'm trying to pass Debian-Java-Parameters: -Dlogback.configurationFile=/etc/zabbix/logback.xml -server but jarwrapper strip it to -Dlogback.configurationFile=/etc/zabbix/logback. To fix this issue we need to merge multi-line values in MANIFEST.MF using the following filter: perl -0pE 's{\r?\n\s}{}gsm' or replace incorrect use of `sed` with the following patch: ~~~~~~~~ --- jarwrapper 2013-11-19 15:12:16.833880666 +1100 +++ /usr/bin/jarwrapper 2013-11-19 15:47:39.597893120 +1100 @@ -14,10 +14,10 @@ TEMP="`mktemp -d`" (cd "$TEMP"; fastjar xf "$JAR" META-INF/MANIFEST.MF) -NEW_JAVA_HOMES="`sed -n '/^Debian-Java-Home:/s/^[^:]*: *//p' "$TEMP/META-INF/MANIFEST.MF"`" -JAVAOPTS="`sed -n '/^Debian-Java-Parameters:/s/^[^:]*: *//p' "$TEMP/META-INF/MANIFEST.MF"`" +NEW_JAVA_HOMES="$(perl -0nE 's{\r?\n\s}{}gsm; print $1 if m{^Debian-Java-Home:\s*([^\r\n]+)}m;' "$TEMP/META-INF/MANIFEST.MF")" +JAVAOPTS="$(perl -0nE 's{\r?\n\s}{}gsm; print $1 if m{^Debian-Java-Parameters:\s*([^\r\n]+)}m;' "$TEMP/META-INF/MANIFEST.MF")" rm -rf "$TEMP" for i in $NEW_JAVA_HOMES; do if [ -x "$i/bin/java" ]; then ~~~~~~~~ I tested the above patch with dos and unix line endings in "MANIFEST.MF". -- Best wishes, Dmitry Smirnov GPG key : 4096R/53968D1B --- However beautiful the strategy, you should occasionally look at the results. -- Winston ChurchillManifest-Version: 1.0 Created-By: 1.6.0_27 (Sun Microsystems Inc.) Debian-Java-Parameters: -Dlogback.configurationFile=/etc/zabbix/logback. xml -server Class-Path: /usr/share/java/json.jar /usr/share/java/logback-core.jar /u sr/share/java/logback-classic.jar /usr/share/java/slf4j-api.jar Main-Class: com.zabbix.gateway.JavaGateway
--- End Message ---
--- Begin Message ---Source: javatools Source-Version: 0.46 We believe that the bug you reported is fixed in the latest version of javatools, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Dmitry Smirnov <[email protected]> (supplier of updated javatools package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Wed, 19 Mar 2014 11:49:09 +1100 Source: javatools Binary: jarwrapper javahelper java-propose-classpath Architecture: source all Version: 0.46 Distribution: unstable Urgency: low Maintainer: Debian Java Maintainers <[email protected]> Changed-By: Dmitry Smirnov <[email protected]> Description: jarwrapper - Run executable Java .jar files java-propose-classpath - Helper script to suggest a classpath for jar files javahelper - Helper scripts for packaging Java programs Closes: 699180 729943 732860 Changes: javatools (0.46) unstable; urgency=low . * Team upload. . [ tony mancill ] * Fix archdir for arm64 and ppc64el. (Closes: #732860) - Thanks to Matthias Klose. . [ Dmitry Smirnov ] * Standards to 3.9.5. * jarwrapper: fixed manifest parsing and long lines wrapping (Closes: #729943). + added "${perl:Depends}" to jarwrapper's Depends. * javahelper: added missing "${perl:Depends}" to Depends. * javahelper: added doc-base registration (Closes: #699180) - Thanks to Wolodja Wentland for patch. Checksums-Sha1: 8533a7e2bebb863884ed41c5846b3f29e3033464 1945 javatools_0.46.dsc 1cea5a1f007d8d713faca7642bddd6558dd5f76b 49136 javatools_0.46.tar.xz 5a428118010135cfbad6f2e69b3abc2c0daac298 16412 jarwrapper_0.46_all.deb bc95a9ee899e6ddae0c0e99229f8be23ef74ce2e 83384 javahelper_0.46_all.deb 588daf3454b0d7cce15d9e43fa47eb54db26c09a 13412 java-propose-classpath_0.46_all.deb Checksums-Sha256: 9901070d2e372092895a138e7e725639b70ec436026ba5c2d39de9f0bd7b45ef 1945 javatools_0.46.dsc e23b9b1711a83a3459c64e4b73d3a88f16bc10363bade9ae187c245ecac6b88f 49136 javatools_0.46.tar.xz 40d516b91929917d792df1a5964d6fd240cef9ed22bde5b0fa8819be32f24256 16412 jarwrapper_0.46_all.deb 617d60ef9990ad1a4483465b26192f5fd4a3b3ba36215ef6d5fb74625fda1a72 83384 javahelper_0.46_all.deb da3bcd4266fed3ba3182826b0ba7fa0c129c55549b358b3a819c4d8be229636b 13412 java-propose-classpath_0.46_all.deb Files: e9b52385a56fe0a9b88e5ecb407a0d23 1945 java optional javatools_0.46.dsc 4674e9446c09c0706354160ab8e4f1d9 49136 java optional javatools_0.46.tar.xz ce0397f589d1223b3081f9ae462f61b8 16412 java optional jarwrapper_0.46_all.deb 76cd67c7c2a5c040ac6fc2991b485515 83384 java optional javahelper_0.46_all.deb 6ccb30af9fcaeb912de4051346ed08be 13412 java optional java-propose-classpath_0.46_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJTL5PLAAoJEFK2u9lTlo0bRukP/igqxZGLIgoFalGVR1w59dPQ E4fpEBv2v5sNFP5uXhGmtRtMBUtiZJreg6s1kDzRHXA0FcyBQhhSG2C0kZxbsotp sbB2hmQoN8fV2YDrX1CT38T2T3MelYLchRcbqBjWXLaZyd2vPGmJG/LrSOXA5tik O4XfDUIbrg4yuTI6EeCBl3z8ncyGld3u6FoG79+b1MpEmTyiZqsXIAmUNMfx9b5Y kVvFUryKFR0M31cC3awPizYegrYZ7utqgjqxnycQi1RRh0WUpWmNPjIs0YnDvZNA XzRhjAoPHB9DZj1rFf5/IYJ5KTZnuyCAIO+4msaVeZkuix68n8r25ETq0ryQd7zR HR6q8a+PC+f9f/40TVD+7X4dUC9uDF/JpEcKwoTp8POllXudr+jgtgk3ys25ntjy gHNeSoxIh8az/N/nmXwWPg5ob+B8TvnCNVIkwyrQWK+HlzQ7Cdc3JCnUrMYN4Fhd lFcD2q6GjK5KvAY4ydBS/dIXKNrhsyiXk/Kh708JnbWW1uVeLcEWl6o/L4ePVaS2 QO/xfgMhShU1ME9k6Kdc29m9aVglP0po6ArjlB3O1dfL7ZNaD+V52d6HsyGJ9ohl 2UKmD6KCFFbByBdW77LqcNl6iGw9XBhWDq0DRbjS8U45e3WOj17x2izQhqZU7zDs UH2nr+wGZOFClMLgXM8l =JWy+ -----END PGP SIGNATURE-----
--- End Message ---
__ This is the maintainer address of Debian's Java team <http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. Please use [email protected] for discussions and questions.

