Debian Bug report logs - #1033955
pike8.0: reproducible builds: kernel version affects buildid

Package: src:pike8.0; Maintainer for src:pike8.0 is Magnus Holmgren <holmgren@debian.org>;

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

Date: Tue, 4 Apr 2023 22:21: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, Magnus Holmgren <holmgren@debian.org>:
Bug#1033955; Package src:pike8.0. (Tue, 04 Apr 2023 22:21: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, Magnus Holmgren <holmgren@debian.org>. (Tue, 04 Apr 2023 22:21: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: pike8.0: reproducible builds: kernel version affects buildid
Date: Tue, 04 Apr 2023 15:18:18 -0700
[Message part 1 (text/plain, inline)]
Source: pike8.0
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The build directory includes the running kernel version if PIKE_BUILD_OS
is not set, as upstream the Makefile uses "uname -s -r -m" set this
valu... resulting in a different build path during the build, which
indirectly changes the buildid of various binaries.

The attached patch to debian/rules fixes this by setting PIKE_BUILD_OS
to the value of DEB_HOST_GNU_TYPE, although any number of other
DEB_HOST_* variables could be used instead while still remaining
reproducible.

Unfortunately, this patch alone does not solve all reproducibility
issues with pike8.0, but applying this patch should significantly reduce
the differences, making it easier to debug remaining issues.

Thanks for maintaining pike8.0!

live well,
  vagrant
[0002-debian-rules-export-PIKE_BUILD_OS-to-avoid-embedding.patch (text/x-diff, inline)]
From 3f2aa4467cbc2fe5c9b87b712b3847d75e3e8bce Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 3 Apr 2023 15:44:33 -0700
Subject: [PATCH 2/9] debian/rules: export PIKE_BUILD_OS to avoid embedding
 kernel version.

https://tests.reproducible-builds.org/debian/issues/unstable/captures_kernel_version_issue.html
---
 debian/rules | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/rules b/debian/rules
index a6bb6d7..8ee2748 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,6 +20,7 @@ endif
 
 export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+export PIKE_BUILD_OS ?= $(DEB_HOST_GNU_TYPE)
 
 CFARGSEXTRA := --with-cdebug
 
-- 
2.39.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 11:43:44 2023; Machine Name: buxtehude

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.