1020882">

Debian Bug report logs - #1020882
yaku-ns: reproducible-builds: Embedded build paths in binaries

version graph

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

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

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

Severity: normal

Tags: patch

Fixed in version yaku-ns/0.2-3

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#1020882; Package src:yaku-ns. (Tue, 27 Sep 2022 22:27: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, Gürkan Myczko <tar@debian.org>. (Tue, 27 Sep 2022 22:27: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: yaku-ns: reproducible-builds: Embedded build paths in binaries
Date: Tue, 27 Sep 2022 15:24:31 -0700
[Message part 1 (text/plain, inline)]
Source: yaku-ns
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 various binaries or triggers differences
in buildid:

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

  /usr/sbin/yaku-getzone

  /build/1st/yaku-ns-0.2/getzone.c:42
  vs.
  /build/2/yaku-ns-0.2/2nd/getzone.c:42

The attached patch to the upstream Makefile fixes this by adding
-ffile-prefix-map to CFLAGS.

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

Thanks for maintaining yaku-ns!

live well,
  vagrant
[0001-Makefile-Add-ffile-prefix-map-to-CFLAGS-to-avoid-emb.patch (text/x-diff, inline)]
From d771542268dfb09c19cb5da8ca19a28cc39022e4 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 27 Sep 2022 22:21:47 +0000
Subject: [PATCH] Makefile: Add -ffile-prefix-map to CFLAGS to avoid embedding
 build paths.

https://reproducible-builds.org/docs/build-path/
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 4b00ae3..c63e301 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@
 .SUFFIXES: .c .o
 
 SHELL= /bin/sh
-CFLAGS= -W -Wall -O2 -g
+CFLAGS= -W -Wall -O2 -g -ffile-prefix-map=$(CURDIR)=.
 AR=/usr/bin/ar
 
 INSTALL= /usr/bin/install
-- 
2.37.2

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

Reply sent to Gürkan Myczko <tar@debian.org>:
You have taken responsibility. (Wed, 05 Oct 2022 08:42:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Wed, 05 Oct 2022 08:42:03 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1020882-close@bugs.debian.org
Subject: Bug#1020882: fixed in yaku-ns 0.2-3
Date: Wed, 05 Oct 2022 08:39:08 +0000
Source: yaku-ns
Source-Version: 0.2-3
Done: Gürkan Myczko <tar@debian.org>

We believe that the bug you reported is fixed in the latest version of
yaku-ns, 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 1020882@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 yaku-ns 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: Wed, 05 Oct 2022 09:55:17 +0200
Source: yaku-ns
Architecture: source
Version: 0.2-3
Distribution: unstable
Urgency: medium
Maintainer: Gürkan Myczko <tar@debian.org>
Changed-By: Gürkan Myczko <tar@debian.org>
Closes: 1020882
Changes:
 yaku-ns (0.2-3) unstable; urgency=medium
 .
   * Apply patch to fix embedded build paths. Thanks Vagrant
     Cascadian. (Closes: #1020882)
Checksums-Sha1:
 ccad6fc570b430916f5c6577527d03569be7f51a 1684 yaku-ns_0.2-3.dsc
 43ea3298bdb8b29a40a89f464d3b4ae4537e1e23 7892 yaku-ns_0.2-3.debian.tar.xz
 e44ac6f0eefa1ec00304e4c82116cd0bcc4b6e71 7397 yaku-ns_0.2-3_source.buildinfo
Checksums-Sha256:
 994420feb9f0cde515ea5844e9b9700a8e465035c8d22c10c476a7b7e9d37eae 1684 yaku-ns_0.2-3.dsc
 ff311c7c4061ecd98e811e3779cf08aa6b84be9b2cbf03d9a9e7f453a76b70cb 7892 yaku-ns_0.2-3.debian.tar.xz
 39d73b792d265df84945a91883668ced6510073428b940cf8eb4c3913e654ea9 7397 yaku-ns_0.2-3_source.buildinfo
Files:
 839c9948a7dc481a0429e36b79752f8a 1684 net optional yaku-ns_0.2-3.dsc
 4b18b6c94d0ad55145b86410ede5acf0 7892 net optional yaku-ns_0.2-3.debian.tar.xz
 eb8f3dd2f5eea876b5c165786ca7cf44 7397 net optional yaku-ns_0.2-3_source.buildinfo

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

iQIzBAEBCAAdFiEEtgob82PcExn/Co6JEWhSvN91FcAFAmM9ObUACgkQEWhSvN91
FcDOkw/8CmnuK4weBwO71JOBnAu2rwyFdomtTT/SQK5Lv0mlCz6llC3j6dtpYJdj
/fU869NNYoMA1jOr5tGYF9HjWmPx/NVzS1vJqBhPiiAnq3Q9rVQZLP93VvI6MqzP
Gn+b5+yMphkSBEJVyMKWhDaGwT8LQv4MuKmZ9U4c/9S6QWzva84sej1wyGePKmWl
3/SzkEBmoYqro+BYYjJYHlkxMG4QFl1ZvX/mjk/suWv+fHYW5gNdQrHsuYWQ97Zo
5p4eAioGMNAyX+bAmPbCwooNFQKSGqfaKqjEyNOkofOijsE67WoqMO43JZs503Ci
9STZxD1r9sXKjIIaNkOTvOROm9cg8pSkxwpbbR+B1CIHYxixvwLppA3HoZ2FRBeh
J5a/a25fZfd9Rg8kFw8BJFwpzIprSo4PIXmkuxOlm+9UUnp9EqzFIZVAH2cJwdkK
Hvgyc8C/xle4ZjiXeVMwcs77PP84hMcKQvjeEKsSlcOYOyeVQEeUMJjhW+OZd+FT
0U8iWe4Bs7+JH3rfgGUkXFHOplD88/EP5Hfq4kQKF9GrYZfZpa6qzMavclGI0pk+
SMA2c4lTIzIrFfG/cntHIl/Da6yRUKZ3SqHR40Vq6qLjcubnl0UocKeFcU/e2izg
KexVYFaXEUYGn9/uHc1k4dSf8LVt+mAwH3tJ9t5qhmDABFSeeHA=
=n7wi
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 07 Nov 2022 07:28: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:32:13 2025; Machine Name: bembo

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.