Debian Bug report logs - #1010871
dvbtune: reproducible-builds: embedded build paths in various binaries

version graph

Package: src:dvbtune; Maintainer for src:dvbtune is Debian QA Group <packages@qa.debian.org>;

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

Date: Thu, 12 May 2022 00:57:01 UTC

Severity: normal

Tags: patch

Fixed in version dvbtune/0.5.ds-4

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

Bug is archived. No further changes may be made.

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, Debian QA Group <packages@qa.debian.org>:
Bug#1010871; Package src:dvbtune. (Thu, 12 May 2022 00:57: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, Debian QA Group <packages@qa.debian.org>. (Thu, 12 May 2022 00:57: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: dvbtune: reproducible-builds: embedded build paths in various binaries
Date: Wed, 11 May 2022 17:55:31 -0700
[Message part 1 (text/plain, inline)]
Source: dvbtune
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/dvbtune and /usr/bin/xml2vdr:

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

  /build/1st/dvbtune-0.5.ds/dvbtune.c:140
  vs.
  /build/2/dvbtune-0.5.ds/2nd/dvbtune.c:140

The attached patches fix this by modifying the upstream Makefile to
append EXTRA_CFLAGS to CFLAGS, and passing EXTRA_CFLAGS in debian/rules
in the dh_auto_build phase. This passes the default CFLAGS from
dpkg-buildflags, which includes the -ffile-prefix-map argument to avoid
embedding the absolute path in compiled files.


With these patches applied, dvbtune should build reproducibly on
tests.reproducible-builds.org!


live well,
  vagrant
[0001-debian-patches-Allow-passing-additional-CFLAGS-via-E.patch (text/x-diff, inline)]
From c041172edf70e46071bcff23ea35baa1688ea219 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Thu, 12 May 2022 00:38:57 +0000
Subject: [PATCH 1/3] debian/patches: Allow passing additional CFLAGS via
 EXTRA_CFLAGS to Makefile.

---
 ...kefile-allow-passing-additional-cflags.patch | 17 +++++++++++++++++
 debian/patches/series                           |  1 +
 2 files changed, 18 insertions(+)
 create mode 100644 debian/patches/makefile-allow-passing-additional-cflags.patch

diff --git a/debian/patches/makefile-allow-passing-additional-cflags.patch b/debian/patches/makefile-allow-passing-additional-cflags.patch
new file mode 100644
index 0000000..5f569d7
--- /dev/null
+++ b/debian/patches/makefile-allow-passing-additional-cflags.patch
@@ -0,0 +1,17 @@
+From: Vagrant Cascadian <vagrant@reproducible-builds.org>
+Date: Thu, 12 May 2022 00:34:59 +0000
+X-Dgit-Generated: 0.5.ds-4~20220512~0 b5ac71a0203370a76a210e7897ff0f70090741c4
+Subject: Makefile: Allow passing additional CFLAGS via EXTRA_CFLAGS.
+
+
+---
+
+--- dvbtune-0.5.ds.orig/Makefile
++++ dvbtune-0.5.ds/Makefile
+@@ -1,5 +1,5 @@
+ INCS=-I /usr/include/libxml2
+-CFLAGS= -g -Wall $(INCS) -DVERSION=\"$(VERSION)\"
++CFLAGS= -g -Wall $(INCS) -DVERSION=\"$(VERSION)\" $(EXTRA_CFLAGS)
+ CC=gcc
+ all: dvbtune
+ 
diff --git a/debian/patches/series b/debian/patches/series
index b5bb219..ebd13ad 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 10_options.patch
 30_stdint.patch
 fix_debugbuild.patch
+makefile-allow-passing-additional-cflags.patch
-- 
2.30.2

[0002-debian-rules-Pass-CFLAGS-as-EXTRA_CFLAGS-to-dh_auto_.patch (text/x-diff, inline)]
From a89d2ffd48dfedaffaeeb96ce83520f59845a44e Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Thu, 12 May 2022 00:35:32 +0000
Subject: [PATCH 2/3] debian/rules: Pass CFLAGS as EXTRA_CFLAGS to
 dh_auto_build.

