Source: hardinfo Version: 0.5.1-1.5 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: environment X-Debbugs-Cc: reproducible-bui...@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 `. `'` la...@debian.org / chris-lamb.co.uk `-
--- 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