Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sun, 19 Jan 2025 13:47:51 +0000 (14:47 +0100)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Sun, 19 Jan 2025 13:47:51 +0000 (14:47 +0100)
commitaedc4fe8a6ec454482e3d879b1d327cab3f12cce
treeb3cf0ade76e6fe11eb26ba832a9d8ee8b6fb9772
parente399c437513c7bf6b12dce75195c56734572386b
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