From owner-freebsd-ports@FreeBSD.ORG Mon Oct 6 05:49:08 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CCE12505 for ; Mon, 6 Oct 2014 05:49:08 +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 6E73CFDC for ; Mon, 6 Oct 2014 05:49:08 +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 s965mxqt054408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 6 Oct 2014 06:49:00 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk s965mxqt054408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1412574540; bh=RX6j4BWgFDdqkVKuEGW2nglu8ADQ82ZCzku7okYLe+g=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Mon,=2006=20Oct=202014=2006:48:51=20+0100|From:=20Matthew =20Seaman=20|To:=20freebsd-ports@ freebsd.org|Subject:=20Re:=20QAT=20script=20or=20Finding=20a=20lis t=20of=20dependent=20ports|References:=20|In-Reply-To:=20; b=BMgzY2kNb46wuf8lNr+uppzv8zdwW7CnNNEF44Adisbbwe77vhFk7VK6Ap3TJ5VKl 4lV4h4TUa1JME41IZO1S2IQK88jSkqwRqwhrvaENRlvtibSefP+nhUoib/5/KZ4DjA RIcR1xu6/Il/nFbsrTP63LnHvntuSEi0G0LbU4Xk= Message-ID: <54322D43.1000602@infracaninophile.co.uk> Date: Mon, 06 Oct 2014 06:48:51 +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: QAT script or Finding a list of dependent ports References: In-Reply-To: OpenPGP: id=E1ECF9BB Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Hc4Lxg7qGhMo7P7L9oD9legp8PJCbhXxP" 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-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2014 05:49:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Hc4Lxg7qGhMo7P7L9oD9legp8PJCbhXxP Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06/10/2014 06:02, Muhammad Moinur Rahman wrote: > If it is restricted can anyone point some light towards finding a list = of > dependent ports. Like say I am working on port X and I need to know whi= ch > ports depend on port X. In a short I need the reverse of "make > all-depends-list". This information is distilled into the ports INDEX, and you can extract all the ports that depend on your port of interest by a fairly simple combination of grep(1) and cut(1). It's slightly harder if you need to distinguish between runtime and buildtime dependencies, but only very slightly. See PORTINDEX(5) for the format of the file. The biggest problem with this approach is accounting for local OPTIONS settings, which can make significant changes to the dependency tree of many ports. ie. you should build your own INDEX for best results. (Here I make the obligatory plug for ports-mgmt/p5-FreeBSD-Portindex, which I think is a great solution to doing that efficiently, but I'm clearly biased because I wrote it.) Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --Hc4Lxg7qGhMo7P7L9oD9legp8PJCbhXxP 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) iQJ8BAEBCgBmBQJUMi1KXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATz9sP/0qhdlgLpnevg+Kx1yzvhKUR WUt9r2BjbMNBl/byJMOHO9h5ghheDnrCUnmXaT9/JgfKDQxbm/FIZUo7GNapfiQn iLZEcuoBXORARtTmYl/Nm8QjQmbbYljxNRj64gin0bvXTm3IoEcOcyPEBBvaycCk iIN//ovCCt45Vu3FyHCBSpbBqm2JHY0jeyAkj4ukxTAfgC20Q92FX+s3rEl0aBA9 +KVNv7vLftEFwanSG6t8huB6eOo02M5x0nc9PuLxTlzJe3PumZ5yC/grtworYSxm ffsPwx08YlsMj6t9jTAeZRURrIaTXyzxOb/7+JuZewxllM9IFLbgTzZXrHXbQGJx +z3Toz5I9hNMKg2X2NjZQQ2enqBoHdlqMlYPBbBDlL54iKL6uX6K2k/9Wp54cUd2 IdEOCqmPOUZIp29VrRqFQF82QOpmfrf76JF2f4aw0xx1oTyYk6XV0ihLpkfkxbz+ WwDfcOpED6YxujtlVCU9nXYqh/2gYDDVv7+52/pcpDbt2NrWIn/FtYNkUnrfys/E UZgQ4Tt3JQSTvrvDWpIed5uQJToF6s9QWeSED9p5HwOCLOkFdRqcxhpTDsqmjZTc PFv1WZrnK9erMJsmuykbABQc2INy3nvJig3AnZNSTDcZzwTzQf9PSIG325GTwkx6 RzViwkzSnbHyA5Xe7m0Z =qI5h -----END PGP SIGNATURE----- --Hc4Lxg7qGhMo7P7L9oD9legp8PJCbhXxP--