On Mon, Mar 5, 2012 at 4:20 PM, Joey Hess <jo...@debian.org> wrote: > Andreas Henriksson wrote: >> I've not found any particular options used, but they might be hiding in >> the details in any of the wrapping layers. > > Seems it must be down to the options. It's not unheard of for language > bindings to compressors to faff around with overriding some of the > default options. We had a similar problem with perl's gzip library, > which set a memLevel zlib parameter to a nonstandard value.
Hi there, I got annoyed by this one today, dug into the python library, and found the difference. Command-line xz defaults to crc64, python defaults to crc32. The attached patch works for me running pristine-xz on a variety of downloaded gnome tar.xz files. I just added crc32 for each compression level so it doubles the total number of checks you run through in the worst case, but "-6 --check=crc32" is the right one for these python-generated tarballs and it's only the second one tested. Optimize as desired. -- mike
pristine-tar-xz-crc32.patch
Description: Binary data