1020719">

Debian Bug report logs - #1020719
chibicc: reproducible-builds: Embedded build path in /usr/bin/chibicc

version graph

Package: src:chibicc; Maintainer for src:chibicc is Alex Myczko <tar@debian.org>;

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

Date: Sun, 25 Sep 2022 18:45:01 UTC

Severity: normal

Tags: patch

Fixed in version chibicc/0+git20220719+ds-2

Done: Gürkan Myczko <tar@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, Gürkan Myczko <tar@debian.org>:
Bug#1020719; Package src:chibicc. (Sun, 25 Sep 2022 18:45: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, Gürkan Myczko <tar@debian.org>. (Sun, 25 Sep 2022 18:45: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: chibicc: reproducible-builds: Embedded build path in /usr/bin/chibicc
Date: Sun, 25 Sep 2022 11:41:27 -0700
[Message part 1 (text/plain, inline)]
Source: chibicc
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/chibicc:

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

  /build/1st/chibicc-0+git20220719+ds/codegen.c:18
  vs.
  /build/2/chibicc-0+git20220719+ds/2nd/codegen.c:18

The attached patch fixes this in debian/rules by adding a dh_auto_build
override which passes the default CFLAGS.

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

Thanks for maintaining chibicc!

live well,
  vagrant
[0001-debian-rules-Pass-CFLAGS-to-dh_auto_build.patch (text/x-diff, inline)]
From 5c37115b41af9fefeec01905bbac0142c33a08df Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 25 Sep 2022 18:34:21 +0000
Subject: [PATCH] debian/rules: Pass CFLAGS to dh_auto_build.

The default CFLAGS are ignored otherwise, which include flags to avoid
embedding the build path.

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

diff --git a/debian/rules b/debian/rules
index 167fe42..6b36119 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,3 +12,6 @@ export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
 
 %:
 	dh $@
+
+override_dh_auto_build:
+	dh_auto_build -- CFLAGS="$(CFLAGS)"
-- 
2.37.2

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

Reply sent to Gürkan Myczko <tar@debian.org>:
You have taken responsibility. (Mon, 26 Sep 2022 08:39:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Mon, 26 Sep 2022 08:39:03 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1020719-close@bugs.debian.org
Subject: Bug#1020719: fixed in chibicc 0+git20220719+ds-2
Date: Mon, 26 Sep 2022 08:34:32 +0000
Source: chibicc
Source-Version: 0+git20220719+ds-2
Done: Gürkan Myczko <tar@debian.org>

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

Debian distribution maintenance software
pp.
Gürkan Myczko <tar@debian.org> (supplier of updated chibicc 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: Mon, 26 Sep 2022 09:47:38 +0200
Source: chibicc
Architecture: source
Version: 0+git20220719+ds-2
Distribution: unstable
Urgency: medium
Maintainer: Gürkan Myczko <tar@debian.org>
Changed-By: Gürkan Myczko <tar@debian.org>
Closes: 1020719
Changes:
 chibicc (0+git20220719+ds-2) unstable; urgency=medium
 .
   * Pass CFLAGS to dh_auto_build. Thanks for the patch Vagrant Cascadian.
     (Closes: #1020719)
Checksums-Sha1:
 ed357e0946037d81b19719c36055bc0e022c170c 1776 chibicc_0+git20220719+ds-2.dsc
 ba42d90e84f721f887bf45682165b71ce9f6073c 2568 chibicc_0+git20220719+ds-2.debian.tar.xz
 59844a00be28b6a9b3232de8d156022b5b311071 7452 chibicc_0+git20220719+ds-2_source.buildinfo
Checksums-Sha256:
 3a62fa3219cdce5085a7a5d769817e01db665a7f745d29eb8a23518682b4df99 1776 chibicc_0+git20220719+ds-2.dsc
 fe2b6d8a5a7183e0913fb86048739cc5277fa84992da36943a897b9ce2b0c41e 2568 chibicc_0+git20220719+ds-2.debian.tar.xz
 96b39d0c9868d8d1c73cf036dfa99d4e723f56b98e61134e6c46da69b522e51b 7452 chibicc_0+git20220719+ds-2_source.buildinfo
Files:
 34a7f48254a8fb567c2326a6bbd83ec9 1776 devel optional chibicc_0+git20220719+ds-2.dsc
 ce2f7a1b211ab1ee49038e4672af96d8 2568 devel optional chibicc_0+git20220719+ds-2.debian.tar.xz
 4c9ee02181a44d8561ceb6b0692b0145 7452 devel optional chibicc_0+git20220719+ds-2_source.buildinfo

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

iQIzBAEBCAAdFiEEtgob82PcExn/Co6JEWhSvN91FcAFAmMxWkAACgkQEWhSvN91
FcCJ+xAAiniURDWOCvUbE7PudN3GpsSbFJmBVjLoXmtXqRM+/bT8Q5R5NXGw15u8
pNkBcc3348stcxrrsRtfpAVKLDHGDT33bdFx4Zo8mjbyYiRXuhdQPzghCspnygwu
d+I8Bwj+08jOvMma3/MwI628HR8RrtAPpUprEG8SAhT9zFF+1Bpy97t5GVwFjwVc
6kZ8PE9ALLSSQeSnClSsFldsO8ccufcSYORQfhQzllUNv4YR5vD8XFgvHXGRt67f
/ZuOKYDUnuQJA29NwJJsbvJfy05r6q8i4j53vzgr23bfxQv9CawIJjxfc4/kbkNM
Zf7JJAcYDgwkKhzoV0DiWPb59S0LNfAFaLUFhKBAJs6bLQBNKzx1bvZN1kytyc/8
XWTFxSxmH9VCLiMHUi8XoOPwUhH7gOrGajg0D+5mTcpa4mnm9J+eibC+69kQ7qGI
pTGxzql4MfojnGM2OTsUllA39fhOtv4Z4XNkcflor2ap5E3yVnOFhL3/CpF2I1t2
Uy4WATRxAtpwqmHY4H8CzlKXtngzuT2XcRfbysrYWM5Oolm6lg2/Yl6l6Btw0LhZ
gsJxr9NLjMyeFnm3gEy+MNjCkAGP/bMIcrRmICbEAPpJ0Er07ZWbw18N9+qsnrA0
HHjT35OlY98ALLHc5d9Dra46tCDUKa9CjIRMXfOllDPNykkBRY4=
=TrZt
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 05 Nov 2022 07:25:58 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:39:47 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.