#1011488 stymulator: reproducible-builds: embedded build paths in various binaries

Package:
src:stymulator
Source:
stymulator
Submitter:
Vagrant Cascadian
Date:
2022-05-23 21:33:04 UTC
Severity:
normal
Tags:
#1011488#5
Date:
2022-05-23 21:30:38 UTC
From:
To:
The build path is embedded in /usr/bin/ym2wav and /usr/bin/ymplayer:

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

  /build/1st/stymulator-0.21a~dfsg/src/stsoundlib/YmUserInterface.cpp:40·(discriminator·1)
  vs.
  /build/2/stymulator-0.21a~dfsg/2nd/src/stsoundlib/YmUserInterface.cpp:40·(discriminator·1)

The attached patch fixes this by setting -ffile-prefix-map in CXXFLAGS
in debian/rules, which avoids embedding the absolute path in compiled
files.

Alternately, switching to use the default CXXFLAGS from dpkg-buildflags
(possibly through using a newer debhelper compat version) also would
include -ffile-prefix-map by default.


With this patch applied, stymulator should build reproducibly on
tests.reproducible-builds.org!


live well,
  vagrant