Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jul 2014 10:37:31 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Lots of installed ports show "succeeds index"
Message-ID:  <53D376DB.8050105@infracaninophile.co.uk>
In-Reply-To: <20140726092337.GE93733@kib.kiev.ua>
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> <53D36D8D.1000808@infracaninophile.co.uk> <20140726092337.GE93733@kib.kiev.ua>

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

On 26/07/2014 10:23, Konstantin Belousov wrote:
> On Sat, Jul 26, 2014 at 09:57:49AM +0100, Matthew Seaman wrote:
>> On 24/07/2014 18:19, Kevin Oberman wrote:
>>> 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 i=
s
>>> doing as close as possible to the same thing.
>>
>> The reason that the -P check is slower is because it now checks not ju=
st
>> for the presence of the port directory, but also that the port is hook=
ed
>> up to the ports tree.  See
>>
>> https://github.com/freebsd/pkg/commit/2c84533f4d7291c26fe826a67217fb3c=
3ab446a5
>>
>> So you've got a choice here: slow and unreliable versus even slower, b=
ut
>> correct.  Unfortunately the only way to extract version information fr=
om
>> the ports involves running make(1) and that is intrinsically slow.
>=20
> Am I right that it checks for the presence of a port in the <category>
> directory, but possible absence of the same port in the <category>/Make=
file ?
> If yes, can this behaviour made optional ?

Yes, that's what it does.

I'd not be terribly keen on reverting to the old behaviour, which
resulted in some cases in completely garbled results.  There is a
relatively simple speed-up that could be implemented: for a system with
a number of packages installed the scan of the category Makefile is
repeated when there are many packages in the same category.  Keeping the
results around so it doesn't need to be started from scratch each time
would be an obvious win.

If anyone feels like implementing that, we are always glad to receive
pull requests.

	Cheers,

	Matthew

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

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


--QRDk1qCNLhJjQC8ACskIKNvVX4sfbhgrm
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/

iQJ8BAEBCgBmBQJT03bcXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATuhUP/0R7JLBBlHUy2JIoxJ8QeLk2
VJuWnHn8psJstMhk5Qd4byHg+l2q6N4Id71H+nlxPxWwjnxxj1p8YUvFE7/ewggF
Ip55+ssJsPsLe1W+t2O8D8jxufZRLACIBfqf0Bv81vOyntuP8aF1lFPsxTZp/5Fq
islW8JH6KmPwvkYum2H4RDx1MkDCvv7pEgAHJ2Vwu9n26NTyDFcKciJ+DlIkC11V
ZyKAiDGTZXhsqrKwJp6WG4ygKAdfGH4qkZxvH97cXJ5lhA8zEiisSTb/e9rKFLfG
SxBHhu+2yo6Pmsrxw/x9VXYgrFeQb9rN1gfz1Sp/HQB858J25lXHYBTdSZRFsHei
2m+4jaHEObGHu9Io1xMG+MSXdX4aUsPE0SddkvHkuZCO1qn30aRyUaYYLmgueUnI
6JThDSzO4rx4jRAprDnuL+551MxHlMmKjHSxDA23muEMkhKl9UE/sxnsjJmixofW
MX7jzyctnC0u5JSuRGz9SqPH94AW+Nl7uzBs0f61prktsAcxCJoQ/l8LCv6pl04/
ydY3rLcpIrHIr92Vl3FKZi2Kb19w+FjdRVWzZXkuWJXL/yh5/QKc1C2zd+PZCH1b
AL41wA7N4r98LHApEHlT8vGueKplur934at/IRWG8gq2TGRGqDI0aroipD3hIk4t
VmUZHEM9vTHZEpgMEApm
=Nk3L
-----END PGP SIGNATURE-----

--QRDk1qCNLhJjQC8ACskIKNvVX4sfbhgrm--



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