Package: dpkg-dev Severity: wishlist User: reproducible-bui...@lists.alioth.debian.org Usertags: toolchain, timestamps
Some build systems [1] embed the time stamp of source files into the binary package. For the benefit of reproducible builds [2], it would be nice if these time stamps would not reflect the current time on the build system where possible. Currently, dpkg-source will set the time stamp of a patched file to the current time when unpacking. This is documented behaviour for the 1.0 source format: The timestamp of all patched files is reset to the extraction time of the source package (this avoids timestamp skews leading to problems when autogenerated files are patched). but I don't see such guarantees for the case of 3.0 (quilt) packages. For (at least) those, would it make sense to set the time stamp of the patched file to the latest time stamp in debian/changelog (probably excluding binNMUs, but those aren't in debian/changelog nowadays anyway) ? (An obvious alternative to this is the time stamp of the patch file itself in debian/patches, but that has the disadvantage that the patch file may often be older than the current upstream version if an old patch applied fine without any modifications.) I can see that this could cause timestamp skew in packages if the Debian packaging is older than files in the upstream tarball. This seems like it's always a (minor) bug in the package, and dpkg-source could probably notice that it's "rewinding" the time stamp backward and fall back to using the current time instead. I seem to recall a related discussion somewhere, but I can't find it. Feel free to close this bug if the idea is obviously bad somehow. [1] at least Perl ones, where pod2man generates a date header in manual pages. I intend to make this date overridable somehow, probably with an environment variable, but changing dpkg-source would be a more general fix [2] https://wiki.debian.org/ReproducibleBuilds Thanks for your work & greetings from DebConf14, -- Niko Tyni nt...@debian.org -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org