Source: fl-cow
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 /usr/lib/fl-cow/libflcow.so:

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

  /build/1st/fl-cow-0.6/fl-cow/fl-cow-config.h:1
  vs.
  /build/2/fl-cow-0.6/2nd/fl-cow/fl-cow-config.h:1

The attached patch to debian/rules fixes this by passing the default
buildflags, which include -ffile-prefix-map to avoid embedding the
absolute build path in the binaries.

Alternately or even preferably, updating to dh and a recent
debhelper-compat version might fix this as well as other issues.

According to my local tests, with this patch applied fl-cow should build
reproducibly on tests.reproducible-builds.org!

Thanks for maintaining fl-cow!

live well,
  vagrant
From f0bff726ef7df0062d79fccf537f38b96856d94f Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sun, 13 Nov 2022 07:28:02 +0000
Subject: [PATCH] debian/rules: Pass default CFLAGS to configure.

---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 831bf87..559606f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,7 @@ clean:
 configure-stamp:
 	dh_testdir
 	autoreconf -fi
-	./configure --prefix=/usr --disable-static --libdir=/usr/lib/fl-cow
+	./configure --prefix=/usr --disable-static --libdir=/usr/lib/fl-cow CFLAGS=$(dpkg-buildflags --get CFLAGS)
 	touch configure-stamp
 
 configure: configure-stamp
-- 
2.38.1

Attachment: signature.asc
Description: PGP signature

Reply via email to