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

git-svn-id: trunk@42022 -
This commit is contained in:
pierre 2019-05-08 09:38:43 +00:00
parent 77fa4aaebd
commit aa8a7f5130
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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