Bug#1039493: menu: reproducible builds: embeds build path in various binaries

Vagrant Cascadian vagrant at reproducible-builds.org
Mon Jun 26 17:58:06 BST 2023


Source: menu
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Pass-ffile-prefix-map-to-CXXFLAGS-and-C.patch
Type: text/x-diff
Size: 1000 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230626/4f5bd3f8/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230626/4f5bd3f8/attachment.sig>


More information about the Reproducible-bugs mailing list