Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jul 2014 09:57:49 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-ports@freebsd.org
Subject:   Re: Lots of installed ports show "succeeds index"
Message-ID:  <53D36D8D.1000808@infracaninophile.co.uk>
In-Reply-To: <CAN6yY1tVFpH4d_pQSQOs0rtBkZjZMSKcc=Rbxaqz%2BUSJobyvMw@mail.gmail.com>
References:  <86vbqnhp8t.wl-hskuhra@eumx.net> <86tx67hp0x.wl-hskuhra@eumx.net> <53D00A72.9090306@infracaninophile.co.uk> <slrnlt1s9b.bhl.naddy@lorvorc.mips.inka.de> <CAN6yY1tVFpH4d_pQSQOs0rtBkZjZMSKcc=Rbxaqz%2BUSJobyvMw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--WDDnDo4MQDioq34xsl6PBOSX7vw0402sA
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 24/07/2014 18:19, Kevin Oberman wrote:
> If 'pkg version' only took a few seconds for you, I suspect  you had ve=
ry
> few ports installed. It has always taken minutes for me.
>=20
> That said, '-P' is much slower than the old default, even though it is
> doing as close as possible to the same thing.

The reason that the -P check is slower is because it now checks not just
for the presence of the port directory, but also that the port is hooked
up to the ports tree.  See

https://github.com/freebsd/pkg/commit/2c84533f4d7291c26fe826a67217fb3c3ab=
446a5

So you've got a choice here: slow and unreliable versus even slower, but
correct.  Unfortunately the only way to extract version information from
the ports involves running make(1) and that is intrinsically slow.

> I suspect the slow-down is due to the overhead of the solver.  The solv=
er
> fixes many potential pkgdb issues, but it is probably a rather slow fix=
=2E
> Perhaps that is why  use of the index is now the default. I have been u=
sing
> '-I since moving to pkgng because it is almost instant... far faster th=
en
> the old package system.

No.  The solver simply isn't involved in anything 'pkg version' does.

Personally I think the best experience to be had with pkgng is to use
poudriere to set up your own local repo, and then use 'pkg version -R'
This is actually a lot easier and simpler than you might think, and by
separating the 'compile lots of ports' stage from the 'update what is
running on my system' actions, it makes the required downtime
considerably shorter.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew@infracaninophile.co.uk


--WDDnDo4MQDioq34xsl6PBOSX7vw0402sA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ8BAEBCgBmBQJT022OXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATBjYQAIiy3iTHdVDkWI5xHKjF9g8I
S0+x6ENW0RWoAHdiMvjQ+QUMjlt+j5ao7Q0u1reboBym8N7J6jwR0wIX1Ut8SVD7
2+cKMMbP1P007ppART2sGSKnCTQc8/M/cqwKlV1QQwFlDkRHt1avI2sX4mRnCKxT
J+R5BrUh5QIW2X/8yhXw4I3VYLbJ3ViK2hveQVT7BQlvSl17RfbkgoezTOurYoGs
BjsIxedHX6+1fVIjzvo40ggMrx/oeqEYscmpmao4qLn5iLZWP2fcgnAoPdsCvWuD
lumOxpU1OeNBE2ZHgvwE89+hJGFSHSjip2QuulYIX+O4X7/3eS3PHz1Xy0jfdJHu
WiCxNy5kXGl4O8XmaTCmdVf5JM1I1P6UdpdnrzW8BYhiMq8BWMiRpXcO1mrTFU2d
5Gtd3P6rqu9RlDBNVKkAJDWYx2jdCry65qapgEq2c69zNn00VCYIcDITR3PI14EA
pjBeFtbW11NjuU3aYQYHOTqviUUKoJhMTEgDAZdudKfQ8ZI/uHm80vsq63LgOszW
BtQfXSQBKJF0JfxS1mrsWKempNXrBQabnzwS8nss9OuJtLy2gMvE9Da6050FtOvc
X06BU/dgH7rwGcHUQT3+/ElmkE2y2nBL5mzGEShlmAFlA8/5TkzkJtdiyntGmlsk
/MB1p7xIhOj8z0iLdVXp
=+lEH
-----END PGP SIGNATURE-----

--WDDnDo4MQDioq34xsl6PBOSX7vw0402sA--



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