summaryrefslogtreecommitdiff
path: root/mk/pkginstall/install
diff options
context:
space:
mode:
authorjlam <jlam>2007-07-18 18:01:02 +0000
committerjlam <jlam>2007-07-18 18:01:02 +0000
commitb1e323a4623608b46511d1b5b7af2b869bad3275 (patch)
treed694e70403073f0ddd81b4ae67afbd219db4a5b4 /mk/pkginstall/install
parent8cd45cbaa84d07afd7e533df3e896ed8a656a14e (diff)
downloadpkgsrc-b1e323a4623608b46511d1b5b7af2b869bad3275.tar.gz
Add back a facility to rebuild the run-time library search paths database
on platforms that need it. XXX Right now, if the platform needs it, then it runs for every package. XXX This needs to be fixed to only run for packages that install shared XXX libraries. * Move mk/plist/shlib-type to mk/scripts. * Move definition of SHLIB_TYPE from mk/plist/plist.mk to bsd.pkg.mk. * Move inclusion of bsd.pkginstall.mk below bsd.tools.mk so that it can use SHLIB_TYPE. This is necessary because SHLIB_TYPE's value is the result of evaluating a command, and the command needs "TOOL" definitions provided by bsd.tools.mk.
Diffstat (limited to 'mk/pkginstall/install')
-rw-r--r--mk/pkginstall/install7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/pkginstall/install b/mk/pkginstall/install
index a060d9f7b07..45c79319db4 100644
--- a/mk/pkginstall/install
+++ b/mk/pkginstall/install
@@ -1,4 +1,4 @@
-# $NetBSD: install,v 1.1 2006/05/21 23:50:15 jlam Exp $
+# $NetBSD: install,v 1.2 2007/07/18 18:01:03 jlam Exp $
case ${STAGE} in
PRE-INSTALL)
@@ -42,6 +42,11 @@ PRE-INSTALL)
POST-INSTALL)
#
+ # Rebuild the system run-time library search path database.
+ #
+ ${TEST} ! -x ./+SHLIBS ||
+ ./+SHLIBS ADD ${PKG_METADATA_DIR}
+ #
# Copy configuration/support files into place.
#
${TEST} ! -x ./+FILES ||