Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Fri, 17 Mar 2023 12:45:28 +0000 (12:45 +0000)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Fri, 17 Mar 2023 12:45:28 +0000 (12:45 +0000)
commit5ed68e5c70ea5856775a4597db89ff793ae5d6cf
tree15f77ed7f587cba71aa0999d6de92948ae982fbe
parenta259bd63e149a57070a7927b6b1a27a7087b3a78
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