Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Fri, 7 Jun 2024 22:47:33 +0000 (00:47 +0200)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Fri, 7 Jun 2024 22:47:33 +0000 (00:47 +0200)
commitf4ec43b6af817fbd91a932da3a324d8c5da1fbe3
treef3404f083f9512a814e501b1a1f2259de0b68b46
parent84ccb0528da0747f596f40342c943ab77d960830
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