Package: libarchive-zip-perl / 1.39-1

Metadata

Package Version Patches format
libarchive-zip-perl 1.39-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
fix_example_shebangs.patch | (download)

examples/calcSizes.pl | 1 1 + 0 - 0 !
examples/copy.pl | 1 1 + 0 - 0 !
examples/extract.pl | 2 1 + 1 - 0 !
examples/mfh.pl | 1 1 + 0 - 0 !
examples/selfex.pl | 4 2 + 2 - 0 !
examples/unzipAll.pl | 2 1 + 1 - 0 !
examples/updateTree.pl | 1 1 + 0 - 0 !
examples/updateZip.pl | 1 1 + 0 - 0 !
examples/zip.pl | 2 1 + 1 - 0 !
examples/zipcheck.pl | 2 1 + 1 - 0 !
examples/zipinfo.pl | 2 1 + 1 - 0 !
examples/ziptest.pl | 2 1 + 1 - 0 !
12 files changed, 13 insertions(+), 8 deletions(-)

 the module provides several example scripts written in perl
 that have missing or incorrect shebang lines. This patch adds or changes
 shebangs to #!/usr/bin/perl in order to comply with Debian Policy.
Bug-Debian: http://bugs.debian.org/543659
0002 TODO test for rt.cpan.org 73797 deflated empty file .patch | (download)

t/17_bug_73797.t | 26 26 + 0 - 0 !
1 file changed, 26 insertions(+)

 [patch 2/3] todo test for [rt.cpan.org #73797]: deflated empty file
 / directory gets corrupted

When reading a zip with a deflated empty file / directory and then
writing it out, the output gets corrupted. 'unzip -t' outputs:

Archive:  testout.zip
META-INF/:  ucsize 0 <> csize 2 for STORED entry
         continuing with "compressed" size value
    testing: META-INF/                bad CRC 1a6cd7b3  (should be 00000000)

Add a TODO test for this. The test file was created with 'jar'
from OpenJDK 6:

 mkdir empty && /usr/lib/jvm/java-6-openjdk/bin/jar c empty/ > empty.jar

0003 Fix for rt.cpan.org 73797 deflated empty file direct.patch | (download)

lib/Archive/Zip/Member.pm | 2 1 + 1 - 0 !
t/17_bug_73797.t | 3 0 + 3 - 0 !
2 files changed, 1 insertion(+), 4 deletions(-)

 [patch 3/3] fix for [rt.cpan.org #73797]: deflated empty file /
 directory gets corrupted

The output header needs to be refreshed also in the case where
uncompressed size is 0 but the compressed size is > 0 (deflation
of an empty file.)