From owner-freebsd-ports@FreeBSD.ORG Sun May 11 07:47:53 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 79EE8816 for ; Sun, 11 May 2014 07:47:53 +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 0CF232BD5 for ; Sun, 11 May 2014 07:47:52 +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.8/8.14.8) with ESMTP id s4B7lf4A025737 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 11 May 2014 08:47:42 +0100 (BST) (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s4B7lf4A025737 Authentication-Results: smtp.infracaninophile.co.uk/s4B7lf4A025737; dkim=none reason="no signature"; dkim-adsp=none Message-ID: <536F2B15.9060407@FreeBSD.org> Date: Sun, 11 May 2014 08:47:33 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "A.J. 'Fonz' van Werven" Subject: Re: [portmaster/pkg] Detecting build-only dependencies References: <20140510132949.GA29029@spectrum.skysmurf.nl> <536E2EB9.8070107@FreeBSD.org> <20140511072702.GA75551@spectrum.skysmurf.nl> In-Reply-To: <20140511072702.GA75551@spectrum.skysmurf.nl> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qb4GkQIW2fivOD8JiC7eEJBSHNpGnQS60" X-Virus-Scanned: clamav-milter 0.98.1 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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 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: Sun, 11 May 2014 07:47:53 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --qb4GkQIW2fivOD8JiC7eEJBSHNpGnQS60 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 11/05/2014 08:27, A.J. 'Fonz' van Werven wrote: > Matthew Seaman wrote: >=20 >> so try running 'pkg autoremove -n' and inspect the output to see what >> looks suitable. >=20 > Thanks. As a followup question: is there a "pkg query" command that > produces the same list as "pkg autoremove -n", but without the addition= al > output? You should try lokking at the pkg-query(8) man page. It's really quite informative. It told me that the answer to your question is: pkg query -e "%a =3D 1 && %#r =3D 0" %o Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --qb4GkQIW2fivOD8JiC7eEJBSHNpGnQS60 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/ iQJ8BAEBCgBmBQJTbyscXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATP0kP/1sGcBAB3o6aPHvsRaUtOgPw 04S0i5wFPW2+7phRhY9u2PWyUz6tbD8SdjFfqRgXkiR/SS3o3OvbjWD5rUNEM0OX jxPwCP21QigaSdnRD+BLouXguCW3a8AEUJdOXNEM+Ea/2JsRqG4Kvthnt1XJsCeY 1qBCRmXz5oGfm7x7Fjcvq+nHwHGkHi+CLTQfXutVGtBNRLSe1FDpHc4gyRPlU7AT shyMr7tCKMDGxtvBzQZRFRiXlIpXgVfe51Tw2fkLNjYbR2tDDtybpjS+Q5dO8DNb bRpljoAa/XkhZMxWXOhi/QaYpz2VL1hcAbjJWOASK9EXDPgmnB+J1cp+HXoc4ij6 cuFU/yC2vGoCkjmPcMiQ5ImHEYx4TlnuJGufc4cQvd9EFzNr6DbG+B4P4by7uoQY 3C9ICvY/EmxlFOi99Ptw9r9OCh3m/oB6S9MpFjMyraP6phaeWn5z9M1qJ3sYWHcY SVwxLVkinm+4uL164O8YizyY6uLXAFSM7ukETcyUh8FUXxGHbv1MM9Z6dz45Hc/9 nhSzjHjGDXz+dKm9mbSB3ZhoDa3j6cRgNIFDBSZc8B7ZhQhvhmaw3YuEu4LMnc3Y JD0CEWF7serNDM+nRiaAVVD1uxP+mF5Uj3FFAeGyqR48OOwBxbNA7AqxQRfOcu+a F9/IxWgt2KZZ/xUnLsTX =Y8B6 -----END PGP SIGNATURE----- --qb4GkQIW2fivOD8JiC7eEJBSHNpGnQS60--