summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorhubertf <hubertf>1999-03-03 17:48:23 +0000
committerhubertf <hubertf>1999-03-03 17:48:23 +0000
commit211785fc61f82e3cc9fcd73f0add62eed1f01a6b (patch)
tree42a5af8949cb36b64a05adc7427d1110438d7225 /mk
parent0d13e311d23c1d2c43d815c28cf61051a03a9c3e (diff)
downloadpkgsrc-211785fc61f82e3cc9fcd73f0add62eed1f01a6b.tar.gz
Call "pkg_delete -O' on "make reinstall", to remove things not only
from /var/db/pkg, but also from the pkgdb (in case someone does a "make reinstall" with FORCE_PKG_REGISTER set). Pointed out by Greg Woods. XXX This change is only effective if one has a pkg_* tools as of 19990302 or later, but I will not bump the PKGTOOLS_REQD version up, as I do not expect many people to run into this (and if, it's not a problem). One should just remove the check with ${_PKGTOOLS_VER} >= 19990302 if the version's bumped beyond 19990302.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 13f63a3ab1c..9a008f78a1e 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.218 1999/02/25 23:02:38 hubertf Exp $
+# $NetBSD: bsd.pkg.mk,v 1.219 1999/03/03 17:48:23 hubertf Exp $
#
# This file is in the public domain.
#
@@ -541,6 +541,9 @@ DISTFILES?= ${DISTNAME}${EXTRACT_SUFX}
PKGNAME?= ${DISTNAME}
# Latest version of pkgtools required for this file.
+# XXX There's a conditinal hack for "pkg_delete -O" for
+# _PKGTOOLS_VER>=19990302 below which should be backed out if this
+# is bumped beyond 19990302. - HF
PKGTOOLS_REQD= 19990119
# Check that we're using up-to-date pkg_* tools with this file.
@@ -1964,6 +1967,9 @@ fake-pkg: ${PLIST} ${DESCR}
${MKDIR} ${PKG_DBDIR}; \
fi
.if defined(FORCE_PKG_REGISTER)
+.if ${_PKGTOOLS_VER} >= 19990302
+ @${PKG_DELETE} -O ${PKGNAME}
+.endif
@${RM} -rf ${PKG_DBDIR}/${PKGNAME}
.endif
@${RM} -f ${BUILD_VERSION_FILE} ${BUILD_INFO_FILE}