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

Bug#1011471: mgdiff: reproducible-builds: embedded build paths in /usr/bin/mgdiff



Source: mgdiff
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/mgdiff:

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

  /build/1st/mgdiff-1.0/mgdiff.c:1057
  vs.
  /build/2/mgdiff-1.0/2nd/mgdiff.c:1057

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


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


live well,
  vagrant
From 4aa0b48b924de1a73b5cbe541b4adfafe832e013 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 23 May 2022 17:06:51 +0000
Subject: [PATCH] debian/rules: Explicitly pass CFLAGS to make.

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

diff --git a/debian/rules b/debian/rules
index 1df2c00..152626e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@ build-arch:
 	dh_testdir
 	xmkmf
 	make depend XMULIBONLY=""
-	make XMULIBONLY=""
+	make XMULIBONLY="" CFLAGS="$(CFLAGS)"
 	touch build
 
 clean:
-- 
2.36.1

Attachment: signature.asc
Description: PGP signature


Reply to: