Debian Bug report logs - #1020866
wrapsrv: reproducible-builds: build path embedded in /usr/bin/wrapsrv

Package: src:wrapsrv; Maintainer for src:wrapsrv is Robert S. Edmonds <edmonds@debian.org>;

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

Date: Tue, 27 Sep 2022 19:03:04 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

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, Robert S. Edmonds <edmonds@debian.org>:
Bug#1020866; Package src:wrapsrv. (Tue, 27 Sep 2022 19:03:06 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, Robert S. Edmonds <edmonds@debian.org>. (Tue, 27 Sep 2022 19:03:06 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: wrapsrv: reproducible-builds: build path embedded in /usr/bin/wrapsrv
Date: Tue, 27 Sep 2022 12:00:26 -0700
[Message part 1 (text/plain, inline)]
Source: wrapsrv
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/wrapsrv:

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

  /build/1st/wrapsrv-1.0.0/wrapsrv.c:360
  vs.
  /build/2/wrapsrv-1.0.0/2nd/wrapsrv.c:360

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

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

Thanks for maintaining wrapsrv!

live well,
  vagrant
[0001-Makefile-Pass-debug-prefix-map-to-avoid-embedding-bu.patch (text/x-diff, inline)]
From eb45d8f705f1794cf57eec2f278510b7b9a6f8e3 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 27 Sep 2022 18:50:12 +0000
Subject: [PATCH] Makefile: Pass --debug-prefix-map to avoid embedding build
 directory.

https://tests.reproducible-builds.org/debian/issues/unstable/build_path_captured_in_assembly_objects_issue.html
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index c329a2d..f0b835a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 CC = gcc
 WARN = -Wall -Wextra -Werror
-CFLAGS = -O2 -g $(WARN)
+CFLAGS = -O2 -g --debug-prefix-map=$(CURDIR)=. $(WARN)
 INCLUDE =
 LDFLAGS = -lresolv
 DESTDIR ?=
-- 
2.37.2

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

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 13:28:55 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.