]> git.ipfire.org Git - thirdparty/make.git/commitdiff
[SV 63867] Don't use --sort to generate error report tar files
authorPaul Smith <psmith@gnu.org>
Sun, 5 Mar 2023 14:09:46 +0000 (09:09 -0500)
committerPaul Smith <psmith@gnu.org>
Sat, 25 Mar 2023 20:02:59 +0000 (16:02 -0400)
Older versions of GNU tar parse the TAR_OPTIONS variable, but do not
accept the --sort option: remove it before creating the error report
tar files.  Note we still require a modern GNU tar to create release
tar files.  Reported by Dmitry Goncharov <dgoncharov@users.sf.net>

* Makefile.am (check-regression): Remove --sort from TAR_OPTIONS

Makefile.am

index 559f50f875c48a400957ec7bed4917ad8eccefe8..49bc06bb370cf2499782b2241fd6d9a93a170e90 100644 (file)
@@ -191,6 +191,7 @@ check-regression: tests/config-flags.pm
            esac; \
            echo "cd tests && $(PERL) $(PERLFLAGS) ./run_make_tests.pl -srcdir $(abs_top_srcdir) -make $(GMK_OUTDIR)/make$(EXEEXT) $(MAKETESTFLAGS)"; \
            (cd tests && $(PERL) $(PERLFLAGS) ./run_make_tests.pl -srcdir '$(abs_top_srcdir)' -make '$(GMK_OUTDIR)/make$(EXEEXT)' $(MAKETESTFLAGS); echo $$? >.test-result) 2>&1 | tee $(testlog); \
+           export TAR_OPTIONS='$(filter-out --sort%,$(TAR_OPTIONS))'; \
            er=$$(cat $(testresult)); if test "$$er" -ne 0; then \
              dirnm="$(errorpre)-$$($(rand_string))"; fnm="$$dirnm.tar.gz"; \
              rm -rf "$$dirnm"; mkdir "$$dirnm"; \