Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 03/29/2004 05:42:59
Module Name:	pkgsrc
Committed By:	jlam
Date:		Mon Mar 29 05:42:59 UTC 2004

Modified Files:
	pkgsrc/mk/buildlink2: bsd.buildlink2.mk
	pkgsrc/mk/buildlink3: bsd.buildlink3.mk

Log Message:
Look at the list of run-time dependencies for the package (gleaned
from BUILDLINK_PACKAGES, which is built up by including buildlink[23].mk
files in the package's Makefile), and for each dependency, if it's
already installed, then automatically include the buildlink[23].mk
file for that dependency.

This means that for any package, the dependencies are taken to be the
union of the dependency information as laid out in /usr/pkgsrc and
the dependency information of installed packages stored in /var/db/pkg.

This handle situations where an installed package has _more_ dependencies
than the package as it exists in pkgsrc.  This can occur, e.g., if
you build databases/gnome-libs with BDB_DEFAULT=db4, and then you
decide that you'd rather build other packages using the native Berkeley
DB, so you remove that setting from your environment.  You'd still
like for your packages that depend on gnome-libs to also depend on
db4, but the pkgsrc Makefiles no longer reflect that dependency.


To generate a diff of this commit:
cvs rdiff -r1.120 -r1.121 pkgsrc/mk/buildlink2/bsd.buildlink2.mk
cvs rdiff -r1.131 -r1.132 pkgsrc/mk/buildlink3/bsd.buildlink3.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.