Date: Fri, 2 Jun 2017 21:42:22 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Re: Finding depends-on ports Message-ID: <041788a2-a80b-c81b-1cef-0b7e3eea37d0@FreeBSD.org> In-Reply-To: <20170602221856.5f239d23@rsbsd> References: <20170602221856.5f239d23@rsbsd>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --XQHnRc1E1IoFJUlQx1Udk1owJEQBQa0WJ Content-Type: multipart/mixed; boundary="dXKkX4Hws781G8jJEJ50Otogp7gxo0Onm"; protected-headers="v1" From: Matthew Seaman <matthew@FreeBSD.org> 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 <portname> > 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?041788a2-a80b-c81b-1cef-0b7e3eea37d0>