On 6/10/20, Donald Wilde <dwilde1 at gmail.com> wrote:> On 6/10/20, Stefan E?er <se at freebsd.org> wrote: >> Am 10.06.20 um 15:45 schrieb Donald Wilde: >>> On 6/10/20, Mark Linimon <linimon at lonesome.com> wrote: >>>> On Tue, Jun 09, 2020 at 08:09:21PM -0700, Donald Wilde wrote: > [snip] >>>> x3850-1# grep gcc INDEX-13 | wc -l >>>> 3848 >>>> >>> Hmmm... tried running that and mine doesn't seem to find INDEX-13 as a >>> file. >>> >>> Tried ' find / -name "INDEX-13" ' >> >> You have to either create or fetch the INDEX file: >> >> $ cd /usr/ports >> $ make index >> >> or >> >> $ cd /usr/ports >> $ make fetchindex >> >> Regards, STefan >> > Thanks, Stefan! >Okay, it didn't work, but discovered INDEX-12 in /usr/ports, so ' grep gcc INDEX-12 | wc -l ' worked. Such an interesting file, INDEX-12. More research needed. Is it not INDEX-13 because I did ' make index' instead of ' make fetchindex ' ?> Memo to self: figure out what basic options are supported in > Makefiles, especially in /usr/ports/, and make clear documentation > patches (if needed). :D >/self thinks this is all probably in the Porter's Handbook, but the regular Handbook should have some of it. -- Don Wilde **************************************************** * What is the Internet of Things but a system * * of systems including humans? * ****************************************************
On 10/06/2020 15:51, Donald Wilde wrote:> Okay, it didn't work, but discovered INDEX-12 in /usr/ports, so > ' grep gcc INDEX-12 | wc -l ' worked. > > Such an interesting file, INDEX-12. More research needed. Is it not > INDEX-13 because I did ' make index' instead of ' make fetchindex ' ?You should always get an index matching the major version of the OS you're using, whether you fetch something pre-built or make you own.>> Memo to self: figure out what basic options are supported in >> Makefiles, especially in/usr/ports/, and make clear documentation >> patches (if needed). :D >> > /self thinks this is all probably in the Porter's Handbook, but the > regular Handbook should have some of it.The ports(7) man page probably has a lot of what you're looking for. There's a 'make search' command which is a wrapper around grepping in the INDEX file that you might find interesting. For your use case, try: cd /usr/ports make search bdeps=gcc display=name which returns 3241 results when I tried it just now. Cheers, Matthew
Am 10.06.20 um 16:51 schrieb Donald Wilde:> Okay, it didn't work, but discovered INDEX-12 in /usr/ports, so> ' grep gcc INDEX-12 | wc -l ' worked.My mistake, since you posted on the STABLE mail list but replied to a mail that mentioned INDEX-13: It is INDEX-12 for FreeBSD-12.x and INDEX-13 for -CURRENT (which will become FreeBSD-13.0 at a later time ...)