Bug#634089: jh_manifest causes CRC error

tony mancill tmancill at debian.org
Fri Jan 6 21:26:08 UTC 2012

Thank you for in-depth look into this bug.  Niels or Matthew, any
concerns with me preparing an upload?


On 01/05/2012 08:14 PM, Wookey wrote:
> This seems to me to be a serious problem blocking all
> java-helper-using packages
> So, I took a look at what's going on and found the following:


> We can fix it by explicitly removing and recreating it:
>         verbose_print("Updating manifest in $jar");
>         $zip->removeMember( 'META-INF/MANIFEST.MF' ) unless($new_manifest);
>         $zip->removeMember( 'META-INF/' );
>         $mem = $zip->addString($var, 'META-INF/MANIFEST.MF');
>         $mem->desiredCompressionMethod(COMPRESSION_DEFLATED);
>         $zip->addDirectory( 'META-INF/' );
>         # This on the other hand may fail.
>         $zip->overwrite() == AZ_OK or error("Writing modified jar ($jar) failed$
> which I hope is an acceptable fix. Patch attached.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20120106/746aea54/attachment-0001.pgp>

More information about the pkg-java-maintainers mailing list