Debian Bug report logs - #1020798
netkit-rsh: reproducible-builds: Embedded build paths in binaries

version graph

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

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

Date: Mon, 26 Sep 2022 21:51:02 UTC

Severity: normal

Tags: patch

Fixed in version netkit-rsh/0.17-24

Done: Holger Levsen <holger@debian.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#1020798; Package src:netkit-rsh. (Mon, 26 Sep 2022 21:51: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>. (Mon, 26 Sep 2022 21:51: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: netkit-rsh: reproducible-builds: Embedded build paths in binaries
Date: Mon, 26 Sep 2022 14:46:27 -0700
[Message part 1 (text/plain, inline)]
Source: netkit-rsh
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:

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

  /usr/sbin/in.rlogind

  /build/1st/netkit-rsh-0.17/rlogind/network.c
  vs.
  /build/2/netkit-rsh-0.17/2nd/rlogind/network.c

The attached patch to debian/rules fixes this by adding
-ffile-prefix-map to CFLAGS.

Alternately, updating to use dh and a recent debhelper compat version
might also fix this.

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

Thanks for maintaining netkit-rsh!

live well,
  vagrant
[0001-debian-rules-Add-ffile-prefix-map-to-CFLAGS-to-avoid.patch (text/x-diff, inline)]
From 6529f07eacdf749b1a5390933f8ac3a91093b664 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 26 Sep 2022 21:40:41 +0000
Subject: [PATCH] debian/rules: Add -ffile-prefix-map to CFLAGS to avoid
 embedding the build path.

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

diff --git a/debian/rules b/debian/rules
index 8049402..42ca247 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 
-export CFLAGS += -Ddebian -DFSUID_HACK -D_GNU_SOURCE
+export CFLAGS += -Ddebian -DFSUID_HACK -D_GNU_SOURCE -ffile-prefix-map=$(CURDIR)=.
 
 %:
 	dh $@ --buildsystem=cmake
-- 
2.37.2

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

Reply sent to Holger Levsen <holger@debian.org>:
You have taken responsibility. (Sat, 21 Jan 2023 23:39:05 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Sat, 21 Jan 2023 23:39:06 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1020798-close@bugs.debian.org
Subject: Bug#1020798: fixed in netkit-rsh 0.17-24
Date: Sat, 21 Jan 2023 23:35:33 +0000
Source: netkit-rsh
Source-Version: 0.17-24
Done: Holger Levsen <holger@debian.org>

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

Debian distribution maintenance software
pp.
Holger Levsen <holger@debian.org> (supplier of updated netkit-rsh 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 Jan 2023 23:52:56 +0100
Source: netkit-rsh
Architecture: source
Version: 0.17-24
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Holger Levsen <holger@debian.org>
Closes: 1020798
Changes:
 netkit-rsh (0.17-24) unstable; urgency=medium
 .
   * QA upload by the Reproducible Builds team.
   * d/rules: Add -ffile-prefix-map to CFLAGS to avoid embedding the build
     path, thanks to Vagrant Cascadian. Closes: #1020798
Checksums-Sha1:
 84f237cacc028088678eb6e6588cd90c39b97b7b 1753 netkit-rsh_0.17-24.dsc
 30ea194bdc6b25ad123cb76ce3131f91e5a618e1 23972 netkit-rsh_0.17-24.debian.tar.xz
 ef70525736f22d2607cdb2d1f2afc181e2a2892a 6690 netkit-rsh_0.17-24_source.buildinfo
Checksums-Sha256:
 3696ef44f7f3dfcccfabe473873a06896df2beb0eb3459c263fd6ab5ef6a3aea 1753 netkit-rsh_0.17-24.dsc
 fc3c82184c2069f4f586f21cee9f7958b552dd5cc1efc213289945f532b6ddaa 23972 netkit-rsh_0.17-24.debian.tar.xz
 ed3d292e90e7cf242e708d4ba280bec79dc80ec3f2c686f981458de66175a58b 6690 netkit-rsh_0.17-24_source.buildinfo
Files:
 fc1ae1915af24f32436b84eb771d660b 1753 net optional netkit-rsh_0.17-24.dsc
 ebc676e0d8b14075636cfefadec14c2b 23972 net optional netkit-rsh_0.17-24.debian.tar.xz
 24b2443a548132fc07969d51cb56f964 6690 net optional netkit-rsh_0.17-24_source.buildinfo

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

iQIzBAEBCgAdFiEEuL9UE3sJ01zwJv6dCRq4VgaaqhwFAmO/Pn0ACgkQCRq4Vgaa
qhwLdhAAqu0XJiZkOa2DqGG1AUq+OLCe8mCQZv+4RSmDxVsok+lB8wv3W6sC7bVJ
yAnKOJLb5nlk3Mty/R2YauUgdVXm4OFUdXYa2C01AUL/Dt2HBM9v0Syw92ZhJCSw
PR++t3XNws0/pSYWMRaIPVQOWx/FGAqf3zeBw7hxlFujxJfw9IY1yyzB3nIpr4Cx
n+ORgvIll8I3EPFOIBL582PEs5FHG2g6yHth4+K22p+MuPLSJBgpkATA2EHmOWOy
6vn0XrS4MYO6g4oXM/+10DFrXsk8SAw5cCXiMrzG441JOX1Go3DOi0RlVeZwv0Zp
OCbAka0CXxcRvJfJoIZgDwQGtMCuj4+t5Zl06EFn9wDqdoQRvBVxAJrACGpOaaIH
dlw43TR6K1v67lHLOBmI32zJyUQmZm1JiWVd2ocrNXOi5mzvnS2XnDdjxVScu+tW
v9crVkHy00LZlx5SmFXgx4DSSs+LNmYCbPIyn/9tHehRl3RrWwQgVoHXsa9VjGXG
cPPwxbEtwkb5jlqsfkm1TTmyo9qw/GIwxcHSxQDOHWv8lizmmh1G7piPgEB/dykm
y8wlC/gbvPl0i5tejvFpEMN/acD4kAUMl8Eh1h8FXytnMbyFBtNtbluGlAMBNFVw
CmOd2FDgulafTxJcp/IfdfS/Pz1+tMfCuURn/kN94CVAbRLYLU8=
=/Zl1
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 24 Feb 2023 07:30:08 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 10:59:30 2023; Machine Name: bembo

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.