Debian Bug report logs - #1020656
nvram-wakeup: reproducible-builds: Embedded build path in /usr/sbin/nvram-wakeup

Package: src:nvram-wakeup; Maintainer for src:nvram-wakeup is Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org>;

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

Date: Sat, 24 Sep 2022 21:24:01 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, Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org>:
Bug#1020656; Package src:nvram-wakeup. (Sat, 24 Sep 2022 21:24: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 VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org>. (Sat, 24 Sep 2022 21:24: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: nvram-wakeup: reproducible-builds: Embedded build path in /usr/sbin/nvram-wakeup
Date: Sat, 24 Sep 2022 14:21:49 -0700
[Message part 1 (text/plain, inline)]
Source: nvram-wakeup
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/sbin/nvram-wakeup:

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

  /build/1st/nvram-wakeup-1.1/nvram-wakeup.c:90
  vs.
  /build/2/nvram-wakeup-1.1/2nd/nvram-wakeup.c:90

The attached patch fixes this by passing the -ffile-prefix-map argument
via CFLAGS in the upstream Makefile, and should be added to
debian/patches.


With this patch applied nvram-wakeup should build reproducibly on
tests.reproducible-builds.org!


Thanks for maintaining nvram-wakeup!


live well,
  vagrant
[makefile-add--ffile-prefix-map-to-cflags.patch (text/x-diff, inline)]
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 24 Sep 2022 21:13:09 +0000
X-Dgit-Generated: 1.1-4 756e5887d32bec866c709eed23134f870d35f931
Subject: Makefile: Add -ffile-prefix-map to CFLAGS to avoid embedding build

path.

https://reproducible-builds.org/docs/build-path/

---

--- nvram-wakeup-1.1.orig/Makefile
+++ nvram-wakeup-1.1/Makefile
@@ -42,6 +42,7 @@ VERSION = $(shell sed -ne '/define VERSI
 CC = gcc
 DEFS = -D_GNU_SOURCE
 CFLAGS = -O2 -Wall -Wstrict-prototypes -g -pedantic $(DEFS)
+CFLAGS += -ffile-prefix-map=$(CURDIR)=.
 INSTALL = install
 INSTALL_STRIP = $(INSTALL) -s
 
[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:23 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.