From a8d00d260cc757a50090142802af4e683743deb6 Mon Sep 17 00:00:00 2001 From: Sophie Brun Date: Tue, 27 Oct 2020 11:41:16 +0100 Subject: [PATCH] Avoid embedding user and time in version from getversion.sh Last-Update: 2020-10-27 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971400 Author: Vagrant Cascadian 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/getversion.sh b/scripts/getversion.sh index a563007..a5ab63b 100755 --- a/scripts/getversion.sh +++ b/scripts/getversion.sh @@ -30,4 +30,4 @@ fi date=$(date '+%F %T') -echo "const char futility_version[] = \"${ver} ${date} ${USER}\";"; +echo "const char futility_version[] = \"${ver}\";"; -- 2.30.2