Date: Mon, 28 Nov 2022 17:57:25 -0800 From: "Pat Maddox" <pat@patmaddox.com> To: "Graham Perrin" <grahamperrin@freebsd.org> Cc: freebsd-pkg@freebsd.org Subject: Re: devel/glib20 packages 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--=_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 > <https://www.freshports.org/devel/glib20/#packages>? > > ---- > > % 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 <!DOCTYPE html> <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/xhtml; charset=3Dutf-8"= > </head> <body> <div style=3D"font-family:sans-serif"><div style=3D"white-space:normal"> <p dir=3D"auto">On 28 Nov 2022, at 15:59, Graham Perrin wrote:</p> </div> <div style=3D"white-space:normal"></div> <blockquote style=3D"border-left:2px solid #777; color:#777; margin:0 0 5= px; padding-left:5px"><div id=3D"39E87330-2611-4CC2-89D9-D1A480A383FE"> = <p>I'm confused. <br> </p> <p>If <span style=3D"font-family:monospace"><span style=3D"color:#000000;background-color:#ffffff;">pkg search -r= FreeBSD devel/glib20</span></span> <b>does</b> find the package, then why does <span style=3D"font-family:monospace"><span style=3D"color:#000000;background-color:#ffffff;">pkg search -r= FreeBSD glib20</span></span> <b>not</b> find the package? <br> </p> <p>Also, why the emptiness at <a class=3D"moz-txt-link-rfc2396E" href=3D"https://www.freshports.o= rg/devel/glib20/#packages"><https://www.freshports.org/devel/glib20/#p= ackages></a>? <br> </p> <p>----<br> </p> <p><span style=3D"font-family:monospace"><span style=3D"color:#000000;background-color:#ffffff;">% pkg search glib20 </span><br> % pkg search -r FreeBSD glib20 <br> % pkg search -r FreeBSD devel/glib20 <br> 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) <br> % pkg info -x devel/glib20 <br> glib-2.74.1,2 <br> % <br> <br> </span></p> = <lt-container></lt-container></div></blockquote> <div style=3D"white-space:normal"> <blockquote style=3D"border-left:2px solid #777; color:#777; margin:0 0 5= px; padding-left:5px"> </blockquote></div> <div style=3D"white-space:normal"> <p dir=3D"auto">Not sure about the emptiness.</p> <p dir=3D"auto">The answer to your first question is found in <a href=3D"= https://www.freebsd.org/cgi/man.cgi?pkg-search" style=3D"color:#3983C4">p= kg-search(8)</a>:</p> <pre style=3D"background-color:#F7F7F7; border-radius:5px 5px 5px 5px; ma= rgin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; paddi= ng:5px" bgcolor=3D"#F7F7F7"><code style=3D"background-color:#F7F7F7; bord= er-radius:3px; margin:0; padding:0" bgcolor=3D"#F7F7F7">-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. </code></pre> <p dir=3D"auto">Looking at the <a href=3D"https://cgit.freebsd.org/ports/= tree/devel/glib20/Makefile" style=3D"color:#3983C4">glib20 Makefile</a>, = you can see that the port name is <code style=3D"background-color:#F7F7F7= ; border-radius:3px; margin:0; padding:0 0.4em" bgcolor=3D"#F7F7F7">glib<= /code>.</p> <p dir=3D"auto">So, <code style=3D"background-color:#F7F7F7; border-radiu= s:3px; margin:0; padding:0 0.4em" bgcolor=3D"#F7F7F7">pkg search glib20</= code> searches for a <em>package</em> named <code style=3D"background-col= or:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor=3D"#F7F= 7F7">glib20</code>, which doesn=E2=80=99t exist. <code style=3D"backgroun= d-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor=3D= "#F7F7F7">pkg search devel/glib20</code> searches for an <em>origin</em> = named <code style=3D"background-color:#F7F7F7; border-radius:3px; margin:= 0; padding:0 0.4em" bgcolor=3D"#F7F7F7">devel/glib20</code>, which does e= xist.</p> <p dir=3D"auto">Pat</p> </div> </div> </body> </html> --=_MailMate_5076C960-9223-44E5-ABDA-3B941BDFFA59_=--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?66F0142C-1E2B-4601-9F70-C943EF485C84>