Debian Bug report logs -
#1020759
postal: reproducible-builds: Embedded build paths in binaries
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Russell Coker <russell@coker.com.au>:
Bug#1020759; Package src:postal.
(Mon, 26 Sep 2022 01:45: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, Russell Coker <russell@coker.com.au>.
(Mon, 26 Sep 2022 01:45:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: postal
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The build path is embedded in various binaries:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/postal.html
/usr/bin/postal-list
/build/1st/postal-0.76+nmu1/expand.cpp:14·(discriminator·2)
vs.
/build/2/postal-0.76+nmu1/2nd/expand.cpp:14·(discriminator·2)
The attached patch to debian/rules fixes this by passing the default
CFLAGS to make.
Alternately, updating to use dh and a recent debhelper compat version
might also fix this.
With this patch applied postal should build reproducibly on
tests.reproducible-builds.org!
Thanks for maintaining postal!
live well,
vagrant
[0001-debian-rules-Pass-default-CFLAGS-to-make.patch (text/x-diff, inline)]
From c082698686506433efbdacccdccf390bc44895e3 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 26 Sep 2022 01:39:23 +0000
Subject: [PATCH] debian/rules: Pass default CFLAGS to make.
---
debian/rules | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 28345f8..517b3af 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
+
build: build-stamp
build-stamp:
dh_testdir
@@ -12,7 +14,7 @@ build-stamp:
# Add here commands to compile the package.
./configure --prefix=`pwd`/debian/postal/usr --without-openssl
- $(MAKE)
+ $(MAKE) CFLAGS="$(CFLAGS)"
touch build-stamp
--
2.37.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 13:27:54 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.