Source: nvidia-settings
Version: 340.46-2
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
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                                .''`. 
lu...@debian.org                    : :Ⓐ  :  # 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 $@

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to