aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Bachmeyer <jcb@gnu.org>2021-04-20 22:24:48 -0500
committerJacob Bachmeyer <jcb@gnu.org>2021-04-20 22:24:48 -0500
commite3e1e07e96f4ff99a0465164ddd4b1c9eadd88c6 (patch)
tree097ec6bd97f039893f7496808192a9bb2fbff525
parentd0f104991b9e6134f04bc674af115bc288c9e137 (diff)
Adjust Automake options to build maximally portable tarballs
-rw-r--r--ChangeLog11
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac2
3 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bd0955e..b7fb1f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2021-04-20 Jacob Bachmeyer <jcb@gnu.org>
+
+ * 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 <jcb@gnu.org>
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