Bug #905

Patch to use SOURCE_DATE_EPOCH instead of current date for reproducible builds

Added by Bas almost 2 years ago. Updated over 1 year ago.

Status:ClosedStart date:2016-05-15
Priority:NormalDue date:
Assignee:Paul% Done:


Target version:Candidate for next minor release
Affected version:5.x-svn Platform:Linux


In the effort the support Reproducible Builds of the GMT Debian package, support for the SOURCE_DATE_EPOCH specification has been added to the GMT buildsystem.

When the 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 today.c.

source_date_epoch.patch Magnifier (1.5 KB) Bas, 2016-05-15 09:38

honour-SOURCE_DATE_EPOCH.patch Magnifier (1.58 KB) Bas, 2016-05-18 10:45

Associated revisions

Revision 16437
Added by Paul almost 2 years ago

Added path from Bas, issue #905


#1 Updated by Paul almost 2 years ago

  • Status changed from New to Resolved
  • Assignee set to Paul
  • % Done changed from 0 to 100

Thanks, in r16437.

#2 Updated by Bas almost 2 years ago

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.

#3 Updated by Paul almost 2 years ago

Could you clarify: Should the previous patch be undone and then the new patch applied?

#4 Updated by Bas almost 2 years 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.

#5 Updated by Joaquim over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF