Debian Bug report logs - #1021469
lam: reproducible builds: Embeds build time, username and hostname in various files:

Package: src:lam; Maintainer for src:lam is Camm Maguire <camm@debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Sun, 9 Oct 2022 00:57:01 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Camm Maguire <camm@debian.org>:
Bug#1021469; Package src:lam. (Sun, 09 Oct 2022 00:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Camm Maguire <camm@debian.org>. (Sun, 09 Oct 2022 00:57:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: lam: reproducible builds: Embeds build time, username and hostname in various files:
Date: Sat, 08 Oct 2022 17:54:47 -0700
[Message part 1 (text/plain, inline)]
Source: lam
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: hostname timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The time, username and hostname are embedded in /usr/bin/laminfo and
various other files:

  https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/diffoscope-results/lam.html

  pbuilder1
  vs.
  pbuilder2

  Sat·Sep·23·17:14:47·-12·2023
  vs.
  Mon·Aug·22·13:46:30·+14·2022

  ionos5-amd64
  vs.
  i-capture-the-hostname

The attached patch fixes this by setting placehodler values for
LAM_CONFIGURE_USER and LAM_CONFIGURE_HOST and uses SOURCE_DATE_EPOCH for
the timestamp.

There are other outstanding issues, that prevent this from becoming
fully reproducible (build paths are embedded), but applying this patch
should help reduce the differences to troubleshoot the remaining issues.

While I tested this patch originally, I have not recently been able to
succesfully build lam with or without the patch applied.

Thanks for maintaining lam!

live well,
  vagrant
[0001-configure-config-lam_functions.m4-Use-SOURCE_DATE_EP.patch (text/x-diff, inline)]
From aeb3251c3e9ab0b4b4fc2410d586b1a087d45130 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Wed, 28 Sep 2022 18:53:38 +0000
Subject: [PATCH 1/3] configure, config/lam_functions.m4: Use SOURCE_DATE_EPOCH
 to set LAM_CONFIGURE_DATE and set LAM_CONFIGURE_USER and LAM_CONFIGUIRE_HOST
 to placeholder values.

---
 config/lam_functions.m4 | 6 +++---
 configure               | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/config/lam_functions.m4 b/config/lam_functions.m4
index 3e80741..19a0bb2 100644
--- a/config/lam_functions.m4
+++ b/config/lam_functions.m4
@@ -44,9 +44,9 @@ AC_DEFUN([LAM_BASIC_SETUP],[
 # Save some stats about this build
 #
 
-LAM_CONFIGURE_USER="`whoami`"
-LAM_CONFIGURE_HOST="`hostname | head -n 1`"
-LAM_CONFIGURE_DATE="`date`"
+LAM_CONFIGURE_USER=USERNAME
+LAM_CONFIGURE_HOST=HOSTNAME
+LAM_CONFIGURE_DATE="`LC_ALL=C date --utc --date=@${SOURCE_DATE_EPOCH}`"
 
 #
 # Make automake clean emacs ~ files for "make clean"
diff --git a/configure b/configure
index 146976c..7b788d9 100755
--- a/configure
+++ b/configure
@@ -2190,9 +2190,9 @@ build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 # Save some stats about this build
 #
 
-LAM_CONFIGURE_USER="`whoami`"
-LAM_CONFIGURE_HOST="`hostname | head -n 1`"
-LAM_CONFIGURE_DATE="`date`"
+LAM_CONFIGURE_USER="USERNAME"
+LAM_CONFIGURE_HOST="HOSTNAME"
+LAM_CONFIGURE_DATE="`LC_ALL=C date --utc --date=@${SOURCE_DATE_EPOCH}`"
 
 #
 # Make automake clean emacs ~ files for "make clean"
-- 
2.30.2

[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 12:43:00 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.