Patch to use SOURCE_DATE_EPOCH instead of current date for reproducible builds
|Target version:||Candidate for next minor release|
SOURCE_DATE_EPOCH environment variable is set, its value is used to set the
_today variable in
ConfigCMake.cmake instead of the
time() call in
#2 Updated by Bas about 1 year ago
- File honour-SOURCE_DATE_EPOCH.patch added
Alexis Bienvenüe submitted a different patch to support the
SOURCE_DATE_EPOCH environment variable in Debian Bug #824668 today.
It is more portable than the earlier CMake changes which rely on the
date command, it patches
cmake/modules/today.c instead which may be of interest for the Windows builds.
#4 Updated by Bas about 1 year ago
The initial patch that got merged is sufficient to support reproducible builds.
The second patch is an alternative approach, which also works on Windows without the common GNU tools available. AFAIK there is no reproducible builds initiative for Windows, so the need for the Windows support offered by the second patch is non-existent at the moment.
When reproducible builds for Windows become an issue, the second patch can be used instead of the first to support
SOURCE_DATE_EPOCH on Windows too.