On 2022-11-19, Paul Wise wrote:
> On Fri, 18 Nov 2022 10:44:29 -0800 Vagrant Cascadian wrote:
>
>> -         "Built at" << BUILD_TIMESTAMP << "on" << CMAKE_HOST_SYSTEM << 
>> "for" << CMAKE_SYSTEM << "with" <<
>> +         "Built at" << BUILD_TIMESTAMP <<
>
> Wouldn't it be better to just remove this line entirely, since with
> reproducible builds, the "build timestamp" will always be the same,
> so isn't really a build timestamp but a source code change timestamp?

That is a reasonable argument! There are no timestamps quite like no
timestamps... definitely preferred for reproducible builds to remove the
timestamps entirely if possible!

For a debian package, the version of the installed package is usually
known, so the packaging changelog, https://buildd.debian.org, .buildinfo
file, etc. can be used to get various relevent timestamps.

That said, I do not know exactly how this is used in the code, so making
it empty or non-existent would require further verification, and at
least it seems to respect SOURCE_DATE_EPOCH for the moment for a
deterministic timestamp.


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature

Reply via email to