Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Thu, 16 Sep 2021 13:41:58 +0000 (14:41 +0100)
committerPaul Gevers <elbrus@debian.org>
Thu, 16 Sep 2021 13:41:58 +0000 (14:41 +0100)
commit574a0f205644264c4a4aa5a1ee45de501b53ad0c
tree7d17dd03159980336391d683b692a8914eca519f
parentab9aefd6470281ee8dc4397dcbe258680e44c0c2
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