Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Mon, 4 Sep 2023 20:43:35 +0000 (21:43 +0100)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Mon, 4 Sep 2023 20:43:35 +0000 (21:43 +0100)
commit88a468565a88db049efc8c6723e83a3c0d4a2608
treed3ad4cf659383702df5913c81e6016bf9f6d9868
parentaa903e6781cb792a574304b4c55573ab4ef453fb
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