From owner-freebsd-ports@freebsd.org Fri Jun 2 20:42:37 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D81E0AFB38A for ; Fri, 2 Jun 2017 20:42:37 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9321A76D58 for ; Fri, 2 Jun 2017 20:42:36 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (unknown [IPv6:2001:8b0:151:1:1c1d:86a1:a200:b700]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id ED4EB38EE for ; Fri, 2 Jun 2017 20:42:27 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/ED4EB38EE; dkim=none; dkim-atps=neutral Subject: Re: Finding depends-on ports To: freebsd-ports@freebsd.org References: <20170602221856.5f239d23@rsbsd> From: Matthew Seaman Message-ID: <041788a2-a80b-c81b-1cef-0b7e3eea37d0@FreeBSD.org> Date: Fri, 2 Jun 2017 21:42:22 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170602221856.5f239d23@rsbsd> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XQHnRc1E1IoFJUlQx1Udk1owJEQBQa0WJ" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2017 20:42:37 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --XQHnRc1E1IoFJUlQx1Udk1owJEQBQa0WJ Content-Type: multipart/mixed; boundary="dXKkX4Hws781G8jJEJ50Otogp7gxo0Onm"; protected-headers="v1" From: Matthew Seaman To: freebsd-ports@freebsd.org Message-ID: <041788a2-a80b-c81b-1cef-0b7e3eea37d0@FreeBSD.org> Subject: Re: Finding depends-on ports References: <20170602221856.5f239d23@rsbsd> In-Reply-To: <20170602221856.5f239d23@rsbsd> --dXKkX4Hws781G8jJEJ50Otogp7gxo0Onm Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 02/06/2017 20:18, Beeblebrox via freebsd-ports wrote: > I'm running a default-settings ports build from a ports-list file in > poudriere (-f /path/file), which means no options have been defined by > "# make config" or by make.conf (empty /var/db/ports, so can't look > there). >=20 > Is there an easy way to find or back-trace which forward ports depend o= n > a certain port without running configure for the whole list? The only > thing I could think of is to write a shell script like:=20 > cat file-name | while read line > make -C $line all-depends-list | grep > printf $stuff > outfile If you pull down the ports INDEX by 'make fetchindex' it's a simple matter of cut(1) and grep(1) to find all the ports that depend on some other port. Matching that up to the list of ports you have in your build list is a job for comm(1). Cheers, Matthew --dXKkX4Hws781G8jJEJ50Otogp7gxo0Onm-- --XQHnRc1E1IoFJUlQx1Udk1owJEQBQa0WJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJZMc2zXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATuHcP/RG7hTZdIdCjVwZuDrSXTBY5 UG3/XdPsfJlEHo/pJQgHx4iwFpU28EGZkMnKHZl9pMu+2+yDVM4OFONjvL00Qd5c cTOVS61TYAwbOaRsusQdssbHE4UUF4bCZnogzDCqdrjMvocNqsGydoKMVieVVQIp +P/dFwD4wbnbsGjQB1NawUrQ0werzTJxWG+k5c/JJJ3vgiD7uxnwll0MkvGkcifg sHZvQFFGtktIJrAzVLJfk28zRZjH4Xd73HtGsTg52QTBqzgebhgtsFXrk1t/sOxI o+x5PbaRg0wb+EZEpDHpRvC2lEkYUkoVUbBtWpWyOMkTVJWHrOEccGHb2lMDXDCv aAunjECBKuC4B0fSbeBPqUbNq0T2bECW2uqGFCO3HZ50rbYcExfZZe7AHZ61ClM7 P6eTyAOpXqOhZEN3tQ+4+nQ8o/n7OuvK5t4MKuWUu4xYHiQepQHHFaBmL24UqaSX OY51srIdkFVxOzJhs4FXMwBwxpvlGUd7HHY7cr48XX7U9wIGXzIPu2C/cWCr6/t8 mK3k5T0ESstaDfYSuXR9ZRm2byeA0C7crMaSMuFQLqUdD0RVMA+QLq9yB3+CdFOO pwP7/IPSYe4gYJXYFuRHYPe5zkhRme9OLpMNJroj8B99qPAq3NdfDD3jj+zc/NxW v6YQKyB68UC2i640v+dT =qVjS -----END PGP SIGNATURE----- --XQHnRc1E1IoFJUlQx1Udk1owJEQBQa0WJ--