[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1024282: marked as done (twoftpd: reproducible-builds: buildid differences in various binaries)



Your message dated Sat, 19 Nov 2022 15:36:56 +0000
with message-id <[🔎] E1owPto-004QOh-2Z@fasolo.debian.org>
and subject line Bug#1024337: Removed package(s) from unstable
has caused the Debian Bug report #1024282,
regarding twoftpd: reproducible-builds: buildid differences in various binaries
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1024282: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024282
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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
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

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
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)

--- End Message ---

Reply to: