Source: pure-ftpd Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The build path is embedded in various binaries: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/pure-ftpd.html /usr/bin/pure-pw /build/1st/pure-ftpd-1.0.50/src/alt_arc4random.c:149 vs. /build/2/pure-ftpd-1.0.50/2nd/src/alt_arc4random.c:149 The attached patch fixes this in debian/rules by passing -ffile-prefix-map in in CFLAGS. With this patch applied pure-ftpd should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining pure-ftpd! live well, vagrant
From 80d366799f5a4484582092e88315cd63d041454e Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Sun, 25 Sep 2022 21:51:30 +0000 Subject: [PATCH] debian/rules: Add -ffile-prefix map to CFLAGS to avoid embedding build path. https://reproducible-builds.org/docs/build-path/ --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 5efcf37..305ee2c 100755 --- a/debian/rules +++ b/debian/rules @@ -5,7 +5,7 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -cfgflags=--sysconfdir=/etc/pure-ftpd CFLAGS="-O2 -DMAX_USER_LENGTH=128U -g" +cfgflags=--sysconfdir=/etc/pure-ftpd CFLAGS="-O2 -DMAX_USER_LENGTH=128U -g -ffile-prefix-map=$(CURDIR)=." optflags=--with-everything --with-largefile --with-pam --with-privsep --with-tls --with-rfc2640 bin=pure-pw pure-statsdecode pure-pwconvert sbin=pure-authd pure-certd pure-ftpwho pure-uploadscript pure-quotacheck pure-ftpd pure-mrtginfo -- 2.37.2
signature.asc
Description: PGP signature