Debian Bug report logs - #1020673
w3cam: reproducible-builds: Embedded build path in /usr/bin/vidcat

Package: src:w3cam; Maintainer for src:w3cam is Martin Meredith <mez@debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Sun, 25 Sep 2022 01:21:01 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Martin Meredith <mez@debian.org>:
Bug#1020673; Package src:w3cam. (Sun, 25 Sep 2022 01:21:04 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Martin Meredith <mez@debian.org>. (Sun, 25 Sep 2022 01:21:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: w3cam: reproducible-builds: Embedded build path in /usr/bin/vidcat
Date: Sat, 24 Sep 2022 18:16:44 -0700
[Message part 1 (text/plain, inline)]
Source: w3cam
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/vidcat:

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

  /build/1st/w3cam-0.7.2/vidcat.c:463
  vs.
  /build/2/w3cam-0.7.2/2nd/vidcat.c:463

The attached patch fixes this in debian/rules by passing CFLAGS to
configure including the -ffile-prefix-map argument.

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

Thanks for maintaining w3cam!

live well,
  vagrant
[0001-debian-rules-Pass-CFLAGS-to-configure-including-ffil.patch (text/x-diff, inline)]
From 99ae20a5760e5e25e3d4969c2bb9688df41b85e8 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 25 Sep 2022 01:12:31 +0000
Subject: [PATCH] debian/rules: Pass CFLAGS to configure, including
 -ffile-prefix-map to avoid embedding build paths.

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 fd931e5..1a1c35a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@ configure: configure-stamp
 configure-stamp:
 	dh_testdir
 
-	./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+	CFLAGS="-ffile-prefix-map=$(CURDIR)=." ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 
 	touch configure-stamp
 
-- 
2.37.2

[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 13:29:23 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.