Source: imagination
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/imagination.html

  /usr/bin/imagination

  /build/1st/imagination-3.6/src/imgcellrendereranim.c:63
  vs.
  /build/2/imagination-3.6/2nd/src/imgcellrendereranim.c:63

The attached patch fixes this by explicitly passing CFLAGS to a
dh_auto_build override in debian/rules, which includes the
-ffile-prefix-map argument used to avoid embedding build paths.


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


live well,
  vagrant
From 01273015daccd5f14d9cf37b06909702f83da0a1 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 24 May 2022 00:17:51 +0000
Subject: [PATCH] debian/rules: Explicitly pass CFLAGS via dh_auto_build
 override.

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

diff --git a/debian/rules b/debian/rules
index e2eadfe..e6cdda4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,3 +14,6 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 override_dh_gencontrol:
 	dh_gencontrol -pimagination -- $(SUBSTVARS)
 	dh_gencontrol -pimagination-common
+
+override_dh_auto_build:
+	dh_auto_build -- CFLAGS="$(CFLAGS)"
-- 
2.36.1

Attachment: signature.asc
Description: PGP signature

Reply via email to