pkg_info -Q shows incomplete package results on 6.6 release/stable

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

pkg_info -Q shows incomplete package results on 6.6 release/stable

Morgan Aldridge
>Synopsis:      `pkg_info -Q` shows incomplete package results on 6.6
release/stable
>Category:      package management
>Environment:

        System      : OpenBSD 6.6

        Details     : OpenBSD 6.6 (GENERIC.MP) #4: Wed Jan 15 10:55:43 MST
2020
                         [hidden email]:
/usr/src/sys/arch/amd64/compile/GENERIC.MP


        Architecture: OpenBSD.amd64

        Machine     : amd64

>Description:

        Running `pkg_info -Q ruby` on 6.6 release/stable results in a
subset \
of matching packages, specifically those from packages-stable. One must \
manually specify a PKG_PATH for release to get the remaining matching \
packages.
>How-To-Repeat:

        pkg_info -Q ruby
>Fix:

        PKG_PATH=https://ftp.openbsd.org/pub/OpenBSD/6.6/packages/amd64
pkg_info -Q ruby
--
Morgan
---
http://makkintosshu.com/
http://centresteer.com/
http://seriesparts.com/
http://unna.org/
Reply | Threaded
Open this post in threaded view
|

Re: pkg_info -Q shows incomplete package results on 6.6 release/stable

Marc Espie-2
On Mon, Feb 10, 2020 at 09:23:24PM -0500, Morgan Aldridge wrote:

> >Synopsis:      `pkg_info -Q` shows incomplete package results on 6.6
> release/stable
> >Category:      package management
> >Environment:
>
>         System      : OpenBSD 6.6
>
>         Details     : OpenBSD 6.6 (GENERIC.MP) #4: Wed Jan 15 10:55:43 MST
> 2020
>                          [hidden email]:
> /usr/src/sys/arch/amd64/compile/GENERIC.MP
>
>
>         Architecture: OpenBSD.amd64
>
>         Machine     : amd64
>
> >Description:
>
>         Running `pkg_info -Q ruby` on 6.6 release/stable results in a
> subset \
> of matching packages, specifically those from packages-stable. One must \
> manually specify a PKG_PATH for release to get the remaining matching \
> packages.

Thanks, the man page for pkg_info needs some love. Specifically, the
description of -Q is a lie. It will look in installurl and/or PKG_PATH.

Search *by design* stops at the first repository where matching packages are
found.

I won't change that behavior, but I can probably ask -a to look further.

This requires surgery in Search.pm, don't hold your horses.

Reply | Threaded
Open this post in threaded view
|

Re: pkg_info -Q shows incomplete package results on 6.6 release/stable

Marc Espie-2
On Tue, Feb 18, 2020 at 12:26:05PM +0100, Marc Espie wrote:

> On Mon, Feb 10, 2020 at 09:23:24PM -0500, Morgan Aldridge wrote:
> > >Synopsis:      `pkg_info -Q` shows incomplete package results on 6.6
> > release/stable
> > >Category:      package management
> > >Environment:
> >
> >         System      : OpenBSD 6.6
> >
> >         Details     : OpenBSD 6.6 (GENERIC.MP) #4: Wed Jan 15 10:55:43 MST
> > 2020
> >                          [hidden email]:
> > /usr/src/sys/arch/amd64/compile/GENERIC.MP
> >
> >
> >         Architecture: OpenBSD.amd64
> >
> >         Machine     : amd64
> >
> > >Description:
> >
> >         Running `pkg_info -Q ruby` on 6.6 release/stable results in a
> > subset \
> > of matching packages, specifically those from packages-stable. One must \
> > manually specify a PKG_PATH for release to get the remaining matching \
> > packages.
>
> Thanks, the man page for pkg_info needs some love. Specifically, the
> description of -Q is a lie. It will look in installurl and/or PKG_PATH.
>
> Search *by design* stops at the first repository where matching packages are
> found.
>
> I won't change that behavior, but I can probably ask -a to look further.
>
> This requires surgery in Search.pm, don't hold your horses.
>
>
According to plan, Search.pm/PackageRepository.pm and pkg_info in -current
now feature -aQ  to query *all* repos instead of stopping at the first one
with matching searches.

Reply | Threaded
Open this post in threaded view
|

Re: pkg_info -Q shows incomplete package results on 6.6 release/stable

Morgan Aldridge
On Wed, Feb 19, 2020 at 09:25 Marc Espie <[hidden email]> wrote:

> On Tue, Feb 18, 2020 at 12:26:05PM +0100, Marc Espie wrote:
> > On Mon, Feb 10, 2020 at 09:23:24PM -0500, Morgan Aldridge wrote:
> > > >Synopsis:      `pkg_info -Q` shows incomplete package results on 6.6
> > > release/stable
> > > >Category:      package management
> > > >Environment:
> > >
> > >         System      : OpenBSD 6.6
> > >
> > >         Details     : OpenBSD 6.6 (GENERIC.MP) #4: Wed Jan 15
> 10:55:43 MST
> > > 2020
> > >                          [hidden email]:
> > > /usr/src/sys/arch/amd64/compile/GENERIC.MP
> > >
> > >
> > >         Architecture: OpenBSD.amd64
> > >
> > >         Machine     : amd64
> > >
> > > >Description:
> > >
> > >         Running `pkg_info -Q ruby` on 6.6 release/stable results in a
> > > subset \
> > > of matching packages, specifically those from packages-stable. One
> must \
> > > manually specify a PKG_PATH for release to get the remaining matching \
> > > packages.
> >
> > Thanks, the man page for pkg_info needs some love. Specifically, the
> > description of -Q is a lie. It will look in installurl and/or PKG_PATH.
> >
> > Search *by design* stops at the first repository where matching packages
> are
> > found.
> >
> > I won't change that behavior, but I can probably ask -a to look further.
> >
> > This requires surgery in Search.pm, don't hold your horses.
> >
> According to plan, Search.pm/PackageRepository.pm and pkg_info in -current
> now feature -aQ  to query *all* repos instead of stopping at the first one
> with matching searches.


Many thanks, Marc!

> --
Morgan
---
http://makkintosshu.com/
http://centresteer.com/
http://seriesparts.com/
http://unna.org/