Bug#977003: blitz++: reproducible builds: Embeded kernel version and hostname in bzconfig.h

Vagrant Cascadian vagrant at reproducible-builds.org
Wed Dec 9 22:00:57 GMT 2020


Source: blitz++
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: uname hostname
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

The file /usr/include/blitz/gnu/bzconfig.h contains the running kernel
version and hostname of the system:

  https://tests.reproducible-builds.org/debian/issues/captures_kernel_version_issue.html

  425 	#define·BZ__os_name·"Linux·ionos1-amd64·4.19.0-13-amd64·#1·SMP·Debian·4.19.160-2·(2020-11-28)·x86_64·GNU/Linux"·

  425 	#define·BZ__os_name·"Linux·i-capture-the-hostname·5.9.0-0.bpo.2-amd64·#1·SMP·Debian·5.9.6-1~bpo10+1·(2020-11-19)·x86_64·GNU/Linux"·

The attached patch fixes this by using dpkg-architecture's multiarch
value instead of using "uname -a".  It looks like this is just data
embedded in the built bzconfig.h file, but I do not know if this results
in other issues, so someone more familiar with blitz++ should test that
the change is valid.


This also depends on the previously submitted patch for timestamps,
although would be easy to refactor it independently if for some reason
the timestamp patch could not be applied.

With both patches applied blitz++ should build reproducibly once it
reaches bullseye where the build path is not varied between builds,
although unstable also varies the build path which results in additional
issues.


Thanks for maintaining blitz++


live well,
  vagrant

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-debian-patches-Set-OS-using-dpkg-architectue-multiar.patch
Type: text/x-diff
Size: 2239 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20201209/2700c16e/attachment-0001.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/debian-science-maintainers/attachments/20201209/2700c16e/attachment-0001.sig>


More information about the debian-science-maintainers mailing list