[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reproducible tar archives
From: |
Simon Josefsson |
Subject: |
Re: reproducible tar archives |
Date: |
Fri, 13 Dec 2024 09:13:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Janneke Nieuwenhuizen <janneke@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
- reproducible tar archives, Simon Josefsson, 2024/12/12
- Re: reproducible tar archives, Bruno Haible, 2024/12/12
- Re: reproducible tar archives, Simon Josefsson, 2024/12/12
- Re: reproducible tar archives, Paul Eggert, 2024/12/13
- Re: reproducible tar archives, Simon Josefsson, 2024/12/13
- Re: reproducible tar archives, Bruno Haible, 2024/12/13
- Re: reproducible tar archives, Paul Eggert, 2024/12/13
- Re: reproducible tar archives, Paul Eggert, 2024/12/13
Re: reproducible tar archives, Janneke Nieuwenhuizen, 2024/12/13
- Re: reproducible tar archives,
Simon Josefsson <=
Re: reproducible built files, Bruno Haible, 2024/12/26
- Re: reproducible built files, Simon Josefsson, 2024/12/26
- Re: reproducible built files, Bruno Haible, 2024/12/28
- Re: reproducible built files, Simon Josefsson, 2024/12/28
- Re: reproducible built files, Bruno Haible, 2024/12/28
- Re: reproducible built files, Simon Josefsson, 2024/12/28
- Re: reproducible built files, Paul Eggert, 2024/12/28
- Re: reproducible built files, Simon Josefsson, 2024/12/28
- Re: reproducible built files, Paul Eggert, 2024/12/28
- Re: reproducible built files, Simon Josefsson, 2024/12/28