Bug#1007184: xrt: reproducible builds: Timestamps embedded in version.h

Vagrant Cascadian vagrant at reproducible-builds.org
Sat Mar 12 22:16:59 GMT 2022


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

The build timestamp is embedded in /usr/include/xrt/version.h and
various binaries that make use of this include file:

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

  static·const·char·xrt_build_version_date_rfc[]·=·"Thu,·10·Mar·2022·00:03:39·-1200";
  vs.
  static·const·char·xrt_build_version_date_rfc[]·=·"Thu,·13·Apr·2023·08:35:26·+1400";
 	 
  static·const·char·xrt_build_version_date[]·=·"2022-01-19·15:01:01";
  vs.
  static·const·char·xrt_build_version_date[]·=·"2022-01-20·17:01:01";


The attached patch fixes this by using cmake's TIMESTAMP feature for
both, and passing the UTC argument for both strings.


With this patch applied, xrt should build reproducibly on
tests.reproducible-builds.org once it migrates to bookworm/testing!

In unstable and experimental, it is additionally affected by varied
build paths.


Thanks for maintaining xrt!


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-src-CMake-version.cmake-Consistently-use-UTC-timezon.patch
Type: text/x-diff
Size: 1255 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220312/7669dcb3/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/20220312/7669dcb3/attachment.sig>


More information about the Reproducible-bugs mailing list