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 Bug-Debian: https://bugs.debian.org/833379 Reviewed-by: Mattia Rizzolo 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.");