1020812">

Debian Bug report logs - #1020812
ascii2binary: reproducible-builds: build path embedded in /usr/bin/ascii2binary

version graph

Package: src:ascii2binary; Maintainer for src:ascii2binary is Mohammed Sameer <debian@foolab.org>;

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

Date: Tue, 27 Sep 2022 01:15:01 UTC

Severity: normal

Tags: patch

Fixed in version ascii2binary/2.14-1.1

Done: Chris Lamb <lamby@debian.org>

Bug is archived. No further changes may be made.

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, Mohammed Sameer <debian@foolab.org>:
Bug#1020812; Package src:ascii2binary. (Tue, 27 Sep 2022 01:15:03 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, Mohammed Sameer <debian@foolab.org>. (Tue, 27 Sep 2022 01:15:03 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: ascii2binary: reproducible-builds: build path embedded in /usr/bin/ascii2binary
Date: Mon, 26 Sep 2022 18:10:04 -0700
[Message part 1 (text/plain, inline)]
Source: ascii2binary
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/ascii2binary:

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

  /build/1st/ascii2binary-2.14/ascii2binary.c:147
  vs.
  /build/2/ascii2binary-2.14/2nd/ascii2binary.c:147

The attached patch to debian/rules fixes this by adding a
dh_auto_configure override passing -ffile-prefix-map via CFLAGS.

According to my local tests, with this patch applied ascii2binary should
build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining ascii2binary!

live well,
  vagrant
[0001-debian-rules-Add-dh_auto_configure-override-passing-.patch (text/x-diff, inline)]
From 9dd114d5db28e4743c73502f54b2e1876270b7e3 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 27 Sep 2022 01:06:13 +0000
Subject: [PATCH] debian/rules: Add dh_auto_configure override passing
 -ffile-prefix-map via CFLAGS to avoid embedding build paths.

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

diff --git a/debian/rules b/debian/rules
index 218df65..a6588a5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,3 +6,6 @@
 
 %:
 	dh $@
+
+override_dh_auto_configure:
+	dh_auto_configure -- CFLAGS="$(CFLAGS) -ffile-prefix-map=$(CURDIR)=."
-- 
2.37.2

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

Information forwarded to debian-bugs-dist@lists.debian.org, Mohammed Sameer <debian@foolab.org>:
Bug#1020812; Package src:ascii2binary. (Thu, 06 Oct 2022 17:21:04 GMT) (full text, mbox, link).


Acknowledgement sent to "Chris Lamb" <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Mohammed Sameer <debian@foolab.org>. (Thu, 06 Oct 2022 17:21:04 GMT) (full text, mbox, link).


Message #10 received at 1020812@bugs.debian.org (full text, mbox, wrote: > tags 1020812 + pending patch > tags 998758 + pending patch > tags 1007421 + pending patch > thanks > > I've just uploaded ascii2binary 2.14-1.1 to DELAYED/10: > > ascii2binary (2.14-1.1) unstable; urgency=medium > . > * Non-maintainer upload. > * Use dpkg-buildflags(1) to ensure reproducibility-related CFLAGS are > passed to the upstream build system. This change was based on a patch by > Vagrant Cascadian. (Closes: #1020812) > * Switch to dpkg-source 3.0 (quilt) format. (Closes: #998758, #1007421) > > The full debdiff is attached. > > > Regards, > > -- > ,''`. > : :' : Chris Lamb > `. `'` lamby@debian.org / chris-lamb.co.uk > `- ">reply):

From: "Chris Lamb" <lamby@debian.org>
To: 1020812@bugs.debian.org, 1020812-submitter@bugs.debian.org, 998758@bugs.debian.org, 998758-submitter@bugs.debian.org, 1007421@bugs.debian.org, 1007421-submitter@bugs.debian.org
Subject: Re: ascii2binary: reproducible-builds: build path embedded in /usr/bin/ascii2binary
Date: Thu, 06 Oct 2022 10:16:18 -0700
[Message part 1 (text/plain, inline)]
tags 1020812 + pending patch
tags 998758 + pending patch
tags 1007421 + pending patch
thanks

