Source: bowtie2
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: hostname
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The hostname gets embedded in the debug symbols:

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

  ./usr/lib/debug/.dwz/x86_64-linux-gnu/bowtie2.debug
  509   ··[··2fcb]··BUILD_HOST·"ionos11-amd64"
  557   ··[··3430]··BUILD_HOST·"i-capture-the-hostname"


The attached patch fixes this by passing the HOSTNAME variable in
debian/rules.


Thanks for maintaining bowtie2!


live well,
  vagrant
From 4fc949ff654adb250b5a855ec4c77080f568b443 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 15 Dec 2020 03:42:49 +0000
Subject: [PATCH 2/2] debian/rules: Pass HOSTNAME variable to dh_auto_build.

The hostname of the build system will get embecded in the binary
otherwise, breaking reproducible builds.
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 464a80c..851f8c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,7 +24,7 @@ export EXTRA_OPTIONS
 	dh $@
 
 override_dh_auto_build:
-	LD_PRELOAD= dh_auto_build -- EXTRA_FLAGS="-std=c++98 $(LDFLAGS)" $(EXTRA_OPTIONS)
+	LD_PRELOAD= dh_auto_build -- EXTRA_FLAGS="-std=c++98 $(LDFLAGS)" $(EXTRA_OPTIONS) HOSTNAME=reproducible-hostname
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-- 
2.29.2

Attachment: signature.asc
Description: PGP signature

Reply via email to