Subject: CVS commit: pkgsrc/mk/scripts
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 01/21/2006 22:16:14
Module Name:	pkgsrc
Committed By:	jlam
Date:		Sat Jan 21 22:16:14 UTC 2006

Modified Files:
	pkgsrc/mk/scripts: depends-depth-first.awk

Log Message:
While walking the dependency graph, push the dependencies onto the
stack in the reverse order that show-depends-pkgpaths outputs them.
This makes the top element of the stack the first child dependency
that was marked as "pushed".  This change orders the default "postfix"
output of this script in such a way that for any package listed in
the output, there is no earlier package that depends on it.

In other words, you can take the default output and install from first
to last and never need to install any dependencies, because any
dependencies are guaranteed to have already been installed earlier.


To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 pkgsrc/mk/scripts/depends-depth-first.awk

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