#1010871 dvbtune: reproducible-builds: embedded build paths in various binaries

Package:
src:dvbtune
Source:
dvbtune
Submitter:
Vagrant Cascadian
Date:
2022-05-12 01:39:03 UTC
Severity:
normal
Tags:
#1010871#5
Date:
2022-05-12 00:55:31 UTC
From:
To:
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

#1010871#10
Date:
2022-05-12 01:34:06 UTC
From:
To:
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)
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-----