From owner-freebsd-ports@FreeBSD.ORG Mon Mar 4 11:40:42 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D4090867; Mon, 4 Mar 2013 11:40:42 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id 503F311F5; Mon, 4 Mar 2013 11:40:42 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id p43so4307159wea.38 for ; Mon, 04 Mar 2013 03:40:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=waalHyjd/udnO1xFFBmb3nm5mQp6/0gC8AxEvoV+OSk=; b=zREs3jBj9FFWQX87n2QwdgVFcc4gkoCafwuOczLgJXRG78FSnbrGTss+BMm8EAzyhi ZCfJRPVKZVh97XtcrPlOHMru1U66Ex5aDXEl/50h/3z7BgM9wXiGeHctzt9XmmV1F+By /4MbG1Hvax9yKU2xzGyQ3vLsYnxJM01ekTFAw1ZkXNo8IjZAjRQMlddgjbtfgW8TLm4E DszHaOUkrApzzIr42YN8ZQVbfwDfvBO1fnx45L07itn+7Kl1McTWXun/XjKqQMaq05wl RTsdDU/CFWOngUYrinN3syfZOO9uJwGVhFCGGI4vs/A1+Zwe9eeqv/bIY3m5rTMVnYbo gYsA== X-Received: by 10.180.79.6 with SMTP id f6mr10730572wix.26.1362397241601; Mon, 04 Mar 2013 03:40:41 -0800 (PST) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPS id n2sm13560281wiy.6.2013.03.04.03.40.39 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 04 Mar 2013 03:40:40 -0800 (PST) Sender: Baptiste Daroussin Date: Mon, 4 Mar 2013 12:40:38 +0100 From: Baptiste Daroussin To: Darren Pilgrim Subject: Re: pkgng info command: -d overrides -r? Message-ID: <20130304114037.GJ64570@ithaqua.etoilebsd.net> References: <51347590.4090201@bluerosetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iRjOs3ViPWHdlw/I" Content-Disposition: inline In-Reply-To: <51347590.4090201@bluerosetech.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: pkg@FreeBSD.org, FreeBSD Mailing List X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Mar 2013 11:40:42 -0000 --iRjOs3ViPWHdlw/I Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable CCed to pkg@FreeBSD.org where the discussion deserves to be :) On Mon, Mar 04, 2013 at 02:21:04AM -0800, Darren Pilgrim wrote: > With pkg_info, I can get a list of ports requiring and depended on by a= =20 > given port by doing `pkg_info -rR`. In pkgNG, the equivalent would be=20 > `pkg info -dr`, but there appears to be a problem giving -d and -r at=20 > the same time. For example: >=20 > # pkg info -r postgresql-client-9.2.3 > postgresql-client-9.2.3 is required by: > postgresql-server-9.2.3 >=20 > # pkg info -d postgresql-client-9.2.3 > postgresql-client-9.2.3 depends on: > pkgconf-0.8.9 > libiconv-1.14 > libxml2-2.7.8_5 > gettext-0.18.1.1 >=20 > So the output of -dr should be something like this: > # pkg info -dr postgresql-client-9.2.3 > postgresql-client-9.2.3 depends on: > pkgconf-0.8.9 > libiconv-1.14 > libxml2-2.7.8_5 > gettext-0.18.1.1 > postgresql-client-9.2.3 is required by: > postgresql-server-9.2.3 >=20 > But instead I get this: >=20 > # pkg info -dr postgresql-client-9.2.3 > postgresql-client-9.2.3 depends on: > pkgconf-0.8.9 > libiconv-1.14 > libxml2-2.7.8_5 > gettext-0.18.1.1 >=20 > # pkg info -rd postgresql-client-9.2.3 > postgresql-client-9.2.3 depends on: > pkgconf-0.8.9 > libiconv-1.14 > libxml2-2.7.8_5 > gettext-0.18.1.1 >=20 > It looks like pkg ignores -r if -d is given, but the two shouldn't be=20 > exclusive. Am I missing something? No you are missing nothing in fact we haven't handled yet options multual exclusion. I haven't thought that anyway one will do a pkg info -rd so I didn't test w= hat could be happening here :) thanks for reporting, definitly something to work on, don't know yet what s= hould be done here: either say "hey you can't pass -r and -d at the same time" which would be t= he easy fix :) or output things like you suggested which will be less easy regards, Bapt --iRjOs3ViPWHdlw/I Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlE0iDQACgkQ8kTtMUmk6ExyYwCgmTC2wkECbXf5qW/jsEIHLNxF vOAAniQbSrytWSr/OPOwyf2l9W8gcaxP =gY9Y -----END PGP SIGNATURE----- --iRjOs3ViPWHdlw/I--