On Tue, Jan 09, 2024 at 02:34:05PM +0100, Petr Pisar wrote:
V Mon, Jan 08, 2024 at 09:42:41PM +0000, Zbigniew Jędrzejewski-Szmek
napsal(a):
> On Mon, Jan 08, 2024 at 03:26:45PM +0000, Gary Buhrmaster wrote:
> > On Mon, Jan 8, 2024 at 1:37 PM Zbigniew Jędrzejewski-Szmek
> > <zbyszek(a)in.waw.pl> wrote:
> > > $ dnf5 repoquery -l $(dnf5 repoquery --whatprovides '/usr/sbin/*'
--qf '%{name}\n') | rg '/usr/s?bin/' | sed -r
's|(.*)/([^/]*)$|\2|' | sort | uniq -c | rg -w 2
> > >
> > > says that /usr/sbin/{makemap,rpcinfo,rpcbind,sestatus,udevadm}
> > > "shadow" files in /usr/bin. But those are all symlinks, i.e.
they will
> > > need just to be dropped to prevent a FTBFS. I added this list with
> > > four packages to the Scope section.
> >
> > Thanks, but I think the query does not produce
> > all possible results, as I know for a fact that there is
> > a package (exabgp) that has both a /usr/sbin/exabgp-healthcheck
> > and a (different) /usr/bin/exabgp-healthcheck file
> > (which is why I prompted my query, as I expect
> > there might be others (I plan to fix exabgp)).
>
> Indeed. With both dnf-5 and dnf5, the inner repoquery doesn't list exabgp.
(That was supposed to be dnf-4 and dnf5.)
> Either a bug or I'm doing something wrong.
>
Thanks for testing DNF5. I notified DNF5 maintainers
<
https://github.com/rpm-software-management/dnf5/issues/1153>.
$ dnf5 repoquery --whatprovides /usr/sbin/exabgp-healthcheck
exabgp-0:4.2.21-7.fc39.noarch
exabgp-0:4.2.21-8.fc39.noarch
$ dnf5 repoquery --whatprovides '/usr/sbin/exabpg-*'
(no answer)
But
$ dnf5 repoquery --whatprovides '/usr/sbin/mkfs*'
dosfstools-0:4.2-7.fc39.x86_64
e2fsprogs-0:1.47.0-2.fc39.x86_64
xfsprogs-0:6.4.0-1.fc39.i686
xfsprogs-0:6.4.0-1.fc39.x86_64
So a glob works in some cases but not others? I'm confused.
Zbyszek