Bug#1029303: fiat-ecmwf: reproducible-builds: timestamps and kernel version embeded in /usr/bin/fiat

Vagrant Cascadian vagrant at reproducible-builds.org
Fri Jan 20 23:09:28 GMT 2023


Source: fiat-ecmwf
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps kernel
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

The timestamp and kernel version is embedded in /usr/bin/fiat:

  https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/fiat-ecmwf.html

  echo·"··timestamp·······:·20240111001119"
  vs.
  echo·"··timestamp·······:·20221209195227"

  echo·"··op.·system······:·Linux-6.0.0-0.deb11.2-amd64·(linux.64)"
  vs.
  echo·"··op.·system······:·Linux-5.10.0-19-amd64·(linux.64)"

The attached two patches fix this by using CMAKE_SYSTEM_NAME instead of
CMAKE_SYSTEM, and using CMake's timestamp function for the build date,
which supports a consistent timestamp if the SOURCE_DATE_EPOCH
environment variable is set.

According to my local tests, with these patches applied fiat-ecmwf should
build reproducibly on tests.reproducible-builds.org once the package
migrates to bookworm/testing!

Unfortunately, there are other outstanding issues with build paths,
which are tested in unstable and experimental.

Thanks for maintaining fiat-ecmwf!

live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-src-programs-fiat.in-Avoid-embedding-the-running-ker.patch
Type: text/x-diff
Size: 1167 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230120/6c969335/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Pass-BUILD_TIMESTAMP-via-CMakeLists.txt-and-use-in-f.patch
Type: text/x-diff
Size: 1636 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230120/6c969335/attachment-0003.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/20230120/6c969335/attachment-0001.sig>


More information about the Reproducible-bugs mailing list