Enable reproducible builds of FPC.
<h3><details><summary>Original Reporter info from Mantis: <small>paul.gevers</small></summary><small>
- **Reporter name:** Paul Gevers
</small></details></h3>
## Description:
Reproducible builds¹ requires that the build time stamp is not recorded in binaries. In FPC they are build in via the $INCLUDE %DATE% directive which calls getdatestr in globals.pas. To enable reproducible builds it would be nice if it would honor the SOURCE_DATE_EPOCH environment variable².
To not depend on the dateutil unit, we included the required code from that unit in this patch, which we successfully apply in Debian³.
¹ https://reproducible-builds.org/<br/>
² https://reproducible-builds.org/specs/source-date-epoch/<br/>
³ https://reproducible.debian.net/rb-pkg/experimental/amd64/fpc.html
## Mantis conversion info:
- **Mantis ID:** 29325
- **Fixed in version:** 3.3.1
- **Fixed in revision:** 47133 (#201281ae2a98d79e9fc49ec4a3e5b35e7d757027)
- **Monitored by:** » mazen (Abou Al Montacir), » paul.gevers (Paul Gevers), » Vincent (Vincent Snijders), » @PascalDragon (Sven Barth)
issue