diff options
author | jlam <jlam@pkgsrc.org> | 2005-01-23 22:23:40 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-01-23 22:23:40 +0000 |
commit | 1bfddbb7731a0a8316d6266316d9304ac2bf4a73 (patch) | |
tree | d19aae15b9da91ba541f9b9049ed2d88174eb337 /mk | |
parent | 6ec4172cb961ff6fd8e1fe13a857f1dc32b3bd1f (diff) | |
download | pkgsrc-1bfddbb7731a0a8316d6266316d9304ac2bf4a73.tar.gz |
Move the creation of ${PKG_DB_TMPDIR} earlier so that it's created as
the build user instead of the root user. This should allow "make
clean" as a non-root user to work again.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 4a414a0d44a..5e1b95759e9 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1566 2005/01/23 21:57:38 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1567 2005/01/23 22:23:40 jlam Exp $ # # This file is in the public domain. # @@ -3437,6 +3437,7 @@ do-su-install: ${MAKE} clean && ${MAKE} build ;; \ esac @${ECHO_MSG} "${_PKGSRC_IN}> Installing for ${PKGNAME}" + ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${PKG_DB_TMPDIR} ${_PKG_SILENT}${_PKG_DEBUG} \ realtarget="real-su-install"; \ action="install"; \ @@ -4806,7 +4807,6 @@ PKGVIEWS+= ${DEFAULT_VIEW.${PKGBASE}} .PHONY: pre-install-fake-pkg .if !target(pre-install-fake-pkg) pre-install-fake-pkg: - ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${PKG_DB_TMPDIR} ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${PRESERVE_FILE} . if defined(PKG_PRESERVE) ${_PKG_SILENT}${_PKG_DEBUG}${DATE} > ${PRESERVE_FILE} @@ -4866,7 +4866,6 @@ post-install-fake-pkg: ${PLIST} ${DESCR} ${MESSAGE} ${RM} -f ${_PKG_DBDIR}; \ ${MKDIR} ${_PKG_DBDIR}; \ fi - ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${PKG_DB_TMPDIR} . if defined(FORCE_PKG_REGISTER) ${_PKG_SILENT}${_PKG_DEBUG}${PKG_ADMIN} delete ${PKGNAME} . endif |