mirror of
https://github.com/mirror/make.git
synced 2024-12-30 23:10:52 +08:00
[SV 63867] Don't use --sort to generate error report tar files
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
This commit is contained in:
parent
bf7f690202
commit
3088e3e698
@ -191,6 +191,7 @@ check-regression: tests/config-flags.pm
|
|||||||
esac; \
|
esac; \
|
||||||
echo "cd tests && $(PERL) $(PERLFLAGS) ./run_make_tests.pl -srcdir $(abs_top_srcdir) -make $(GMK_OUTDIR)/make$(EXEEXT) $(MAKETESTFLAGS)"; \
|
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); \
|
(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 \
|
er=$$(cat $(testresult)); if test "$$er" -ne 0; then \
|
||||||
dirnm="$(errorpre)-$$($(rand_string))"; fnm="$$dirnm.tar.gz"; \
|
dirnm="$(errorpre)-$$($(rand_string))"; fnm="$$dirnm.tar.gz"; \
|
||||||
rm -rf "$$dirnm"; mkdir "$$dirnm"; \
|
rm -rf "$$dirnm"; mkdir "$$dirnm"; \
|
||||||
|
Loading…
Reference in New Issue
Block a user