Bug#868129: dh-strip-nondeterminism: Fails with -X flag

Ole Streicher olebole at debian.org
Wed Jul 12 09:27:22 UTC 2017

Package: dh-strip-nondeterminism
Version: 0.037-1
Severity: serious
Affects: src:python-astropy

The python-astropy package contains (for testing purposes) an invalid.dat.gz file that lets dh_strip_nondeterminism fail (#779627).

Therefore I had to overwrite it in d/rules:

	dh_strip_nondeterminism -Xinvalid.dat.gz

which worked until today. Now, I get the following error:

   debian/rules override_dh_strip_nondeterminism
make[1]: Entering directory '/build/python-astropy-2.0'
debian/rules:34: warning: overriding recipe for target 'override_dh_auto_build'
debian/rules:25: warning: ignoring old recipe for target 'override_dh_auto_build'
dh_strip_nondeterminism -Xinvalid.dat.gz
dh_strip_nondeterminism: debian/python-astropy/usr/lib/python2.7/dist-packages/astropy/samp/data/astropy_icon.png: Undefined subroutine &Archive::Zip::computeCRC32 called at /usr/share/perl5/File/StripNondeterminism/handlers/png.pm line 33.

debian/rules:65: recipe for target 'override_dh_strip_nondeterminism' failed
make[1]: *** [override_dh_strip_nondeterminism] Error 255
make[1]: Leaving directory '/build/python-astropy-2.0'
debian/rules:17: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
I: copying local configuration
E: Failed autobuilding of package

I would also take the opportunity and repeat my opinion that dh_strip_nondeterminism should not fail on invalid files. Files with an invalid format are in no means wrong in a Debian package; they are just a bit unusual (and could be f.e. mentioned by lintian, which can be overwritten), but a random packaging helper tool should be able to deal with them without further efforts. dh_strip_nondeterminism is IMO not the right tool to check for invalid zip files.

More information about the Reproducible-builds mailing list