---
 debian/rules | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 3e0c521..c675009 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,8 +7,8 @@ VERSION=0.5
 
 override_dh_auto_build:
 	dh_testdir
-	dh_auto_build -- VERSION=$(VERSION)
-	dh_auto_build -- VERSION=$(VERSION) xml2vdr
+	dh_auto_build -- VERSION=$(VERSION) EXTRA_CFLAGS="$(CFLAGS)"
+	dh_auto_build -- VERSION=$(VERSION) EXTRA_CFLAGS="$(CFLAGS)" xml2vdr
 	#rm -rf $(BUILD_DIR)/scripts/CVS
 	docbook-to-man debian/dvbtune.sgml > dvbtune.1
 	docbook-to-man debian/xml2vdr.sgml > xml2vdr.1
-- 
2.30.2

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

Reply sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
You have taken responsibility. (Thu, 12 May 2022 01:39:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Thu, 12 May 2022 01:39:03 GMT) (full text, mbox, link).


Message #10 received at 1010871-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1010871-close@bugs.debian.org
Subject: Bug#1010871: fixed in dvbtune 0.5.ds-4
Date: Thu, 12 May 2022 01:34:06 +0000
Source: dvbtune
Source-Version: 0.5.ds-4
Done: Vagrant Cascadian <vagrant@reproducible-builds.org>

We believe that the bug you reported is fixed in the latest version of
dvbtune, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1010871@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@reproducible-builds.org> (supplier of updated dvbtune package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 11 May 2022 18:12:22 -0700
Source: dvbtune
Architecture: source
Version: 0.5.ds-4
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Vagrant Cascadian <vagrant@reproducible-builds.org>
Closes: 1010871
Changes:
 dvbtune (0.5.ds-4) unstable; urgency=medium
 .
   * QA upload.
   * debian/patches: Allow passing additional CFLAGS via EXTRA_CFLAGS to
     Makefile.
   * debian/rules: Pass CFLAGS as EXTRA_CFLAGS to dh_auto_build.
     (Closes: #1010871)
   * debian/control: Set Rules-Requires-Root to "no".
   * debian/control: Update to Standards-Version 4.6.1.
   * debian/copyright: Update path to GPL-2.
Checksums-Sha1:
 3128d951b12d21b35f5fd4088f402f68b9d727be 1301 dvbtune_0.5.ds-4.dsc
 c745e6ecfd72c5baa2db33ef18d5b8cfd5580e5e 12240 dvbtune_0.5.ds-4.debian.tar.xz
 80301c46b6f2dee550de76e4cf3fa9ccca834770 5685 dvbtune_0.5.ds-4_arm64.buildinfo
Checksums-Sha256:
 07f221b835704d4280c9df6f01d29421f0073ead347bdf0be6db395a715e0cc3 1301 dvbtune_0.5.ds-4.dsc
 0dc6c296b8130e56d8535d762f15ca24c5bdf702358194df781b539b040b5016 12240 dvbtune_0.5.ds-4.debian.tar.xz
 bb2b0f7132db301027d950d586ec2d768b04f8b9fa57191522f1bbf3a927c6e3 5685 dvbtune_0.5.ds-4_arm64.buildinfo
Files:
 700aa5396a3e1b7860cce3230bd5ac0f 1301 utils optional dvbtune_0.5.ds-4.dsc
 4490b9aaf5052f5fdd50fd638acd3887 12240 utils optional dvbtune_0.5.ds-4.debian.tar.xz
 26d7f27e46bdd7efd3f3f372d2d09f1d 5685 utils optional dvbtune_0.5.ds-4_arm64.buildinfo

-----BEGIN PGP SIGNATURE-----

iJYEARYKAD4WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYnxgaCAcdmFncmFudEBy
ZXByb2R1Y2libGUtYnVpbGRzLm9yZwAKCRDcUY/If5cWqjpuAQCZVlLaqXlgB4il
tPCcjmeE734MEUw9V1Sw6zsggjAlEQD/UXThSew4xLS3arw9xm6WajOytEQJfWiJ
iOgHr1OFwAo=
=5Mc5
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 30 Jun 2022 07:27:18 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 12:38:35 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.