Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sat, 20 Aug 2022 12:31:18 +0000 (13:31 +0100)
committerGraham Inggs <ginggs@debian.org>
Sat, 20 Aug 2022 12:31:18 +0000 (13:31 +0100)
commitf894e0eb483cb049ab60a844a2266e3e2ad58cfe
tree3015f4131c274c6ce2a4fa550ed6db9673516865
parent9a10a6179882657a24b372e1f2d204a6c0b4526b
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