Time to abandon recursive pulling of dependencies?

Alexander Leidinger Alexander at Leidinger.net
Tue May 15 05:50:35 UTC 2007


Quoting Stephen Montgomery-Smith <stephen at math.missouri.edu> (Mon, 14 May 2007 10:37:05 -0500):

> Alexander Leidinger wrote:
> > Quoting Stephen Montgomery-Smith <stephen at math.missouri.edu> (from 
> > Mon, 14 May 2007 09:39:13 -0500):
> >
> >> Someone pointed out that what I was proposing in +DEPENDENCIES is
> >
> > Probably me...
> >
> Yes
> 
> >> already to be found in +CONTENTS.  So here is a proof of concept patch
> >> to /usr/ports/Mk/bsd.port.mk (proof of concept because no error
> >> checking, and things like that).
> >
> > As you want to use the origin (it seems), grep for DEPORIGIN instead 
> > of pkgdep, should be even more fast than what you already have.
> >
> 
> I don't know how to do this except by using perl, which is not part of 
> the base system.  This is because DEPORIGIN is on the next line.  And I 
> am not expert at any tools except C and perl.  Also I doubt that it will 
> speed things up very much - I think that grepping a bunch of files is 
> quite fast (compared to say invoking make which is very slow).

The package name and the origin of a dependency are listed in
+CONTENTS, and this can be parsed very easy with awk. When they are
already in the right order in +CONTENTS, then it is a nobrainer to
write a script.

Tell me what you want (syntax of the output) and I try to get time to
write a short awk script. You can incorporate it then.

Bye,
Alexander.

-- 
You can press up-arrow or down-arrow to walk through a list of
previous commands in tcsh.
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-ports mailing list