Bug#780943: pristine-tar: cannot reproduce a tar.bz2 orig tarball
Package: pristine-tar
Version: 1.33
Severity: normal
Hi,
while working on maradns packaging, we observed (by having our package upload
rejected) that pristine-tar generates a tar.bz2 file that is slightly different
that
what was originally uploaded to pristine-tar.
Here is a relevant rejection text:
maradns_2.0.09-4.dsc: Invalid size hash for maradns_2.0.09.orig.tar.bz2:
According to the control file the size hash should be 1139409,
but maradns_2.0.09.orig.tar.bz2 has 1089174.
To reproduce please do:
(1) wget
http://ftp.de.debian.org/debian/pool/main/m/maradns/maradns_2.0.09.orig.tar.bz2
(2) git clone git://anonscm.debian.org/collab-maint/maradns.git
cd maradns
pristine-tar checkout maradns_2.0.09.orig.tar.bz2
You'll notice that the first file has 1089174 bytes, whereas the second 1139409
bytes. For all
we know, the tarballs created before were ok (3 uploads were made before). If
you uncompress these
2 files with bunzip2, you will see that both tars are identical, though.
There is a functionality proposed in https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=608406
that would catch this in theory.
This problem has been workarounded by taking the orig tarball from the archive
and building against it.
Cheers,
Tomasz
-- System Information:
Debian Release: 8.0
APT prefers testing
APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_ES.utf8, LC_CTYPE=es_ES.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages pristine-tar depends on:
ii libbz2-1.0 1.0.6-7+b2
ii libc6 2.19-15
ii perl 5.20.2-2
ii tar 1.27.1-2+b1
ii xdelta 1.1.3-9.1
ii zlib1g 1:1.2.8.dfsg-2+b1
Versions of packages pristine-tar recommends:
ii bzip2 1.0.6-7+b2
ii pbzip2 1.1.9-1
ii xz-utils 5.1.1alpha+20120614-2+b3
pristine-tar suggests no packages.
-- no debconf information
Reply to: