charybdis-ircd / charybdis

Scalable IRCv3.2 server for large, community-oriented networks
GNU General Public License v2.0
231 stars 102 forks source link

Set EXTERNAL_BUILD_TIMESTAMP from SOURCE_DATE_EPOCH #297

Closed bmwiedemann closed 4 years ago

bmwiedemann commented 4 years ago

Set EXTERNAL_BUILD_TIMESTAMP from SOURCE_DATE_EPOCH to make the package build reproducible by default without everyone having to discover the custom variable.

See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable.

This code assigns the plain integer to keep the code simple. Otherwise we would have to deal with differences between GNU date and BSD date or include extra build deps like perl or python.