Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sun, 24 Dec 2023 10:36:38 +0000 (10:36 +0000)
committerRaspbian forward porter <root@raspbian.org>
Sun, 24 Dec 2023 10:36:38 +0000 (10:36 +0000)
commitc66c3d40cf42fe273bc68285c8ca2803282baa6d
treec8f5235a962b94806bad654921b838a206a352fd
parenta06cc9a831575c6e05052741ca4f962caf5e80ae
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