summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2001-09-30 22:10:33 +0000
committerabs <abs@pkgsrc.org>2001-09-30 22:10:33 +0000
commite31ba171a2561181a57e000f141583cc795471ab (patch)
tree4e3bcc5aa2849d6f22a8b4cfa5de424a5e70e653
parent740d304da5f66d14ae2e70c7b76b066734f14752 (diff)
downloadpkgsrc-e31ba171a2561181a57e000f141583cc795471ab.tar.gz
Add 'show-installed-depends' - neat implementation thanks to Hubert.
-rw-r--r--Packages.txt6
-rw-r--r--mk/bsd.pkg.mk10
2 files changed, 14 insertions, 2 deletions
diff --git a/Packages.txt b/Packages.txt
index a233514f018..7ed81b8d992 100644
--- a/Packages.txt
+++ b/Packages.txt
@@ -1,4 +1,4 @@
-# $NetBSD: Packages.txt,v 1.196 2001/09/29 23:15:45 hubertf Exp $
+# $NetBSD: Packages.txt,v 1.197 2001/09/30 22:10:33 abs Exp $
###########################################################################
==========================
@@ -1492,6 +1492,10 @@ perform the equivalent of:
host, and can be invoked from the top-level pkgsrc Makefile by using the
target "show-host-specific-pkgs"
+ * show-installed-depends:
+ This target shows which installed packages match the current package's
+ DEPENDS. Useful if out of date DEPENDS are causing build problems.
+
* check-shlibs:
After a package is installed, check all it's binaries and (on ELF
platforms) shared libraries if they find the shared libs they need.
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 1a2bd9f1ed3..45b8e28396f 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.815 2001/09/25 20:26:37 mycroft Exp $
+# $NetBSD: bsd.pkg.mk,v 1.816 2001/09/30 22:10:34 abs Exp $
#
# This file is in the public domain.
#
@@ -1282,6 +1282,13 @@ show-downlevel:
. endif
.endif
+.if !target(show-installed-depends)
+show-installed-depends:
+ @for i in ${DEPENDS:C/:.*$//:Q:S/\ / /g} ; do \
+ echo "$$i =>" `pkg_info -e $$i` ; \
+ done
+.endif
+
.if defined(EVAL_PREFIX)
. for def in ${EVAL_PREFIX}
. if !defined(${def:C/=.*//}_DEFAULT)
@@ -1491,6 +1498,7 @@ do-configure:
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
+
. endif
. if defined(USE_IMAKE)
${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC} && ${SETENV} ${SCRIPTS_ENV} XPROJECTROOT=${X11BASE} ${XMKMF}