Source: pike8.0
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-b...@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
From 3f2aa4467cbc2fe5c9b87b712b3847d75e3e8bce Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@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

Attachment: signature.asc
Description: PGP signature

Reply via email to