[gnutls-devel] cligen | Allow to override build date with SOURCE_DATE_EPOCH (!5)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Jul 4 09:01:39 CEST 2024



Bernhard M_ Wiedemann created a merge request: https://gitlab.com/gnutls/cligen/-/merge_requests/5

Project:Branches: bmwiedemann/cligen:date to gnutls/cligen:main
Author:   Bernhard M_ Wiedemann




Allow to override build date with `SOURCE_DATE_EPOCH`
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 use UTC/`gmtime` to be independent of timezone.

Without this patch, build results had such a diff:
```diff
--- zcat RPMS.1/usr/share/man/man1/gnutls-cli.1.gz
+++ zcat RPMS.2/usr/share/man/man1/gnutls-cli.1.gz
[...]
-.TH gnutls-cli 1 "18 Feb 2023" "3.7.9" "User Commands"
+.TH gnutls-cli 1 "26 Mar 2024" "3.7.9" "User Commands"
```

This patch was done while working on reproducible builds for openSUSE, sponsored by the NLnet NGI0 fund.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/cligen/-/merge_requests/5
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20240704/93bbe60e/attachment.html>


More information about the Gnutls-devel mailing list