Re: ports make search key query
- Reply: tech-lists : "Re: ports make search key query"
- In reply to: tech-lists : "ports make search key query"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Nov 2021 15:01:19 UTC
tech-lists wrote: > Hi, > > I'm trying to make a list of ports exclusively *not* for armv6. > > I've been trying to use ports(7) but can't seem to get the incantation > right. > > this: NOT_FOR_ARCHS > > % sudo make -C /usr/ports search key=armv6 display=name,path,arch keylim=1 > > Port: armv6-freebsd-sysroot-a2021.09.14 > Path: /usr/ports/devel/freebsd-sysroot > > Port: armv6-rust-bootstrap-1.56.0 > Path: /usr/ports/lang/rust-bootstrap > > % sudo make -C /usr/ports search key=NOT_FOR_ARCHS display=arch > % > > % sudo make -C /usr/ports search key=NOT_FOR_ARCHS display=armv6 > % > > I'm clearly clueless. What's the proper way to accomplish this? search target does not seem to support 'arch' as valid keyword, nor does it support arbitrary variables (like NOT_FOR_ARCHS). The naive and easy alternative: find /usr/ports -name Makefile\* | xargs grep 'NOT_FOR_ARCHS.*armv6'