From owner-freebsd-ports@FreeBSD.ORG Sat Jul 26 09:23:43 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 A5BE39BF for ; Sat, 26 Jul 2014 09:23:43 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4683328A9 for ; Sat, 26 Jul 2014 09:23:43 +0000 (UTC) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id s6Q9NbtU096303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 26 Jul 2014 12:23:37 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua s6Q9NbtU096303 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id s6Q9NbNh096302; Sat, 26 Jul 2014 12:23:37 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 26 Jul 2014 12:23:37 +0300 From: Konstantin Belousov To: Matthew Seaman Subject: Re: Lots of installed ports show "succeeds index" Message-ID: <20140726092337.GE93733@kib.kiev.ua> References: <86vbqnhp8t.wl-hskuhra@eumx.net> <86tx67hp0x.wl-hskuhra@eumx.net> <53D00A72.9090306@infracaninophile.co.uk> <53D36D8D.1000808@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jnFDMT6oczZR/VjS" Content-Disposition: inline In-Reply-To: <53D36D8D.1000808@infracaninophile.co.uk> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: freebsd-ports@freebsd.org 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 09:23:43 -0000 --jnFDMT6oczZR/VjS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 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. >=20 > 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 >=20 > https://github.com/freebsd/pkg/commit/2c84533f4d7291c26fe826a67217fb3c3ab= 446a5 >=20 > 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. Am I right that it checks for the presence of a port in the directory, but possible absence of the same port in the /Makefile= ? If yes, can this behaviour made optional ? --jnFDMT6oczZR/VjS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJT03OYAAoJEJDCuSvBvK1BK5sP/A10FNydz5scHANqOWmUTcCK 2/RJf2uEk7NBKY91YKPulYYWfylUaSKFJ0/AFI6uBT8IzgrWtxXLPlVicS/Ik1zf MMfY0OJ2QxO6AZ3ChSYZnj83V1v1bqXzEHMYgeZrAqxD3OaSHCsgeq2XW6ExzK84 iEJik3dZegaV2Dvn0F2uBGkWTa92PG6PNqXpNkba+rEiNfTiFIZ4n11YY2ElHeSX B+/7Grm1v6yVHqJdeby7y3NMAGkqdckYkyQLvwN4DcgUi8N5DcmL5XVE/IkzBtpY U6ZNv/HvsaPgFOmck59uSBQlEH2xF1SOm2HDkesmSI+bP5sCJ8krWKiJtfbiwYyA Xe26wVsu42nVdVxmBAY13L6gST6R6oTVx55xrtN9QwPHQXTV1PC/pqjrsnwhFdeL KZCyXmD6py5T4MCxyeso7QoZl+F14/+vie6v/k0r4TZr3InaLxP9fzQPQRyYvOj2 wdB0GdrcGACM78OjanUSut03iXnrBE3ry3DyVViwuLSejqHcr115TrANWMvyETgw 4tlz03Li2JzrW4R3n0C4J9KvTh1JyqnaZsJfMhHryYqN4HzVF28T6NJrxjv2448V Qm2+5dWbTxf01bd4MOKGA09eQ0iIfgKV/AJc9twb0qEG2sr+hyHdCugCAJoo0VS9 QqLIhVK+IVQUbIVjBpBh =53MW -----END PGP SIGNATURE----- --jnFDMT6oczZR/VjS--