Bug 2239323 - Missing Provides: python3dist on python3-dnf
Summary: Missing Provides: python3dist on python3-dnf
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 39
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Evan Goode
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-17 13:29 UTC by Daniel Milnes
Modified: 2023-10-22 08:24 UTC (History)
8 users (show)

Fixed In Version: dnf-4.18.0-2.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-10-22 08:24:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Milnes 2023-09-17 13:29:07 UTC
I'm not sure if this is intentional, but python3-dnf does not provide `python3dist(dnf)`. This means that tools like `%pyproject_buildrequires` cannot be used on projects which use the Python library for dnf.

Adding `%py_provides python3-dnf` to the spec file is probably the easiest way to fix this.

Reproducible: Always

Steps to Reproduce:
dnf whatprovides 'python3dist(dnf)'
Actual Results:  
dnf should report that python3-dnf provides 'python3dist(dnf)'

Expected Results:  
dnf cannot find any packages which provide 'python3dist(dnf)'

Comment 1 Daniel Milnes 2023-09-17 23:34:31 UTC
> Adding `%py_provides python3-dnf` to the spec file is probably the easiest way to fix this.

I did some more digging, this is incorrect. Those provides are generated by https://src.fedoraproject.org/rpms/python-rpm-generators/blob/rawhide/f/pythondistdeps.py noticing the presence of the `.dist-info` directories.

From what I've seen of the dnf/libdnf repo, I don't think adding those will be easy. I'll leave this bug open in case someone feels like having a look, but I'd understand closing as WONTFIX.

Thanks.

Comment 2 Evan Goode 2023-10-03 21:15:49 UTC
Thanks for your report, we actually had a pull request a couple months ago that resolved this issue for DNF 5, so I've followed the same approach there and prepared a patch for DNF 4: https://github.com/rpm-software-management/dnf/pull/1997. Will close when that is merged.

Comment 3 Evan Goode 2023-10-09 17:27:29 UTC
https://github.com/rpm-software-management/dnf/pull/1997 is merged, moving to POST.

Comment 4 Fedora Update System 2023-10-18 15:10:50 UTC
FEDORA-2023-a066057708 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a066057708

Comment 5 Fedora Update System 2023-10-19 02:17:15 UTC
FEDORA-2023-a066057708 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-a066057708`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-a066057708

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

Comment 6 Fedora Update System 2023-10-20 02:12:29 UTC
FEDORA-2023-a066057708 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-a066057708`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-a066057708

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

Comment 7 Fedora Update System 2023-10-22 08:24:54 UTC
FEDORA-2023-a066057708 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.