aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/make-build-reproducable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/make-build-reproducable.patch')
-rw-r--r--debian/patches/make-build-reproducable.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/patches/make-build-reproducable.patch b/debian/patches/make-build-reproducable.patch
new file mode 100644
index 00000000..5ad40597
--- /dev/null
+++ b/debian/patches/make-build-reproducable.patch
@@ -0,0 +1,31 @@
+Description: Make HardInfo reproducable.
+ This patch removes the "Compiled on:" text when running "hardinfo --version"
+ because it does not show any useful information at the moment, and causes
+ HardInfo to fail reproducibility tests.
+Author: Simon Quigley <tsimonq2@ubuntu.com>
+Bug-Debian: https://bugs.debian.org/833379
+Reviewed-by: Mattia Rizzolo <mattia@debian.org>
+Last-Update: 2017-07-14
+--- a/config.h.cmake
++++ b/config.h.cmake
+@@ -5,9 +5,6 @@
+
+ #define ARCH "ARCH_@HARDINFO_ARCH@"
+ #define OS "@HARDINFO_OS@"
+-#define PLATFORM OS "-" ARCH
+-#define KERNEL "@CMAKE_SYSTEM_VERSION@"
+-#define HOSTNAME ""
+ #define ARCH_@HARDINFO_ARCH@
+
+ #define LIBDIR "@CMAKE_INSTALL_LIBDIR@"
+--- a/hardinfo/hardinfo.c
++++ b/hardinfo/hardinfo.c
+@@ -55,7 +55,7 @@ int main(int argc, char **argv)
+ " Compiled on: %s %s (%s)\n"),
+ RELEASE ? _("Yes") : "No (" VERSION ")", ARCH,
+ ENABLE_BINRELOC ? _("Yes") : _("No"),
+- PREFIX, LIBPREFIX, PLATFORM, KERNEL, HOSTNAME);
++ PREFIX, LIBPREFIX, "", "", "");
+
+ DEBUG(" Debugging is enabled.");
+