Bug#1023960: libcgicc: reproducible-builds: build path embedded in /usr/bin/cgicc-config

Vagrant Cascadian vagrant at reproducible-builds.org
Sun Nov 13 08:10:42 GMT 2022


Source: libcgicc
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 /usr/bin/cgicc-config:

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

  cxxflags="-Wall·-W·-pedantic·-g·-O2·-ffile-prefix-map=/build/1st/libcgicc-3.2.19=. ...
  vs.
  cxxflags="-Wall·-W·-pedantic·-g·-O2·-ffile-prefix-map=/build/2/libcgicc-3.2.19/2nd=. ...

The attached patch to debian/rules fixes this by updating the
dh_auto_install override to strip the recorded -ffile-prefix-map
compiler flag from "cgicc-config", as this embeds the build path (it
previously already also stripped the related -fdebug-prefix-map
argument).

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

Thanks for maintaining libcgicc!

live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Strip-ffile-prefix-map-from-cgicc-confi.patch
Type: text/x-diff
Size: 1243 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20221113/3162cff9/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/20221113/3162cff9/attachment.sig>


More information about the Reproducible-bugs mailing list