Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Joerg Sonnenberger <joerg@netbsd.org>
List: pkgsrc-changes
Date: 05/22/2007 16:17:16
Module Name:	pkgsrc
Committed By:	joerg
Date:		Tue May 22 16:17:16 UTC 2007

Modified Files:
	pkgsrc/mk/depends: bsd.depends.mk depends.mk
	pkgsrc/mk/flavor/pkg: depends.mk install.mk metadata.mk
	    register-dependencies
Added Files:
	pkgsrc/mk/flavor/pkg: install-dependencies list-dependencies
	    resolve-dependencies

Log Message:
Make depends-cookie a flavor indendepent target. Before it was used to
trace the dependency information. This is computed and stored in
.depends directly now before anything else is done. The output is locked
and the locking is supposed to work before the bootstrap-depends are
installed.

Add a new hook for flavors after all dependencies are added and before
the depends-cookie is created. Use this to compute which package is used
to fulfill each dependency and store it in .rdepends. Adjust
register-dependencies and some other places to use this information
directly instead of recomputing it all the time.

The code to list all dependencies and to recursively install missing
ones is moved to a separate shell script. This makes it easier to
understand what is going on and extend them later.

Change the calling of pkg_create to prepend the dependencies directly to
the passed-in PLIST and not via -P and -T. This is in preperation of
changing the way they are stored in the packages.

Discussed with, recieved minor disagreement about install-dependencies,
but otherwise OKed by jlam.


To generate a diff of this commit:
cvs rdiff -r1.13 -r1.14 pkgsrc/mk/depends/bsd.depends.mk
cvs rdiff -r1.12 -r1.13 pkgsrc/mk/depends/depends.mk
cvs rdiff -r1.26 -r1.27 pkgsrc/mk/flavor/pkg/depends.mk
cvs rdiff -r0 -r1.1 pkgsrc/mk/flavor/pkg/install-dependencies \
    pkgsrc/mk/flavor/pkg/list-dependencies \
    pkgsrc/mk/flavor/pkg/resolve-dependencies
cvs rdiff -r1.9 -r1.10 pkgsrc/mk/flavor/pkg/install.mk
cvs rdiff -r1.19 -r1.20 pkgsrc/mk/flavor/pkg/metadata.mk
cvs rdiff -r1.2 -r1.3 pkgsrc/mk/flavor/pkg/register-dependencies

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