]> Savannah Git Hosting - gnulib.git/commitdiff
gnumakefile: Improve tarball reproducibility.
authorSimon Josefsson <simon@josefsson.org>
Tue, 6 Sep 2022 12:32:05 +0000 (14:32 +0200)
committerSimon Josefsson <simon@josefsson.org>
Tue, 6 Sep 2022 12:32:05 +0000 (14:32 +0200)
* top/GNUmakefile (TAR_OPTIONS): Add --sort=name.  Suggested by
Tzvetelin Katchov <katchov@gnu.org>.
* DEPENDENCIES: Mention tar 1.28 dependency.

ChangeLog
DEPENDENCIES
top/GNUmakefile

index 26231407bbf89d29e1d09093be1811e5d01cb4b3..d5a5af7d74629358e52146cc3b3861484cfb8ce0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-09-06  Simon Josefsson  <simon@josefsson.org>
+
+       gnumakefile: Improve tarball reproducibility.
+       * top/GNUmakefile (TAR_OPTIONS): Add --sort=name.  Suggested by
+       Tzvetelin Katchov <katchov@gnu.org>.
+       * DEPENDENCIES: Mention tar 1.28 dependency.
+
 2022-09-05  Bruno Haible  <bruno@clisp.org>
 
        pthread-h: Fix compilation error on mingw with --enable-threads=windows.
index 23fa1f5a8b1cb303a8d471d53c0b9abc4d87f1b0..3b24f45ad6b695a0730314e1fa501fd0a50323bc 100644 (file)
@@ -174,3 +174,12 @@ at any time.
     https://www.gnu.org/software/libtool/
   + Download:
     https://ftp.gnu.org/gnu/libtool/
+
+* GNU tar 1.28 or newer.
+  + Recommended.
+    Needed if you use the 'gnumakefile' module, which sets TAR_OPTIONS
+    to --sort=names (added in version 1.28) in GNUmakefile for 'make dist'.
+  + Homepage:
+    https://www.gnu.org/software/tar/
+  + Download:
+    https://ftp.gnu.org/gnu/tar/
index 7a08c9d55bacc51104c6443a75a0671926146353..a778610d2849ff7e1798cb29ae8960e6b38a6a34 100644 (file)
@@ -26,7 +26,7 @@ _gl-Makefile := $(wildcard [M]akefile)
 ifneq ($(_gl-Makefile),)
 
 # Make tar archive easier to reproduce.
-export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner
+export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --sort=name
 
 # Allow the user to add to this in the Makefile.
 ALL_RECURSIVE_TARGETS =