I've just uploaded ascii2binary 2.14-1.1 to DELAYED/10:
  
  ascii2binary (2.14-1.1) unstable; urgency=medium
  .
    * Non-maintainer upload.
    * Use dpkg-buildflags(1) to ensure reproducibility-related CFLAGS are
      passed to the upstream build system. This change was based on a patch by
      Vagrant Cascadian. (Closes: #1020812)
    * Switch to dpkg-source 3.0 (quilt) format. (Closes: #998758, #1007421)

The full debdiff is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
[ascii2binary_2.14-1.1_amd64.debdiff.txt (text/plain, attachment)]

Added tag(s) pending. Request was from "Chris Lamb" <lamby@debian.org> to control@bugs.debian.org. (Thu, 06 Oct 2022 17:21:08 GMT) (full text, mbox, link).


Message sent on to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug#1020812. (Thu, 06 Oct 2022 17:21:12 GMT) (full text, mbox, link).


Reply sent to Chris Lamb <lamby@debian.org>:
You have taken responsibility. (Sun, 16 Oct 2022 18:09:11 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Sun, 16 Oct 2022 18:09:11 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1020812-close@bugs.debian.org
Subject: Bug#1020812: fixed in ascii2binary 2.14-1.1
Date: Sun, 16 Oct 2022 18:05:56 +0000
Source: ascii2binary
Source-Version: 2.14-1.1
Done: Chris Lamb <lamby@debian.org>

We believe that the bug you reported is fixed in the latest version of
ascii2binary, 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 1020812@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Lamb <lamby@debian.org> (supplier of updated ascii2binary 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: SHA256

Format: 1.8
Date: Thu, 06 Oct 2022 10:08:45 -0700
Source: ascii2binary
Binary: ascii2binary ascii2binary-dbgsym
Architecture: source amd64
Version: 2.14-1.1
Distribution: unstable
Urgency: medium
Maintainer: Mohammed Sameer <debian@foolab.org>
Changed-By: Chris Lamb <lamby@debian.org>
Description:
 ascii2binary - Convert between ASCII, hexadecimal and binary representations
Closes: 998758 1007421 1020812
Changes:
 ascii2binary (2.14-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Use dpkg-buildflags(1) to ensure reproducibility-related CFLAGS are
     passed to the upstream build system. This change was based on a patch by
     Vagrant Cascadian. (Closes: #1020812)
   * Switch to dpkg-source 3.0 (quilt) format. (Closes: #998758, #1007421)
Checksums-Sha1:
 dfcd661f243b878367d950ea4a87f6bbbb860dc3 1753 ascii2binary_2.14-1.1.dsc
 08873b665f43919a50db16db7c1668d0a407d63f 101885 ascii2binary_2.14.orig.tar.gz
 03bce003cf4c15bf161c0ef49fab581f62708600 2244 ascii2binary_2.14-1.1.debian.tar.xz
 4f0bfd14ac475b3e9d05c1103f0057232c6f659c 28196 ascii2binary-dbgsym_2.14-1.1_amd64.deb
 270a1c44093f547447adeca725f837a0e2dc34b3 5977 ascii2binary_2.14-1.1_amd64.buildinfo
 fa543d35fe9b1f58a269101164a884ee07e60241 18860 ascii2binary_2.14-1.1_amd64.deb
Checksums-Sha256:
 309836d97862ccba3687016b884a8e06fe8efe7cf9c38af41323a33443887f51 1753 ascii2binary_2.14-1.1.dsc
 addc332b2bdc503de573bfc1876290cf976811aae28498a5c9b902a3c06835a9 101885 ascii2binary_2.14.orig.tar.gz
 a7e8c66fd662b83112427545168c0a666d97eecbe1cb76a1eef73c10715a576d 2244 ascii2binary_2.14-1.1.debian.tar.xz
 588dec5da37b54447232362a397a1a5eb73488856da2c672eb7d8b553d9ac5c1 28196 ascii2binary-dbgsym_2.14-1.1_amd64.deb
 2a303fbfba265bdd4f36f68d5b4278bfa09115bad2386e376c1fe538cd9ab0a6 5977 ascii2binary_2.14-1.1_amd64.buildinfo
 3415055f2304d6afb5bf034a7c160eab76e501b2cf466ccea229cdb30e340009 18860 ascii2binary_2.14-1.1_amd64.deb
Files:
 9d7784f30a8e8320e4b18101c704ad09 1753 misc optional ascii2binary_2.14-1.1.dsc
 d2366dd7cf9ac7f66766f9cf19af64f4 101885 misc optional ascii2binary_2.14.orig.tar.gz
 0c9894352688cfd53c2f1d210a31ae2a 2244 misc optional ascii2binary_2.14-1.1.debian.tar.xz
 5199b796849a7d86c018f6a562db57d3 28196 debug optional ascii2binary-dbgsym_2.14-1.1_amd64.deb
 80e9bd6ddae3969928abc4563992784c 5977 misc optional ascii2binary_2.14-1.1_amd64.buildinfo
 46a9ac85cc12726d48cd8bca413c05d2 18860 misc optional ascii2binary_2.14-1.1_amd64.deb

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

iQIzBAEBCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAmM/DPEACgkQHpU+J9Qx
HliqmA//RUcF3z3GUD3ZLckvZvrhBM7sPDyvwLHcBj77yzoTRA8ytWdfvVA6q0qq
BWgX4y0QAOs/9i4X92+xXuqymvsul+kEEKyhcAqYbL6vOhJLk/+a+HKBhLa7w1hB
Y93g7gQhfhgh4TuaZkCPxcqU76RPofi00vjrP2+2iQit8yTkKcZx3gFhRqmd1y1W
x1Z0bJ9/byPvVovz9obk0wQqgI6GgEoGrOiQp2XI9b7dHP25gnRcPXlZuBJg6cIC
djTXr5YPRrYwfqvFBesgwOQeg6pCSB7lEkFWCyty/sjECujHOikC94HtsWBCVPxW
kVN06XYlNXp1whcjxKZXIX8CgCiGCJE06A2JFq2Q6+XsEBtSXT/gIez1FHWpCRkk
Gmyqr1mPU5t8LyLKLniUO+Jrs1ZaHcglfAKW48HxtqpamL1OC6reudxdtEl5prdU
Swyd5xYIRTi3aIYUKmriuBTG1uBYHXI4SGdhCBuTqR4nt+omMgxFunq+ymSQEfh8
oL9MzpyrE+M3kT7s0fK8U5LtrX6riT7n3QevbB5ydVum80wrjeDlxbqG4FtmSvkL
F/l+CvpHT1Fl6PI3JID6wDFzzqiKN/9ghUeTpUAxadYM9uX3DZxV9f1umbw8tOFR
hkET3crlIPxbWLjknhQKDEUXMvMYx72QhtDoWPQv7sqiL8QE0vQ=
=f3qu
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 19 Nov 2022 07:25:38 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: Fri Jan 31 00:31:54 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General 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.