Time to abandon recursive pulling of dependencies?
Kris Kennaway
kris at obsecurity.org
Sat May 12 18:36:35 UTC 2007
On Sat, May 12, 2007 at 01:33:40PM -0500, Stephen Montgomery-Smith wrote:
>
>
> On Sat, 12 May 2007, Kris Kennaway wrote:
>
> >On Sat, May 12, 2007 at 07:54:57PM +0200, [LoN]Kamikaze wrote:
> >>
> >>
> >>Kris Kennaway wrote:
> >>>On Sat, May 12, 2007 at 12:32:38PM +0200, [LoN]Kamikaze wrote:
> >>>>With Xorg updated to 7.2 many ports take much longer to register than
> >>>>to download, build and install. I think it's time to abandon the
> >>>>recursive pulling in of dependencies.
> >>>
> >>>I think that before you abandon something you should first understand
> >>>it. Figure out what is taking so long to register the port and then
> >>>work out whether it can be optimized.
> >>
> >>What takes so long in my opinion, is that not only the dependencies are
> >>registered as dependencies, but that the dependencies of dependencies are
> >>also
> >>registered as dependencies and so forth. Since all the commands supplied
> >>by
> >>ports walk dependencies recursively, as well as tools like portupgrade,
> >>this
> >>is unnecessary (that is, assuming that I understood bsd.port.mk
> >>correctly).
> >>
> >>To abandon this behaviour would in my opinion only have advantages.
> >
> >Go and substantiate your opinion with some facts, then we'll talk.
>
> I've done a little poking around. As of right now, I think that the
> registering takes a huge amount of time inside of a function called
> "sortdeps" which may be found in /usr/src/usr.sbin/pkg_install/lib/deps.c.
That function certainly looks like it can be optimized.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070512/d6ebd35a/attachment.pgp
More information about the freebsd-ports
mailing list