[Reproducible-builds] Bug#833379: hardinfo: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Aug 3 17:08:13 UTC 2016


Source: hardinfo
Version: 0.5.1-1.5
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed
that hardinfo could not be built reproducibly.

Patch attached.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/configure	2016-08-03 12:09:24.359183765 -0400
--- b/configure	2016-08-03 12:13:50.725579223 -0400
@@ -186,9 +186,15 @@
 echo "#define $ARCH" >> config.h
 echo "#define ARCH     \"$ARCH\"" >> config.h
 
-echo "#define PLATFORM \"`uname`\"" >> config.h
-echo "#define KERNEL   \"`uname -r`\"" >> config.h
-echo "#define HOSTNAME \"`hostname`\"" >> config.h
+if [ "$SOURCE_DATE_EPOCH" = "" ]; then
+	echo "#define PLATFORM \"`uname`\"" >> config.h
+	echo "#define KERNEL   \"`uname -r`\"" >> config.h
+	echo "#define HOSTNAME \"`hostname`\"" >> config.h
+else
+	echo "#define PLATFORM \"-\"" >> config.h
+	echo "#define KERNEL   \"-\"" >> config.h
+	echo "#define HOSTNAME \"-\"" >> config.h
+fi
 
 echo "#define PREFIX \"/usr/share/hardinfo/\"" >> config.h
 echo "#define LIBPREFIX \"/usr/lib/hardinfo/\"" >> config.h


More information about the Reproducible-builds mailing list