Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Thu, 14 Jan 2021 20:35:41 +0000 (20:35 +0000)
committerRaspbian forward porter <root@raspbian.org>
Thu, 14 Jan 2021 20:35:41 +0000 (20:35 +0000)
commitb75b205b0482374a8b6e0d0c17ef961e7e62098e
tree001c54443453f9cd8f6ec4bb0b399bb9a7c864c6
parent5c30c251910d6206e7e87295b9b8227a73029e52
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