Page MenuHome GnuPG

build: Allow to override build date in man page
AbandonedPublic

Authored by bmwiedemann on Jul 5 2017, 6:10 AM.

Details

Summary

Allow to override build date in man page
in order to allow for reproducible builds.
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.

Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>

Test Plan

Build package and check date in gpg-error-config.1 - should be current day.

Build package again with
export SOURCE_DATE_EPOCH=1490000000
Now date in gpg-error-config.1 should be 2017-03-20

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

A better way to to this is my modifying yat2m. I just did this.

Also yat2m will now be installed with libgpg-error and gnupg prefers an installed yat2m over its
own copy. To make things easier I also changed the yat2m included in gnupg.

Thanks for this suggestion.

In D436#3190, @werner wrote:

A better way to to this is my modifying yat2m. I just did this.

Thanks for your work.

I would like to review and test that patch but I cannot find it in git master (yet?)

Found https://dev.gnupg.org/rE5494a5728418938d2e42158bb646b07124184e64 - code looks very nice and my rebuild tests also show the expected results.

On Wed, 5 Jul 2017 11:42, noreply@dev.gnupg.org said:

I would like to review and test that patch but I cannot find it in git master (yet?)

dev.gnupg.org is just a mirror of the canonical location
git://git.gnupg.org thus it takes some time until it catches up.

Better check commit signatures than to rely on https ;-)

Salam-Shalom,

 Werner

- {F162871, layout=link}