Enable reproducible builds of FPC.
Original Reporter info from Mantis: paul.gevers
-
Reporter name: Paul Gevers
Original Reporter info from Mantis: paul.gevers
- Reporter name: Paul Gevers
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/
² https://reproducible-builds.org/specs/source-date-epoch/
³ 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 (#201281ae)
- Monitored by: » mazen (Abou Al Montacir), » paul.gevers (Paul Gevers), » Vincent (Vincent Snijders), » @PascalDragon (Sven Barth)