summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install/Makefile
diff options
context:
space:
mode:
authorrichard <richard>2014-02-21 18:18:49 +0000
committerrichard <richard>2014-02-21 18:18:49 +0000
commit45b61dc883727ca639b73d240c17a33f692ea3fe (patch)
treef16cc206c01be6f00c9f190bda94859c165f836c /pkgtools/pkg_install/Makefile
parent8aa29bb01f9d185d07f7a4ad4ef49f7b0d336c79 (diff)
downloadpkgsrc-45b61dc883727ca639b73d240c17a33f692ea3fe.tar.gz
Add special case for dependency checking in 'non-bootstrap' builds,
don't redefine 'pkg_info' if it already exists. This is notably for pkg_rolling_replace -u in case pkg_install was revbump'd and openssl happens to be in PKG_DEFAULT_OPTIONS.
Diffstat (limited to 'pkgtools/pkg_install/Makefile')
-rw-r--r--pkgtools/pkg_install/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile
index dac2b109f82..963ac3b7fab 100644
--- a/pkgtools/pkg_install/Makefile
+++ b/pkgtools/pkg_install/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.200 2014/02/12 23:18:28 tron Exp $
+# $NetBSD: Makefile,v 1.201 2014/02/21 18:18:49 richard Exp $
# Notes to package maintainers:
#
@@ -59,7 +59,13 @@ USE_NATIVE_GCC= yes
PKG_ADD_CMD= ${WRKSRC}/add/pkg_add
PKG_CREATE_CMD= ${WRKSRC}/create/pkg_create
PKG_DELETE_CMD= ${WRKSRC}/delete/pkg_delete
+#
+# Special case for dependency checking in 'non-bootstrap' builds:
+# don't redefine 'pkg_info' if it already exists.
+#
+. if defined(PKG_INFO_CMD) && !exists(${PKG_INFO_CMD})
PKG_INFO_CMD= ${WRKSRC}/info/pkg_info
+. endif
.endif
CPPFLAGS+= -D_LARGEFILE_SOURCE -D_LARGE_FILES