Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Mon, 25 Jan 2021 21:36:28 +0000 (21:36 +0000)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Mon, 25 Jan 2021 21:36:28 +0000 (21:36 +0000)
commiteb25538a52f1ded0eecd120f32829c12a959c3f0
tree070390ca2bccaef1665fc191495b58158b242646
parenta2aca9c25b6a61a41fc0b1e30c59886c5dbb6da6
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