Bug 2027421
| Summary: | awscli will not install with python-rsa 4.8 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jason Montleon <jmontleo> |
| Component: | awscli | Assignee: | David Duncan <davdunc> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | bperkins, davdunc, fedora2021q2, gwync, lantw44, me |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | awscli-1.18.156-3.el8 awscli-1.19.100-3.fc34 awscli-1.21.7-4.fc35 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-12-08 00:33:31 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
Jason Montleon
2021-11-29 15:37:50 UTC
FEDORA-2021-8897853cf4 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-8897853cf4 FEDORA-2021-b248758b4c has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-b248758b4c FEDORA-EPEL-2021-91d16610fd has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-91d16610fd FEDORA-2021-b248758b4c has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-b248758b4c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-b248758b4c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2021-91d16610fd has been pushed to the Fedora EPEL 8 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-91d16610fd See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-8897853cf4 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-2021-8897853cf4` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-8897853cf4 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-28ede6f789 has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-28ede6f789` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-28ede6f789 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. It looks like rather than 4.5.0 the version specified in the 1.21.7 source is 4.8 so the sed on the Fedora 35 package needs to be fixed. sed -i s/4.8/4.9/g setup.py sed -i s/4.8/4.9/g setup.cfg Otherwise it still wants to downgrade the package: $ sudo dnf install awscli --enablerepo=updates-testing Last metadata expiration check: 0:07:54 ago on Mon 06 Dec 2021 07:51:28 AM EST. Dependencies resolved. ======================================================================================================================================================== Package Architecture Version Repository Size ======================================================================================================================================================== Installing: awscli noarch 1.21.7-3.fc35 updates-testing 2.1 M Installing dependencies: paper x86_64 2.3-3.fc35 fedora 31 k perl-IPC-Run3 noarch 0.048-23.fc35 fedora 39 k Installing weak dependencies: groff x86_64 1.22.4-8.fc35 fedora 1.2 M psutils noarch 2.06-2.fc35 fedora 50 k Downgrading: python3-rsa noarch 4.7.2-1.fc35 fedora 58 k Transaction Summary ======================================================================================================================================================== FEDORA-2021-66cfd01562 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-66cfd01562 FEDORA-2021-66cfd01562 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-2021-66cfd01562` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-66cfd01562 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2021-91d16610fd has been pushed to the Fedora EPEL 8 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2021-b248758b4c has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report. This is an insufficient/wrong fix, and the issue is still present, since it's replacing the rsa requirement for Python 2.7, not 3.x. The sed pattern is also IMO far too general, and introduces a risk of future breakage since it's replacing *any* occurrence of "4.5.0". awscli.spec: # https://bugzilla.redhat.com/show_bug.cgi?id=1854288 sed -i s/4.5.0/4.9/g setup.py sed -i s/4.5.0/4.9/g setup.cfg setup.cfg: requires_dist = ... rsa>=3.1.2,<=4.5.0; python_version=='2.7' rsa>=3.1.2,<4.8; python_version>'2.7' setup.py: install_requires = [ ... 'rsa>=3.1.2,<=4.5.0; python_version=="2.7"', 'rsa>=3.1.2,<4.8; python_version>"2.7"', Suggested sed command in awscli.spec: sed -Ei 's/^( *'"'"'?rsa>=[0-9.]+,)<=?[0-9.]+(.*)/\1<4.9\2/g' setup.cfg setup.py Result: $ diff <(cat setup.cfg setup.py) <(sed -E 's/^( *'"'"'?rsa>=[0-9.]+,)<=?[0-9.]+(.*)/\1<4.9\2/g' setup.cfg setup.py) 12,13c12,13 < rsa>=3.1.2,<=4.5.0; python_version=='2.7' < rsa>=3.1.2,<4.8; python_version>'2.7' --- > rsa>=3.1.2,<4.9; python_version=='2.7' > rsa>=3.1.2,<4.9; python_version>'2.7' 66,67c66,67 < 'rsa>=3.1.2,<=4.5.0; python_version=="2.7"', < 'rsa>=3.1.2,<4.8; python_version>"2.7"', --- > 'rsa>=3.1.2,<4.9; python_version=="2.7"', > 'rsa>=3.1.2,<4.9; python_version>"2.7"', Should have said that the above is for Fedora 34, sorry. The spec lines for F35/F36 are as follows, so do (currently) fix the issue, but still have the over-generality issue (as do a bunch of the other sed lines): # https://bugzilla.redhat.com/show_bug.cgi?id=1854288 sed -i s/4.8/4.9/g setup.py sed -i s/4.8/4.9/g setup.cfg I agree that it's problematic; I was present when I started working on these packages and I didn't want to radically disrupt things at the time. Your solution is cleaner; patching doesn't work well as these files change often. FEDORA-2021-66cfd01562 has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report. |