Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sun, 17 May 2026 11:31:42 +0000 (12:31 +0100)
committerPeter Blackman <peterb@debian.org>
Sun, 17 May 2026 11:31:42 +0000 (12:31 +0100)
commit44d4da4d0593981548a5f96bca5c20729ff673ac
tree400a8ca3cd0e376c141be9f2be3f081841391f06
parenta50d4f8e1b3edde3c1e9b8a8392bf64e84def507
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