Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Mon, 18 Dec 2023 22:01:08 +0000 (23:01 +0100)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Mon, 18 Dec 2023 22:01:08 +0000 (23:01 +0100)
commitac457d51d0f3f0d46bfa74e643d4afb2e06803ab
treef657594c2bf02ecf286bd5678ccac1874e0879ec
parent54aedfc3383023458fec2eee8f2d7d96a6cd9d7e
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