Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sat, 13 Jul 2024 15:35:36 +0000 (17:35 +0200)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Sat, 13 Jul 2024 15:35:36 +0000 (17:35 +0200)
commit3e603c056f5da3d4bc2cbdcde7a20fb6ac50dce6
tree43b0597e55cf9e6236b18ddc39aba9fb09cb4f7a
parentaf0fe53dadbf80554c00a645d1f61fa3166128d2
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