aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/make-build-reproducable.patch
blob: ef85bfa8d9b186dec667f5cff8acb019b2ac6462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
@@ -52,10 +52,9 @@ int main(int argc, char **argv)
 		"  BinReloc enabled:  %s\n"
 		"  Data prefix:       %s\n"
 		"  Library prefix:    %s\n"
-		"  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.");