Source: nvidia-settings Version: 340.46-2 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps username hostname
Hi! While working on the “reproducible builds” effort [1], we have noticed that nvidia-settings could not be built reproducibly. The attached patch redefines DATE, WHOAMI, and HOSTNAME_CMD in debian/rules to stable values. Once applied, nvidia-settings can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds -- Lunar .''`. [email protected] : :Ⓐ : # apt-get install anarchism `. `'` `-
diff -Nru nvidia-settings-340.46/debian/rules nvidia-settings-340.46/debian/rules --- nvidia-settings-340.46/debian/rules 2014-09-08 11:26:06.000000000 +0000 +++ nvidia-settings-340.46/debian/rules 2015-05-23 18:57:40.000000000 +0000 @@ -28,6 +28,12 @@ AUTOKEEP = debian/watch AUTOCLEAN = $(filter-out $(AUTOKEEP),$(AUTOGEN)) +# Redefine DATE to something stable to make the build reproducible +DATE = date -u --date='$(shell dpkg-parsechangelog -S Date)' +# Cheat for user and hostname +WHOAMI = echo user +HOSTNAME_CMD = echo debian +export DATE WHOAMI HOSTNAME_CMD %: dh $@
signature.asc
Description: Digital signature

