Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Tue, 21 Sep 2021 19:22:17 +0000 (20:22 +0100)
committerRaspbian forward porter <root@raspbian.org>
Tue, 21 Sep 2021 19:22:17 +0000 (20:22 +0100)
commitf39ed8b0e8170def3cbebb1fb0459036ae3b5c05
tree420e2d37b33c077323b3f3e3bdd7b3c7d207a72d
parent7c3e8abe95a0cd4e38ed3913720f82f4b0409280
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