Bug#977168: west-chamber: reproducible builds: Generated Makefiles contain variable information

Vagrant Cascadian vagrant at reproducible-builds.org
Fri Dec 11 23:13:50 GMT 2020


Source: west-chamber
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath usrmerge environment kernel
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

The files Makefile, extensions/Makefile and Makefile.iptrules would
need to be regenerated from the corresponding Makefile.am or
Makefile.in files, as they contain specific information about the
build environment which may not match the environment of the system in
which the Makefile will be executed from the installed system:

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

Some of the variations include embedded build paths, shell variable,
kernel version, binary locations on usrmerge vs. non-usrmerge systems.


The attached patch fixes this by not including these Makefiles from
debian/rules.

Please test to make sure this does not break the functioning of the
package, as I have only tested that it builds when applied!

If these files do need to be present for some reason, another option
might be to sanitize these Makefiles from debian/rules. Passing various
things to configure can help with this (e.g. GREP=/bin/grep,
SHELL=/bin/sh, etc.) though the build paths would need to be removed
manually, most likely.


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-debian-rules-Do-not-install-generated-Makefiles.patch
Type: text/x-diff
Size: 2167 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20201211/39866f05/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/20201211/39866f05/attachment.sig>


More information about the Reproducible-bugs mailing list