Bug#1029227: ectrans: reproducible-builds: timestamps and kernel version embeded in /usr/bin/ectrans
Vagrant Cascadian
vagrant at reproducible-builds.org
Fri Jan 20 02:17:48 GMT 2023
Source: ectrans
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/ectrans:
https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/ectrans.html
echo·"··timestamp·······:·20240111001706"
vs.
echo·"··timestamp·······:·20221209195542"
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 ectrans 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 ectrans!
live well,
vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-src-programs-ectrans.in-Avoid-embedding-the-running-.patch
Type: text/x-diff
Size: 1185 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230119/b20d8bb5/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Pass-BUILD_TIMESTAMP-via-CMakeLists.txt-and-use-in-e.patch
Type: text/x-diff
Size: 1651 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230119/b20d8bb5/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/reproducible-bugs/attachments/20230119/b20d8bb5/attachment.sig>
More information about the Reproducible-bugs
mailing list