Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2014 10:19:44 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Christian Weisgerber <naddy@mips.inka.de>
Cc:        FreeBSD Ports ML <freebsd-ports@freebsd.org>
Subject:   Re: Lots of installed ports show "succeeds index"
Message-ID:  <CAN6yY1tVFpH4d_pQSQOs0rtBkZjZMSKcc=Rbxaqz%2BUSJobyvMw@mail.gmail.com>
In-Reply-To: <slrnlt1s9b.bhl.naddy@lorvorc.mips.inka.de>
References:  <86vbqnhp8t.wl-hskuhra@eumx.net> <86tx67hp0x.wl-hskuhra@eumx.net> <53D00A72.9090306@infracaninophile.co.uk> <slrnlt1s9b.bhl.naddy@lorvorc.mips.inka.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 24, 2014 at 4:42 AM, Christian Weisgerber <naddy@mips.inka.de>
wrote:

> On 2014-07-23, Matthew Seaman <m.seaman@infracaninophile.co.uk> wrote:
>
> > 'pkg version' priorities changed between repository catalogue, ports
> > index and generating the info out of the ports tree directly.  Now if
> > you have an INDEX file, pkg version will read that for preference, as
> > it's only about a zillion times faster than what it used to do, which
> > involves running make(1) in a bunch of ports.
> >
> > If you want the old behaviour either delete the INDEX file or use the -P
> > flag.
>
> -P does most certainly not provide the old behavior.  pkg version
> took a few seconds, now it takes two minutes on the same machine.
>
> --
> Christian "naddy" Weisgerber                          naddy@mips.inka.de
>

If 'pkg version' only took a few seconds for you, I suspect  you had very
few ports installed. It has always taken minutes for me.

That said, '-P' is much slower than the old default, even though it is
doing as close as possible to the same thing.

I suspect the slow-down is due to the overhead of the solver.  The solver
fixes many potential pkgdb issues, but it is probably a rather slow fix.
Perhaps that is why  use of the index is now the default. I have been using
'-I since moving to pkgng because it is almost instant... far faster then
the old package system.

Is there a reason you want to avoid using the index? It's worked just fine
for me for several months on systems with well over 1000 ports installed.
--
R. Kevin Oberman, Network Engineer, Retired
E-mail: rkoberman@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1tVFpH4d_pQSQOs0rtBkZjZMSKcc=Rbxaqz%2BUSJobyvMw>