Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Nov 2021 18:01:19 +0300
From:      Yuri <yuri@aetern.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: ports make search key query
Message-ID:  <1278be8e-8c63-118b-54ea-8e96c89ff040@aetern.org>
In-Reply-To: <YX/tcfbpAMaoE08m@ceres.zyxst.net>
References:  <YX/tcfbpAMaoE08m@ceres.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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'



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1278be8e-8c63-118b-54ea-8e96c89ff040>