Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Thu, 30 Mar 2023 19:31:30 +0000 (20:31 +0100)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Thu, 30 Mar 2023 19:31:30 +0000 (20:31 +0100)
commitda5aa199cb92aa70ef74a91b5fd595c1e7627aa3
tree7442538ac2bd05c95c7d2449ec01720ea4d777b9
parentbebf48350e91c4067ac9f5d2cfbe6f0a40dfb8b7
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