Debian applies a patch that adds an "--rsyncable" option to gzip. This patch isn't upstream (as of gzip-1.4) and it is unclear when/if it'll be. This option is just an optimisation, and as such it is not really needed (see http://beeznest.wordpress.com/2005/02/03/rsyncable-gzip/ or http://smackerelofopinion.blogspot.ie/2009/07/rsyncable-gzip.html). So I suggest to patch the option out of dpkg (as opposed to patching the option into gzip, as asked by bug #347638). A one-liner patch to a rarely-used debian program is propably better than a complicated patch to a core gentoo package. Reproducible: Always Steps to Reproduce: 1. try to build a debian package using "dpkg-buildpackage -us -uc -d" Actual Results: dpkg-source: info: building foobar in foobar_1.0-1.tar.gz gzip: unrecognized option '--rsyncable' Try `gzip --help' for more information. dpkg-source: error: tar -cf - died from signal 13 dpkg-buildpackage: error: dpkg-source -b foobar-1.0 gave error exit status 29 make: *** [package_debian] Error 29 Expected Results: dpkg-source: info: building foobar in foobar_1.0-1.tar.gz dpkg-source: info: building foobar in foobar_1.0-1.dsc (...)
Created attachment 315087 [details, diff] remove use of --rsyncable option
Which version of app-arch/dpkg does this affect? @base-system: What are your plans on bug 347638?
i have no plans on re-adding the patch currently. almost no one has requested it, and it's been over 5 years since Gentoo supported it ...
Fixed in 1.16.4.2-r1.
It's been present for a good while, so applying the patch now to 1.16.2 isn't going to achieve much. commit eadd7d2376ef54b30cce26b336092c85ca406b3b Author: Raphaël Hertzog <hertzog@debian.org> Date: Sun Jul 25 17:12:50 2010 +0200 Dpkg::Compression: add --no-name and --rsyncable options to the gzip call Pass --no-name option to gzip to avoid encoding the timestamp in the file so that the result is more predictable. Also pass --rsyncable to make source packages more rsync friendly.