Bug 2251835 - repoquery shows nonexisting dependency (for ocsinventory-agent, possibly others)
Summary: repoquery shows nonexisting dependency (for ocsinventory-agent, possibly others)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ocsinventory-agent
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Pat Riehecky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-28 00:55 UTC by Michal Ambroz
Modified: 2023-12-07 02:07 UTC (History)
10 users (show)

Fixed In Version: ocsinventory-agent-2.10.0-4.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-12-07 02:07:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Ambroz 2023-11-28 00:55:46 UTC
Hello, 
it seems that repoquery is sometimes showing non-existing dependencies.

For example it shows that ocsinventory-agent (perl) depends on macromilter (python), but it is not true:
$ repoquery --whatrequires macromilter --releasever=39 --disablerepo=* --enablerepo=fedora
Last metadata expiration check: 0:04:19 ago on Tue 28 Nov 2023 01:47:12 AM CET.
ocsinventory-agent-0:2.10.0-3.fc39.x86_64

But ocsinventory-agent doesn't require the macromilter:
wget https://kojipkgs.fedoraproject.org//packages/ocsinventory-agent/2.10.0/3.fc39/x86_64/ocsinventory-agent-2.10.0-3.fc39.x86_64.rpm


Reproducible: Always

Steps to Reproduce:
1. repoquery --whatrequires macromilter --releasever=39 --disablerepo=* --enablerepo=fedora
2. dnf install ocsinventory-agent
3. rpm -q --requires ocsinventory-agent
Actual Results:  
$ rpm -qp --requires ocsinventory-agent-2.10.0-3.fc39.x86_64.rpm 
/bin/sh
/etc/logrotate.d
config(ocsinventory-agent) = 2.10.0-3.fc39
dmidecode
libx86
perl-Ocsinventory-Agent = 2.10.0-3.fc39
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1
systemd

... there is no python and/or macromilter

Comment 1 amatej 2023-11-28 07:07:36 UTC
This is because of a file provide.
As you can see in your output ocsinventory-agent requires "/etc/logrotate.d" and macromilter has that directory.

root@88f4e7807408 ~/dbox/src/repo $ rpm -qlp macromilter-3.7.0-0.12.20191111git2761838.fc39.noarch.rpm
/etc/logrotate.d
/etc/logrotate.d/macromilter
/etc/macromilter
/etc/macromilter/config.yaml
/run/macromilter
/usr/bin/macromilter
/usr/lib/systemd/system/macromilter.service
/usr/lib/tmpfiles.d/macromilter.conf
/usr/share/doc/macromilter
/usr/share/doc/macromilter/README.fedora
/usr/share/doc/macromilter/README.md
/usr/share/licenses/macromilter
/usr/share/licenses/macromilter/LICENSE.md
/var/lib/macromilter
/var/log/macromilter

I think we should move the bug to ocsinventory-agent because that require looks like a mistake to me.
If they want to depend on logrotate they should do so directly with: Requires: logrotate.

Comment 2 Fedora Update System 2023-11-28 14:40:47 UTC
FEDORA-2023-6fdbf9e906 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-6fdbf9e906

Comment 3 Fedora Update System 2023-11-29 03:02:24 UTC
FEDORA-2023-6fdbf9e906 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-6fdbf9e906`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-6fdbf9e906

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2023-12-07 02:07:11 UTC
FEDORA-2023-6fdbf9e906 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.