Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2007 17:44:13 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Stephen Montgomery-Smith <stephen@math.missouri.edu>
Cc:        "\[LoN\]Kamikaze" <LoN_Kamikaze@gmx.de>, Kennaway <kris@obsecurity.org>, freebsd-ports@freebsd.org, Kris
Subject:   Re: Time to abandon recursive pulling of dependencies?
Message-ID:  <20070516174413.7a0ff113@deskjail>
In-Reply-To: <464B001F.80401@math.missouri.edu>
References:  <20070512174011.GA22526@xor.obsecurity.org> <4645FF71.60100@gmx.de> <20070512175824.GA23103@xor.obsecurity.org> <20070512133054.B5588@math.missouri.edu> <4646193E.5040503@gmx.de> <464665D5.1090509@math.missouri.edu> <4646AC48.1010107@gmx.de> <4646CFE3.1020105@gmx.de> <20070513084931.GA35696@xor.obsecurity.org> <4647161D.2040100@math.missouri.edu> <20070515210147.GI1462@roadrunner.q.local> <464A2BDF.9030108@math.missouri.edu> <20070516111122.5q8fwm91wo480ok0@webmail.leidinger.net> <464B001F.80401@math.missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Stephen Montgomery-Smith <stephen@math.missouri.edu> (Wed, 16 May 2007 07:59:11 -0500):

> Alexander Leidinger wrote:
> > Quoting Stephen Montgomery-Smith <stephen@math.missouri.edu> (from Tue, 
> > 15 May 2007 16:53:35 -0500):
> > 
> >> Ulrich Spoerlein wrote:
> >>> Stephen Montgomery-Smith wrote:
> > 
> >>>> 2.  Sorting the dependencies in pkg_create.  My fix now cuts this  
> >>>> out completely.  Thus there is no need to change the structure of  
> >>>> /var/db/pkg to use databases or anything like this.
> >>>
> >>> I haven't had time to look at your patches, but are your removing second
> >>> order dependancies? This would cut down the tree size considerably.
> >>
> >> No.  No second order dependencies are removed.  The new algorithm does
> >> exactly the same as the old one did, only it works a lot faster.
> > 
> > Would you please tell me what kind of output you need (which order of 
> > pkgname & origin and which seperator between them), I want to provide an 
> > awk script to you which produces this based upon +CONTENTS. It should 
> > cut down some program invocations and a make call (IIR your patch 
> > correctly).
> 
> pkgname:origin

---snip---
awk -F '( |:)' '/@pkgdep / { printf "%s:", $2 } /@comment DEPORIGIN:/ { printf "%s\n", $3 }' /var/db/pkg/yelp-2.18.1/+CONTENTS

[...]
libbonoboui-2.18.0:x11-toolkits/libbonoboui
firefox-2.0.0.3,1:www/firefox
libgnomeui-2.18.1:x11-toolkits/libgnomeui
---snip---

Bye,
Alexander.

-- 
It's a lot of fun being alive ... I wonder if my bed is made?!?
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070516174413.7a0ff113>