summaryrefslogtreecommitdiff
path: root/mk/package
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-05-23 13:18:56 +0000
committerobache <obache@pkgsrc.org>2013-05-23 13:18:56 +0000
commitb5433823fa6d77a488de91c699e7318607efca3c (patch)
tree2a7139982fd87ee948f76117e980cc35c4bc7d0e /mk/package
parent4771aecdbece16f7efbbbd84d767fb7953f379c6 (diff)
downloadpkgsrc-b5433823fa6d77a488de91c699e7318607efca3c.tar.gz
prevent to generate binary package in ${PACKAGES} from the side effect of
`install' with USE_DESTDIR=yes. This changes prevent to unwanted overwite of existing binary packages with test installation (`stage-install', `replace' & `undo-replace', and so on). To do both `install' and `package', you can still use `package-install' target, same as USE_DESTDIR=no.
Diffstat (limited to 'mk/package')
-rw-r--r--mk/package/package.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/package/package.mk b/mk/package/package.mk
index 947c4d0a2c6..0fe7781223f 100644
--- a/mk/package/package.mk
+++ b/mk/package/package.mk
@@ -1,4 +1,4 @@
-# $NetBSD: package.mk,v 1.23 2011/10/15 00:23:09 reed Exp $
+# $NetBSD: package.mk,v 1.24 2013/05/23 13:18:56 obache Exp $
#
# This file provides the code for the "package" phase.
#
@@ -17,6 +17,7 @@ _PACKAGE_TARGETS+= check-vulnerable
_PACKAGE_TARGETS+= replace
.else
_PACKAGE_TARGETS+= stage-install
+_PACKAGE_TARGETS+= stage-package-create
.endif
_PACKAGE_TARGETS+= acquire-package-lock
_PACKAGE_TARGETS+= ${_COOKIE.package}