summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-02-26 13:46:21 +0000
committerjoerg <joerg@pkgsrc.org>2008-02-26 13:46:21 +0000
commit861a6649741c82c5bdec02bee64ad35bc48b6ab3 (patch)
treecccdd25a7242ccb1692483cd07f04a3444555a7a /mk
parent60733a045e55c77f00838be58592f29be683e8be (diff)
downloadpkgsrc-861a6649741c82c5bdec02bee64ad35bc48b6ab3.tar.gz
Split PKGTOOLS_REQD into two parts. If we don't have PKGTOOLS_REQD,
but something after PKGTOOLS_BASE_REQD, just register a bootstrap dependency.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 6dc52df0616..1bac8e791cc 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1938 2008/02/13 09:28:41 rillig Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1939 2008/02/26 13:46:21 joerg Exp $
#
# This file is in the public domain.
#
@@ -117,8 +117,9 @@ _INSTALL_UNSTRIPPED= # set (flag used by platform/*.mk)
##### Non-overridable constants
# Latest versions of tools required for correct pkgsrc operation.
-PKGTOOLS_REQD= 20070802
-
+PKGTOOLS_REQD= 20070802
+# Versions of tools that are good enough to handle dependencies
+PKGTOOLS_BASE_REQD= 20051103
##### Transform USE_* into dependencies
@@ -146,12 +147,14 @@ PKG_FAIL_REASON+= "This package doesn't support PKG_INSTALLATION_TYPE=${PKG_INST
# Check that we are using up-to-date pkg_* tools with this file.
.if !defined(NO_PKGTOOLS_REQD_CHECK)
-. if ${PKGTOOLS_VERSION} < ${PKGTOOLS_REQD}
+. if ${PKGTOOLS_VERSION} < ${PKGTOOLS_BASE_REQD}
PKG_FAIL_REASON+='The package tools installed on this system are out of date.'
PKG_FAIL_REASON+='The installed package tools are dated ${PKGTOOLS_VERSION:C|(....)(..)(..)|\1/\2/\3|} and you must'
PKG_FAIL_REASON+='update them to at least ${PKGTOOLS_REQD:C|(....)(..)(..)|\1/\2/\3|} using the following command:'
PKG_FAIL_REASON+=' '
PKG_FAIL_REASON+=' (cd ${PKGSRCDIR}/pkgtools/pkg_install && ${MAKE} clean && ${MAKE} update)'
+. elif ${PKGTOOLS_VERSION} < ${PKGTOOLS_REQD}
+BOOTSTRAP_DEPENDS+= pkg_install>=${PKGTOOLS_REQD}:../../pkgtools/pkg_install
. endif
.endif # !NO_PKGTOOLS_REQD_CHECK