[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1011498: parprouted: reproducible-builds: embedded build paths in /usr/sbin/parprouted



Source: parprouted
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 /usr/sbin/parprouted:

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

  /build/1st/parprouted-0.70/parprouted.c:388
  vs.
  /build/2/parprouted-0.70/2nd/parprouted.c:388

The attached patch fixes this by passing CFLAGS via EXTRA_CFLAGS in a
dh_auto_build override in debian/rules.  This allows passing the default
build flags including -ffile-prefix-map, which avoids embedding the
absolute path in compiled files.


With these patches applied, parprouted should build reproducibly on
tests.reproducible-builds.org!


live well,
  vagrant
From 8f89bcf5ceb969296c3e80ca5dd5ed094557b2ae Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 23 May 2022 23:36:01 +0000
Subject: [PATCH] debian/rules: Pass CFLAGS via EXTRA_CFLAGS in dh_auto_build
 override.

---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index bf7a709..2173a20 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,3 +21,6 @@ include /usr/share/dpkg/buildflags.mk
 
 %:
 	dh $@ 
+
+override_dh_auto_build:
+	dh_auto_build -- EXTRA_CFLAGS="$(CFLAGS)"
-- 
2.36.1

Attachment: signature.asc
Description: PGP signature


Reply to: