Your message dated Sun, 23 Jul 2023 21:30:17 +0000
with message-id <[email protected]>
and subject line Bug#1039493: fixed in menu 2.1.50
has caused the Debian Bug report #1039493,
regarding menu: reproducible builds: embeds build path 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 [email protected]
immediately.)


-- 
1039493: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039493
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: menu
Severity: normal
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]

The build path is embedded in various binaries:

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

  /usr/bin/install-menu

  /build/1st/menu-2.1.49/install-menu/install-menu.cc:126·(discriminator·1)
  vs.
  /build/2/menu-2.1.49/2nd/install-menu/install-menu.cc:126·(discriminator·1)

The attached patch to debian/rules fixes this by passing 
-ffile-prefix-map via CXXFLAGS and CFLAGS.

An alternate approach might be to use the default flags from
dpkg-buildflags.

According to my local tests, this should fix the build path issue,
although there is an outstanding timestamp issue on
tests.reproducible-builds.org that I am unable to reproduce locally.

Thanks for maintaining menu!

live well,
  vagrant
From ca80c2ba4f98b86241d564808980159e2f464b1a Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <[email protected]>
Date: Mon, 26 Jun 2023 09:02:01 -0700
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map to CXXFLAGS and CFLAGS.

This avoids embedding the build paths in the binaries.

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

diff --git a/debian/rules b/debian/rules
index 93fd473..c434184 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,8 +13,8 @@ DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_HOST_MULTIARCH  ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
-CXXFLAGS = -g -Wall
-CFLAGS = -g -Wall
+CXXFLAGS = -g -Wall -ffile-prefix-map=$(CURDIR)=.
+CFLAGS = -g -Wall -ffile-prefix-map=$(CURDIR)=.
 LDFLAGS = -Wl,-z,relro
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-- 
2.39.2

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: menu
Source-Version: 2.1.50
Done: Bill Allombert <[email protected]>

We believe that the bug you reported is fixed in the latest version of
menu, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bill Allombert <[email protected]> (supplier of updated menu 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 23 Jul 2023 21:02:23 +0200
Source: menu
Architecture: source
Version: 2.1.50
Distribution: unstable
Urgency: medium
Maintainer: Bill Allombert <[email protected]>
Changed-By: Bill Allombert <[email protected]>
Closes: 1039493 1039500
Changes:
 menu (2.1.50) unstable; urgency=medium
 .
   * debian/rules:
     - CFLAGS: use -ffile-prefix-map for reproducible build. Closes: #1039493
       Thanks Vagrant Cascadian.
   * debian/control, debian/rules: Set Rules-Requires-Root: no
   * debian/control: Bump Standards-Version to 4.6.2.
   * debian/copyright: update
   * doc/Makefile.am:
     - use gzip --no-name. Closes: #1039500.  Thanks Vagrant Cascadian.
   * update-menus/exceptions.h, install-menu/hints.h:
     - fix compiler warning
Checksums-Sha1:
 a96eea1158b468af04ca67a3b54715b4a6bbfd20 1540 menu_2.1.50.dsc
 4d010d63d929c6887519744811866e3290ec9bf1 371404 menu_2.1.50.tar.xz
 3bf46c89e123ab4f6254983ea1b8ff0d11b00531 6656 menu_2.1.50_source.buildinfo
Checksums-Sha256:
 b164462317239f3c47ab022ea6197b1446126c8be966aab941bd4dece31e3cfb 1540 
menu_2.1.50.dsc
 30388861a80685a4d6ba50c7e72e7322efac72e4bd34dc89d5adc9090f54394a 371404 
menu_2.1.50.tar.xz
 d589c014a445ce5f846e281fd63794021be0919015b036b4e72aa7415698d3e7 6656 
menu_2.1.50_source.buildinfo
Files:
 98a021beea2b63cf059eebb7015b9417 1540 admin optional menu_2.1.50.dsc
 aff766816ad322a9505f6b28fd5fe658 371404 admin optional menu_2.1.50.tar.xz
 149d6aac0fdf67e758ea2a40f46d18a7 6656 admin optional 
menu_2.1.50_source.buildinfo

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

iQIzBAEBCgAdFiEEQgKOpASi6dgKxFMUjw58K0Ui44cFAmS9jSgACgkQjw58K0Ui
44cvtQ//YtvlLoq7hsF2zFhlEIafjP7GVHOAEpM2ICpfwJtzh8zfwAD97zXS5NOp
KketxH1eteKiJc7HGz5uZQ2crJUcNPn0D/ni1iJZAzxH/Qm/3SuJDm+NK+u+u3kQ
xkUs4Se6KT8LH3J7IyD6zLtfYlgcrU+r+mGFyewtH0cgobFNRrIpoXXPu0P3oAw4
6Pfqi3dkTCs42Ra1svpxs1vvBsGfSL6pBKccomnts899LfN1DQrl3MSYnlTYgCia
fp4WoWa4PjKpN5HFTETjZZFLtsNxO7Wh2pO+qcRp1wJbLYaBI46v7NXJwCwSoTT7
d+35pBEzW95llAE07yg7ljnsv1QJwBeqDtyw7l/6rxoJdnc77UK4S5xbNSCmD7LQ
/aO1LV5b3NFnwON3BXKc3fKyssMYxMlzb13XH0NWOnY8ow8j/AqqPO9crhFhYfwV
ZFyKUtOevY5pRw58YJQJKv/m3CTcLm63KP+EHYBY6KbQ4udhz2JcPEXC8boRm0ab
Cjr7ODtALZrZecWQPLd3pfdDm1Rrjbd9v/R1B78Yz6vLiax4aWH5n/f31YlhVJgE
EZOacJhov5kBbG/iPeVq2NkSdgKSS6BRoaiubu6U3HteFyD0JDOCK78NIGtIGZ05
Z7j/o4SI2DgtYCgfufD3r0dyHaah/hPQpbH6S2qWBPpM03Sf3/Q=
=yK+o
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to