From nobody Tue Nov 29 01:57:25 2022 X-Original-To: freebsd-pkg@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NLlpK6Sf6z4jYv2 for ; Tue, 29 Nov 2022 01:57:29 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NLlpK3nmpz4BP6; Tue, 29 Nov 2022 01:57:29 +0000 (UTC) (envelope-from pat@patmaddox.com) Authentication-Results: mx1.freebsd.org; none Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id CBB8B32007D7; Mon, 28 Nov 2022 20:57:27 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 28 Nov 2022 20:57:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=patmaddox.com; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1669687047; x= 1669773447; bh=iAkL3qAxYZsHtVgC+SdoncWaewJa+p0NOuXkeKgO8tU=; b=U ymW2rzpT94HdzUIJYaYgU2c69N9U8r/RFnfrBO/rn0CYDwsC/s9suaqJcaAxoVl6 e8iTPnNRyxjLKlliW6qh1poNy3eVOH54DBiI+d9M0DVPF8n/+Yiv+yjRleWIMh3C +3jYK/sPyvZulx9ydVsMPuBgqp44nJ/LxVl8IcJ6bikLtM1bP8D4Uz5yNoIORvgl RGaN9PG/HCOd/5f/sixUbrjTmdinmjhgshT0Y6I6I6MuXZOwCr01LotY4hx5X0ie JNCbqR2SbySyJBltgii4Bozmp0aO4um+KJ+J+gmWgaZC5GRP6Rpb5MDBWFO9bm1A 4SubdHoNsZDXU+K49Tg4w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1669687047; x= 1669773447; bh=iAkL3qAxYZsHtVgC+SdoncWaewJa+p0NOuXkeKgO8tU=; b=C hOW4iDifLQTLjOOG/o8Y1rUkwe9c+3HY155FM2BPObodtU/r6cs+XtqHA93Rk6rV EeiJldiy9BFN1TZ5u3mbwJ8khIWLbCavxTDjbDsTSwhdYhgARMZL0uN813ySdNP9 jOors60lhFkQqiwtD2OGUDAHPlpX6/UWFN6EAYbTkuTrQ4K+rzgDiBW4+I/oPIB1 lcteMDqjJIS1NbhBVSFi9L4SXp0+wd74x8s+dmHNCH/jmIetratqWEXu/rNq0NNK cHl6XGIXLuedivBp5c2PqclDKKmubdV5iNwKlpRUs82Le0hUllCGTwqv4XmH3fUc m87c99245dwo5PSWRN+Vw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrjeefgdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffoffkjghfgggtgfesrgekmherredtjeenucfhrhhomhepfdfrrght ucforgguughogidfuceophgrthesphgrthhmrgguughogidrtghomheqnecuggftrfgrth htvghrnhepleefffdviefgvddufedtvefgveeitdfffefhffejgeehueehfedvgffgudet keehnecuffhomhgrihhnpehfrhgvshhhphhorhhtshdrohhrghdpfhhrvggvsghsugdroh hrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehp rghtsehprghtmhgrugguohigrdgtohhm X-ME-Proxy: Feedback-ID: i8b6c40f9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Nov 2022 20:57:26 -0500 (EST) From: "Pat Maddox" To: "Graham Perrin" Cc: freebsd-pkg@freebsd.org Subject: Re: devel/glib20 packages Date: Mon, 28 Nov 2022 17:57:25 -0800 X-Mailer: MailMate (1.13.2r5673) Message-ID: <66F0142C-1E2B-4601-9F70-C943EF485C84@patmaddox.com> In-Reply-To: <096a4130-1a48-f7f3-80b4-de8d3969498a@freebsd.org> References: <096a4130-1a48-f7f3-80b4-de8d3969498a@freebsd.org> List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_MailMate_5076C960-9223-44E5-ABDA-3B941BDFFA59_=" Content-Transfer-Encoding: 8bit Embedded-HTML: [{"HTML":[388,1310],"plain":[50,500],"uuid":"39E87330-2611-4CC2-89D9-D1A480A383FE"}] X-Rspamd-Queue-Id: 4NLlpK3nmpz4BP6 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --=_MailMate_5076C960-9223-44E5-ABDA-3B941BDFFA59_= Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit On 28 Nov 2022, at 15:59, Graham Perrin wrote: > I'm confused. > > If pkg search -r FreeBSD devel/glib20 *does* find the package, then > why does pkg search -r FreeBSD glib20 *not* find the package? > > Also, why the emptiness at > ? > > ---- > > % pkg search glib20 > % pkg search -r FreeBSD glib20 > % pkg search -r FreeBSD devel/glib20 > devel/glib20                   Some useful routines > of C programming (current stable version) > % pkg info -x devel/glib20 > glib-2.74.1,2 > % Not sure about the emptiness. The answer to your first question is found in [pkg-search(8)](https://www.freebsd.org/cgi/man.cgi?pkg-search): -S search, --search search Specify the field to search the repository catalogue on. If unspecified, searches on pkg-name unless the search term con- tains a / character, when it searches on port origin. Output will be sorted in order of the search field. See the "Search and Label Options" sections for more details. Looking at the [glib20 Makefile](https://cgit.freebsd.org/ports/tree/devel/glib20/Makefile), you can see that the port name is `glib`. So, `pkg search glib20` searches for a _package_ named `glib20`, which doesn’t exist. `pkg search devel/glib20` searches for an _origin_ named `devel/glib20`, which does exist. Pat --=_MailMate_5076C960-9223-44E5-ABDA-3B941BDFFA59_= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On 28 Nov 2022, at 15:59, Graham Perrin wrote:

=

I'm confused.

If pkg search -r= FreeBSD devel/glib20 does find the package, then why does pkg search -r= FreeBSD glib20 not find the package?

Also, why the emptiness at <https://www.freshports.org/devel/glib20/#p= ackages>?

----

% pkg search glib20
% pkg search -r FreeBSD glib20
% pkg search -r FreeBSD devel/glib20
devel/glib20 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Some useful routine= s of C programming (current stable version)
% pkg info -x devel/glib20
glib-2.74.1,2
%

=

Not sure about the emptiness.

The answer to your first question is found in p= kg-search(8):

-S    search,    =
--search search
    Specify the field to search the repository catalogue on.  If
    unspecified, searches on pkg-name unless the search term con-
    tains a / character, when it searches on port origin.    Output
    will be sorted    in order of the    search field.  See the "Search
    and Label Options" sections for more details.

Looking at the glib20 Makefile, = you can see that the port name is glib<= /code>.

So, pkg search glib20 searches for a package named glib20, which doesn=E2=80=99t exist. pkg search devel/glib20 searches for an origin = named devel/glib20, which does e= xist.

Pat

--=_MailMate_5076C960-9223-44E5-ABDA-3B941BDFFA59_=--