Avoid embedding user and time in version from getversion.sh
authorSophie Brun <sophie@offensive-security.com>
Tue, 27 Oct 2020 10:41:16 +0000 (11:41 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 21 Jun 2022 09:42:25 +0000 (10:42 +0100)
Last-Update: 2020-10-27

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971400
Author: Vagrant Cascadian <vagrant@reproducible-builds.org>

The getversion.sh script embeds the build time and user who built the
binary, which breaks reproducible builds:

  https://reproducible-builds.org/

Without this patch, "/usr/bin/futility" embeds differing information
in the binary:

  unknown 2020-09-17 07:53:52 pbuilder1 vs. unknown 2021-10-21 16:19:17 pbuilder2

Gbp-Pq: Name do-not-embed-user-and-time-in-version.patch

scripts/getversion.sh

index a5630072385d2e10a9a86df458252cc39688e615..a5ab63b75e2310dcda13168b96f37a073ff28dc1 100755 (executable)
@@ -30,4 +30,4 @@ fi
 
 date=$(date '+%F %T')
 
-echo "const char futility_version[] = \"${ver} ${date} ${USER}\";";
+echo "const char futility_version[] = \"${ver}\";";