Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 May 2007 14:36:34 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        Stephen Montgomery-Smith <stephen@math.missouri.edu>
Cc:        "\[LoN\]Kamikaze" <LoN_Kamikaze@gmx.de>, freebsd-ports@freebsd.org, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: Time to abandon recursive pulling of dependencies?
Message-ID:  <20070512183634.GA23819@xor.obsecurity.org>
In-Reply-To: <20070512133054.B5588@math.missouri.edu>
References:  <464597C6.3030406@gmx.de> <20070512174011.GA22526@xor.obsecurity.org> <4645FF71.60100@gmx.de> <20070512175824.GA23103@xor.obsecurity.org> <20070512133054.B5588@math.missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--SUOF0GtieIMvvwua
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, May 12, 2007 at 01:33:40PM -0500, Stephen Montgomery-Smith wrote:
>=20
>=20
> On Sat, 12 May 2007, Kris Kennaway wrote:
>=20
> >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 a=
re=20
> >>also
> >>registered as dependencies and so forth. Since all the commands supplie=
d=20
> >>by
> >>ports walk dependencies recursively, as well as tools like portupgrade,=
=20
> >>this
> >>is unnecessary (that is, assuming that I understood bsd.port.mk=20
> >>correctly).
> >>
> >>To abandon this behaviour would in my opinion only have advantages.
> >
> >Go and substantiate your opinion with some facts, then we'll talk.
>=20
> I've done a little poking around.  As of right now, I think that the=20
> registering takes a huge amount of time inside of a function called=20
> "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

--SUOF0GtieIMvvwua
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFGRgkyWry0BWjoQKURAqLWAJsG3ndPC3DfIjPUmWhTQBOYwMYtlwCghzpq
HREXwOGNwboqPbJ3nC5/ZQM=
=ZUu2
-----END PGP SIGNATURE-----

--SUOF0GtieIMvvwua--



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