Source: udev-discover Version: 0.2.2-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: randomness X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi, While working on the "reproducible builds" effort [1], we have noticed that udev-discover could not be built reproducibly. This is caused by determinism in the call to self.distribution.get_command_obj('install', False) in BuildScript.run inside upstream's setup.py. By specifying the prefix in the build_scripts stanza in setup.cfg we can remove this non-determinism. See the attached patch. (If you apply this patch, you might want to change the prefix to "/usr", ie. without the trailing "/". That will remove the double "//" in the target.) [1]: https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
diff -urNad udev-discover.orig/udev-discover-0.2.2/debian/patches/modify_prefix.patch udev-discover/udev-discover-0.2.2/debian/patches/modify_prefix.patch --- udev-discover.orig/udev-discover-0.2.2/debian/patches/modify_prefix.patch 2015-02-23 23:40:52.875277906 +0000 +++ udev-discover/udev-discover-0.2.2/debian/patches/modify_prefix.patch 2015-02-23 23:43:32.810412215 +0000 @@ -1,8 +1,11 @@ --- a/setup.cfg +++ b/setup.cfg -@@ -2,4 +2,4 @@ +@@ -2,4 +2,7 @@ prefix=/usr/local [install] -prefix=/usr/local +prefix=/usr/ ++ ++[build_scripts] ++prefix=/usr/