summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorhubertf <hubertf>2000-11-29 14:44:12 +0000
committerhubertf <hubertf>2000-11-29 14:44:12 +0000
commitcf9da71b20f27c5cf1b14f89a5b6a9155d357b6b (patch)
tree97891fe2f841eda531fdcffd78827d4abd1fe92c /mk
parent3542563ebc028e4795d484165d3ece2745ba9b10 (diff)
downloadpkgsrc-cf9da71b20f27c5cf1b14f89a5b6a9155d357b6b.tar.gz
Quick close this can of worms again.
The ${PLIST} target must run after all the pre/do/post-install targets were run (they may generate ${PLIST_SRC}!). This whole code-path should use the make dependency system, not fork make(1) over and over again.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index a569980f17a..e3bd3e5ccf7 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.624 2000/11/29 13:18:22 hubertf Exp $
+# $NetBSD: bsd.pkg.mk,v 1.625 2000/11/29 14:44:12 hubertf Exp $
#
# This file is in the public domain.
#
@@ -1706,6 +1706,10 @@ real-su-install:
install-info --remove --info-dir=${PREFIX}/info ${PREFIX}/info/${f}; \
install-info --info-dir=${PREFIX}/info ${PREFIX}/info/${f}
.endfor
+ # PLIST must be generated at this late point (instead of
+ # depending on it somewhere earlier), as the
+ # pre/do/post-install aren't run then yet:
+ ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} ${PLIST}
${_PKG_SILENT}${_PKG_DEBUG}newmanpages=`${EGREP} -h \
'^([^@/]*/)*man/([^/]*/)?(man[1-9ln]/.*\.[1-9ln]|cat[1-9ln]/.*\.0)(\.gz)?$$' \
${PLIST} 2>/dev/null || ${TRUE}`; \
@@ -2009,7 +2013,7 @@ real-package: _PORT_USE
SU_CMD?= ${SU} - root -c
PRE_ROOT_CMD?= ${TRUE}
-do-su-install: ${PLIST}
+do-su-install:
@${ECHO_MSG} "${_PKGSRC_IN}> Installing for ${PKGNAME}"
${_PKG_SILENT}${_PKG_DEBUG} \
if [ `${ID} -u` = 0 ]; then \