Debian Bug report logs - #1024282
twoftpd: reproducible-builds: buildid differences in various binaries

version graph

Package: src:twoftpd; Maintainer for src:twoftpd is Gerrit Pape <pape@smarden.org>;

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

Date: Wed, 16 Nov 2022 23:27:01 UTC

Severity: normal

Tags: patch

Fixed in version 1.42-2+rm

Done: Debian FTP Masters <ftpmaster@ftp-master.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#1024282; Package src:twoftpd. (Wed, 16 Nov 2022 23:27: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>. (Wed, 16 Nov 2022 23:27: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: twoftpd: reproducible-builds: buildid differences in various binaries
Date: Wed, 16 Nov 2022 15:22:26 -0800
[Message part 1 (text/plain, inline)]
Source: twoftpd
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The buildid differs when built from a different path:

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

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

Switching to dh and a recent debhelper compat level might also solve
this problem.

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

Thanks for maintaining twoftpd!

live well,
  vagrant
[0001-debian-rules-Add-ffile-prefix-map-to-CFLAGS-to-avoid.patch (text/x-diff, inline)]
From cecd1ef2c4696e009cb18ae2ad3661169cc34dea Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Wed, 16 Nov 2022 23:15:16 +0000
Subject: [PATCH] debian/rules: Add -ffile-prefix-map to CFLAGS to avoid
 embedding build paths.

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 4342317..4bc21ee 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@ ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
   STRIP =: nostrip
 endif
 
-CFLAGS =-g -O2 -Wall
+CFLAGS =-g -O2 -Wall -ffile-prefix-map=$(CURDIR)=.
 LDFLAGS =
 CC =gcc
 BGLIBS =/usr/lib/bglibs
-- 
2.38.1

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

Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Sat, 19 Nov 2022 15:39:14 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Sat, 19 Nov 2022 15:39:14 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 719508-done@bugs.debian.org,767305-done@bugs.debian.org,834086-done@bugs.debian.org,1024282-done@bugs.debian.org,947704-done@bugs.debian.org,
Cc: twoftpd@packages.debian.org
Subject: Bug#1024337: Removed package(s) from unstable
Date: Sat, 19 Nov 2022 15:36:56 +0000
Version: 1.42-2+rm

Dear submitter,

as the package twoftpd has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1024337

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 18 Dec 2022 07:35:27 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 11:31:47 2023; Machine Name: buxtehude

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.