pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Move the creation of ${PKG_DB_TMPDIR} earlier so th...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/45219e5ba086
branches:  trunk
changeset: 488023:45219e5ba086
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Jan 23 22:23:40 2005 +0000

description:
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:

 mk/bsd.pkg.mk |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 5c5370c90bec -r 45219e5ba086 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Sun Jan 23 22:00:32 2005 +0000
+++ b/mk/bsd.pkg.mk     Sun Jan 23 22:23:40 2005 +0000
@@ -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 @@
                ${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 @@
 .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 @@
                ${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



Home | Main Index | Thread Index | Old Index