Package: pristine-tar
Version: 1.45
Severity: normal

Dear Maintainers,

pristine-xz can't reproduce this tarball:

https://mirrors.edge.kernel.org/pub/software/network/iw/iw-4.14.tar.xz

Decompressing and recompressing it with `xz` produces a file of the
exact size but with a different hash:

-rw-r--r-- 1 pl pl 114096 Jan  4  2018 iw-4.14.tar.xz

sha1sum: 335898be067d0083c5aaadde7db8ba2371050fcd  iw-4.14.tar.xz
After compressing/decompressing with `xz` (or `xz -6`):

-rw-r--r-- 1 pl pl 114096 Jan  4  2018 iw-4.14.tar.xz
sha1sum: 6c739a26aaa5d94ea68a55f348c7f648e158c6b5  iw-4.14.tar.xz

Bug #869191 suggests that the kernel.org people use `pixz -9 -p6 -t` to
generate their xz-balls, and indeed it works even in this case:
compressing iw-4.14.tar with `pixz -9 -p6 -t` produces a file that
exactly matches upstream's. #869191 suggests that `xz -T6` is able to
reproduce the output of `pixz -9 -p6 -t`, this has been reported to work
in a few cases and the workaround implemented in pristine-xz.

Unfortunately this is not the case with iw-4.14.tar.xz: `xz -T6`
produces a different file from `pixz -9 -p6 -t`, they even differ in
size. I tried a few combinations of options and compressions levels with
no luck.

The solution proposed in #869191 is not general and this somehow limits
the usability of pristine-xz. 

Paride

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pristine-tar depends on:
ii  libbz2-1.0  1.0.6-9
ii  libc6       2.27-8
ii  perl        5.28.0-3
ii  tar         1.30+dfsg-2
ii  xdelta      1.1.3-9.2
ii  xdelta3     3.0.11-dfsg-1+b1
ii  zlib1g      1:1.2.11.dfsg-1

Versions of packages pristine-tar recommends:
ii  bzip2     1.0.6-9
ii  pbzip2    1.1.9-1+b1
ii  xz-utils  5.2.2-1.3

pristine-tar suggests no packages.

-- no debconf information

Reply via email to