Bug 2074313
Summary: | python3-netaddr | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ladar Levison <ladar> |
Component: | python-netaddr | Assignee: | John Eckersberg <jeckersb> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 35 | CC: | ftrivino, jcholast, jeckersb, jhrozek, orion |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-netaddr-0.8.0-7.fc37 python-netaddr-0.8.0-8.fc36 python-netaddr-0.8.0-8.fc35 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-04-12 16:13:27 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ladar Levison
2022-04-11 23:38:56 UTC
Fixing component. python3-netaddr is for EPEL only. Thanks for filing this! This is probably a good use case for a weak dependency[1]. I think the vast majority of netaddr use is via the library, and not the netaddr shell (the fact that it took this long for someone to notice and file a bug supports that). To minimize the install footprint it would be better to make ipython optional still. There's no reason to force things like container images to pull in ipython unnecessarily. A cursory glance on a bare f35 container shows adding ipython adds an extra 27Mb to the installed size. If that sounds reasonable to you, can you update the pull request to change "Requires:" to "Recommends:" ? [1] https://fedoraproject.org/wiki/Packaging:WeakDependencies#Weak_dependencies Updated the PR, and switched Requires to Recommends. I was looking for a CLI tool, so it caught me off-guard when I installed the package, and the CLI command it provided didn't run. But you're right, the netaddr command isn't really intended as a typical CLI command, and IPython, is bit heavy/large to install for everyone, given that most users only need the library, and not the netaddr. If the package was larger, and/or more popular, splitting the library and netaddr command into separate packages might make sense. But with the niche use case, I think your right, to go with a weak dependency. As it happened, when I hit that error, I checked the SPEC file to see what other dependencies might be required/suggested, and see if it showed what the specific package was that I'd need to install. Weak dependencies are one of the few things I think APT does better than YUM/DNF. It shows the user suggested additions when they install a package, which is a good way of letting the user know they might need X package to use all of the functionality provided by what's being installed. With YUM/DNF it's cumbersome to get this same data using DNF (dnf depends --reccomends PKG), and most RPMs haven't been updated to provide this info. Hopefully that will change in the future. I've been waiting for someone to add reccomended packages to the description that gets returned by the "info" command. And/or show this info during installs, but it hasn't happened. FEDORA-2022-14daa98dad has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-14daa98dad FEDORA-2022-14daa98dad has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report. Seems to work as expected: [root@ffc7ae8507f0 /]# dnf install https://kojipkgs.fedoraproject.org//packages/python-netaddr/0.8.0/7.fc37/noarch/python3-netaddr-0.8.0-7.fc37.noarch.rpm Last metadata expiration check: 0:38:11 ago on Tue Apr 12 15:35:38 2022. python3-netaddr-0.8.0-7.fc37.noarch.rpm 3.2 MB/s | 1.5 MB 00:00 Dependencies resolved. ================================================================================================================================ Package Architecture Version Repository Size ================================================================================================================================ Installing: python3-netaddr noarch 0.8.0-7.fc37 @commandline 1.5 M Installing dependencies: python3-asttokens noarch 2.0.5-3.fc36 rawhide 37 k python3-backcall noarch 0.1.0-15.fc36 rawhide 26 k python3-decorator noarch 5.1.1-2.fc36 rawhide 27 k python3-executing noarch 0.8.2-2.fc36 rawhide 34 k python3-jedi noarch 0.18.1-2.fc36 rawhide 1.1 M python3-matplotlib-inline noarch 0.1.2-4.fc36 rawhide 20 k python3-parso noarch 0.8.3-1.fc37 rawhide 152 k python3-pexpect noarch 4.8.0-11.fc37 rawhide 136 k python3-pickleshare noarch 0.7.5-8.fc36 rawhide 18 k python3-prompt-toolkit noarch 3.0.29-1.fc37 rawhide 633 k python3-ptyprocess noarch 0.6.0-15.fc36 rawhide 29 k python3-pure-eval noarch 0.2.2-1.fc36 rawhide 28 k python3-pygments noarch 2.11.2-1.fc37 rawhide 2.0 M python3-setuptools noarch 60.9.3-1.fc37 rawhide 1.0 M python3-six noarch 1.16.0-5.fc36 rawhide 36 k python3-stack-data noarch 0.2.0-1.fc37 rawhide 41 k python3-traitlets noarch 5.1.1-3.fc36 rawhide 210 k python3-wcwidth noarch 0.2.5-7.fc36 rawhide 41 k Installing weak dependencies: python3-ipython noarch 8.2.0-1.fc37 rawhide 768 k Transaction Summary ================================================================================================================================ Install 20 Packages Total size: 7.9 M Total download size: 6.4 M Installed size: 39 M Is this ok [y/N]: n Operation aborted. [root@ffc7ae8507f0 /]# dnf install --exclude python3-ipython https://kojipkgs.fedoraproject.org//packages/python-netaddr/0.8.0/7.fc37/noarch/python3-netaddr-0.8.0-7.fc37.noarch.rpm Last metadata expiration check: 0:38:17 ago on Tue Apr 12 15:35:38 2022. python3-netaddr-0.8.0-7.fc37.noarch.rpm 5.6 MB/s | 1.5 MB 00:00 Dependencies resolved. ================================================================================================================================ Package Architecture Version Repository Size ================================================================================================================================ Installing: python3-netaddr noarch 0.8.0-7.fc37 @commandline 1.5 M Transaction Summary ================================================================================================================================ Install 1 Package Total size: 1.5 M Installed size: 9.4 M Is this ok [y/N]: n Operation aborted. [root@ffc7ae8507f0 /]# FEDORA-2022-5b714bee7f has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-5b714bee7f FEDORA-2022-55a0b797ad has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-55a0b797ad FEDORA-2022-55a0b797ad has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-55a0b797ad` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-55a0b797ad See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2022-5b714bee7f has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-5b714bee7f` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-5b714bee7f See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2022-522546aa59 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-522546aa59 FEDORA-2022-b8856debaa has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-b8856debaa FEDORA-2022-522546aa59 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-522546aa59` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-522546aa59 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2022-b8856debaa has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-b8856debaa` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-b8856debaa See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2022-522546aa59 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2022-b8856debaa has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report. |