PerryWerneck / pw3270

3270 Emulator for gtk
https://softwarepublico.gov.br/social/pw3270/
GNU Lesser General Public License v3.0
60 stars 12 forks source link

Allow to override build date with SOURCE_DATE_EPOCH #2

Closed bmwiedemann closed 4 years ago

bmwiedemann commented 4 years ago

Allow to override build date with SOURCE_DATE_EPOCH in order to make builds reproducible. 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.

Also switch to UTC to be independent of timezone.

Note: This date call is designed to work with different flavors of date (GNU, BSD and others). If only GNU (Linux) support is needed, the patch can be simplified.

This PR was done while working on reproducible builds for openSUSE.

ghost commented 4 years ago

DeepCode Report (#1ca196)

DeepCode analyzed this pull request. There are no new issues.