Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Apr 2021 02:33:37 +0100
From:      Graham Perrin <grahamperrin@gmail.com>
To:        parv/freebsd <parv.0zero9+freebsd@gmail.com>
Cc:        freebsd-questions@freebsd.org, Matthew Seaman <matthew@freebsd.org>
Subject:   Re: Specifying & searching of package flavors
Message-ID:  <6c37d167-5535-ea8c-b9b9-73e4d6332621@gmail.com>
In-Reply-To: <CABObuOoA3B8a-W-ZQsD%2ByNrTy05HeEtDN2DfUss-fj1eXHcxSw@mail.gmail.com>
References:  <CABObuOo=c4j6OjP%2Bb5EbOA1GiifVrHwVXQ4=1Owi90_Mgp_kXA@mail.gmail.com> <CABObuOoA3B8a-W-ZQsD%2ByNrTy05HeEtDN2DfUss-fj1eXHcxSw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 16/04/2021 00:18, parv/freebsd wrote:

> On Thu, Apr 15, 2021 at 1:05 PM parv/freebsd wrote:
>
>> 1- How does one search for available flavors of a package by partial
>>     or full package origin?
>>
>>    For example, given origin of "devel/lua-stdlib" would install the
>> packages
>>    for all available versions of lua (5.1--5.4). Only way I found that that
>>    would be the case is during the actual install.
>>
>>    Issues here ...
>>    - "pkg search lua-stdlib" does not show any results;
>>    - "pkg install lua-stdlib@lua54" fails to find any available packages.
>> Only
>>      thing that would work is "lua54-stdlib";
>>    - to be able to "-x" option, I would need to have prior knowledge to use
>>      "lua.+?stdlib" ( "lua.+?-stdlib" does not work) to give to
>> pkg-{info,search}.
>>
> ...
>
> I meant '... "lua.+stdlib" ("lua.+?-stdlib" does not work) to give to
> pkg-{info,search}'.


Not the answer that you want, but I guess that from multiple lines of 
output it's possible to (at least) tell that there _exist_ flavours for 
a port:

% pkg rquery --regex '%o %v %R' lua.+stdlib$ | sort
devel/lua-stdlib 41.2.2_1 FreeBSD
devel/lua-stdlib 41.2.2_1 FreeBSD
devel/lua-stdlib 41.2.2_1 FreeBSD
devel/lua-stdlib 41.2.2_1 FreeBSD
%

– then <https://www.freshports.org/devel/lua-stdlib/#flavors>.

(<https://www.freshports.org/faq.php#anchors>; lists the in-page anchors 
that are now available in FreshPorts.)

Old, but maybe relevant:

<https://lists.freebsd.org/pipermail/freebsd-ports/2017-December/111841.html>;

 >> … can't use pkg-query(8) or pkg-rquery(8) or similar to select
 >> and display packages according to the new metadata items like
 >> flavor. …

(My knowledge of flavours is minimal so if that's no longer relevant, 
sorry.)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6c37d167-5535-ea8c-b9b9-73e4d6332621>