Răsfoiți Sursa

Do not use BSD system tar option -I if TARPROG is gtar for OpenBSD

git-svn-id: trunk@42022 -
pierre 6 ani în urmă
părinte
comite
aa8a7f5130
2 a modificat fișierele cu 11 adăugiri și 0 ștergeri
  1. 5 0
      tests/Makefile
  2. 6 0
      tests/Makefile.fpc

+ 5 - 0
tests/Makefile

@@ -2559,6 +2559,11 @@ ifneq ($(SVNVERSION),)
 	$(ECHOREDIR) svnpackagesrevision=$(SVN_PACKAGES_REV_STR) >> $(TEST_OUTPUTDIR)/dbdigest.cfg
 endif
 ifeq ($(OS_SOURCE),openbsd)
+ifeq ($(TARPROG),$(subst gtar,,$(TARPROG)))
+  BSD_SYSTEM_TAR=1
+endif
+endif
+ifdef BSD_SYSTEM_TAR
 TARFROM=-I tar.lst
 else
 TARFROM=--files-from=tar.lst

+ 6 - 0
tests/Makefile.fpc

@@ -647,6 +647,12 @@ endif
 # OpenBSD system tar executable doesn't know
 # about --files-from option, but supports -I
 ifeq ($(OS_SOURCE),openbsd)
+ifeq ($(TARPROG),$(subst gtar,,$(TARPROG)))
+  BSD_SYSTEM_TAR=1
+endif
+endif
+
+ifdef BSD_SYSTEM_TAR
 TARFROM=-I tar.lst
 else
 TARFROM=--files-from=tar.lst