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

Bug#1011469: transcalc: reproducible-builds: embedded build paths in /usr/bin/transcalc



Source: transcalc
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/bin/transcalc:

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

  /build/1st/transcalc-0.14/src/transcalc.c:214
  vs.
  /build/2/transcalc-0.14/2nd/src/transcalc.c:214

The attached patch fixes this by explicitly passing CFLAGS to
dh_auto_build in debian/rules, which includes the -ffile-prefix-map
argument to avoid embedding the absolute path in compiled files.


With this patch applied, transcalc should build reproducibly on
tests.reproducible-builds.org!


live well,
  vagrant
From e1037e5dba192180108fc12d38563118febaef48 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 23 May 2022 16:33:58 +0000
Subject: [PATCH] debian/rules: Explicitly pass CFLAGS to dh_auto_build.

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

diff --git a/debian/rules b/debian/rules
index 1cfd3a6..39dd180 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 	dh $@
 
 override_dh_auto_build:
-	dh_auto_build
+	dh_auto_build -- CFLAGS="$(CFLAGS)"
 	[ -e docs/transcalc.1.d-r-orig ] || cp -p docs/transcalc.1 docs/transcalc.1.d-r-orig
 	docbook-to-man docs/transcalc.sgml > docs/transcalc.1
 
-- 
2.36.1

Attachment: signature.asc
Description: PGP signature


Reply to: