Janneke Nieuwenhuizen <jann...@gnu.org> writes: > Simon Josefsson via Gnulib discussion list writes: > >> We have code to make release tar archives reproducible: > > Nice! > > We finally had an effort this year to make the Guix source tarball > reproducible
This has been the main inspiration and reference for me, thank you! > To get po to generate reproducible required hacking an xgettext script. > > https://git.savannah.gnu.org/cgit/guix.git/tree/build-aux/xgettext.scm?id=6c63c366776643e5831c50a2b7e29bad93273327 I'm using a dist-hook for the POT-Creation-Date problem in libidn: https://git.savannah.gnu.org/gitweb/?p=libidn.git;a=blobdiff;f=Makefile.am;h=ba20ac175079f8c82d3c69ce5c3fbcaaf90c0a1e;hp=84d954b2209efe5cf9e2094c16ff9cc43a806940;hb=504caad385a7224f1c983308f2415d06f8449406;hpb=eb36b9801c9297e95da3e22044f976634ad10903 +dist-hook: pot-CreationDate-to-mtime-NEWS +.PHONY: pot-CreationDate-to-mtime-NEWS +pot-CreationDate-to-mtime-NEWS: mtime-NEWS-to-git-HEAD + $(AM_V_GEN)$(SED) -e 's,POT-Creation-Date: .*\\n",POT-Creation-Date: '"$$(env LC_ALL=C stat --format=%y $(srcdir)/NEWS | cut -c1-16,31-)"'\\n",' < $(distdir)/po/$(PACKAGE).pot > $@.tmp + $(AM_V_at)if cmp $@.tmp $(distdir)/po/$(PACKAGE).pot; then \ + rm -f $@.tmp; else mv $@.tmp $(distdir)/po/$(PACKAGE).pot; fi + -$(AM_V_at)cmp $(srcdir)/po/$(PACKAGE).pot \ + $(distdir)/po/$(PACKAGE).pot || \ + cp $(distdir)/po/$(PACKAGE).pot \ + $(srcdir)/po/$(PACKAGE).pot + It depends on my hack to set mtime of NEWS to last git commit. This is not released, however. /Simon
signature.asc
Description: PGP signature