Source: metapixel
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/bin/metapixel and
/usr/bin/metapixel-imagesize:

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

  /build/1st/metapixel-1.0.2/rwimg/readimage.c:115
  vs.
  /build/2/metapixel-1.0.2/2nd/rwimg/readimage.c:115


The attached patch to debian/rules fixes this by passing the
-ffile-prefix-map compiler flag via dh_auto_build.


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


Thanks for maintaining metapixel!


live well,
  vagrant
From 66bf12a0ef3d945b04d04adb8904d2146d17ab67 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Mon, 2 May 2022 15:13:03 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map to dh_auto_build.

This avoids embedding the absolute build path in /usr/bin/metapixel*

https://reproducible-builds.org/docs/build-path/
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index d58bd31..8975aef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,7 @@ MANDIR = $(PREFIX)/usr/share/man
 	dh $@
 
 override_dh_auto_build:
-	dh_auto_build -- MANPAGE_XSL=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
+	dh_auto_build -- PROFILE="-ffile-prefix-map=$(CURDIR)=." MANPAGE_XSL=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
 
 override_dh_auto_install:
 	dh_auto_install -- PREFIX=$(PREFIX) BINDIR=$(BINDIR) MANDIR=$(MANDIR)
-- 
2.36.0

Attachment: signature.asc
Description: PGP signature

Reply via email to