From e3e1e07e96f4ff99a0465164ddd4b1c9eadd88c6 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Tue, 20 Apr 2021 22:24:48 -0500 Subject: Adjust Automake options to build maximally portable tarballs --- ChangeLog | 11 +++++++++++ Makefile.am | 4 ++++ configure.ac | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bd0955e..b7fb1f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2021-04-20 Jacob Bachmeyer + + * configure.ac: Set Automake options to use the ancient and + universal V7 format when building distribution tarballs. The + limitations of this format are not expected to impact DejaGnu; the + "ustar" format will be used instead if this is proved wrong. + + * Makefile.am (TAR_OPTIONS): Add exported environment variable to + set options when building distribution tarballs. Ensure that all + files in distribution tarballs will be recorded as owned by root. + 2021-04-16 Jacob Bachmeyer PR47382 diff --git a/Makefile.am b/Makefile.am index bd05a53..db22e78 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,6 +21,10 @@ AUTOMAKE_OPTIONS = dejagnu export DEJAGNU +# record all files in the distribution tarball as owned by root +TAR_OPTIONS = --owner=0 --group=0 +export TAR_OPTIONS + EXTRA_DIST = ChangeLog-1992 MAINTAINERS dejagnu runtest \ $(pkgdata_DATA) $(config_DATA) $(baseboard_DATA) \ $(commands_DATA) $(TESTSUITE_FILES) $(TEXINFO_TEX)\ diff --git a/configure.ac b/configure.ac index c60f34f..aa7b6f8 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ dnl Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. AC_PREREQ([2.69]) AC_INIT([GNU DejaGnu],[1.6.3-rc3],[bug-dejagnu@gnu.org]) -AM_INIT_AUTOMAKE([1.14 subdir-objects]) +AM_INIT_AUTOMAKE([1.14 subdir-objects tar-v7 filename-length-max=99]) AM_MAINTAINER_MODE AC_PROG_MAKE_SET -- cgit v1.1