From owner-freebsd-ports@FreeBSD.ORG Sat Jul 26 08:57:58 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 863DF31B for ; Sat, 26 Jul 2014 08:57:58 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 122072632 for ; Sat, 26 Jul 2014 08:57:57 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.9/8.14.9) with ESMTP id s6Q8voeK059350 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 26 Jul 2014 09:57:51 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: lucid-nonsense.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk s6Q8voeK059350 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1406365071; bh=RD6KGL4n/Qxcj9OShJWO3WR+FUEWiEYZSzGGTJrIsjE=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Sat,=2026=20Jul=202014=2009:57:49=20+0100|From:=20Matthew =20Seaman=20|To:=20freebsd-ports@ freebsd.org|Subject:=20Re:=20Lots=20of=20installed=20ports=20show= 20"succeeds=20index"|References:=20<86vbqnhp8t.wl-hskuhra@eumx.net >=20<86tx67hp0x.wl-hskuhra@eumx.net>=20<53D00A72.9090306@infracani nophile.co.uk>=20=20|In-Reply-To:=20; b=MQ45OkW9BNLbqxvTMg+APEcnOA1Ei1vk+XdknsD63S58e63hYldum0p23d5CBNyrK N3lu5YeoslfxL5VyjzCgp+96urpuGBt2igkcLYRu2MlqpAk9Za+ZEwMTNJh7HRVZV3 5b+NjsewDu9jANz/9soOkjf1s+9JIJLRuWkafy4w= Message-ID: <53D36D8D.1000808@infracaninophile.co.uk> Date: Sat, 26 Jul 2014 09:57:49 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Lots of installed ports show "succeeds index" References: <86vbqnhp8t.wl-hskuhra@eumx.net> <86tx67hp0x.wl-hskuhra@eumx.net> <53D00A72.9090306@infracaninophile.co.uk> In-Reply-To: X-Enigmail-Version: 1.6 OpenPGP: id=E1ECF9BB Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WDDnDo4MQDioq34xsl6PBOSX7vw0402sA" X-Virus-Scanned: clamav-milter 0.98.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jul 2014 08:57:58 -0000 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--