Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Fri, 5 Jan 2024 07:40:08 +0000 (08:40 +0100)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Fri, 5 Jan 2024 07:40:08 +0000 (08:40 +0100)
commit5142abb52f3b761c15c4fd419065eefd906127eb
tree23d07bd7a9be4718e77ef961469e778f28dd3e63
parent9d771ddf609251bf5ec4100715a3e24ba44cb0cb
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas