Bug 1230183
| Summary: | Package update does not work when package changes from noarch <-> arch | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Vít Ondruch <vondruch> | ||||
| Component: | dnf | Assignee: | rpm-software-management | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 23 | CC: | h.reindl, ignatenko, jsilhan, jzeleny, mluscon, packaging-team-maint, pnemade, tim.lauridsen, vmukhame, vondruch | ||||
| Target Milestone: | --- | Keywords: | Regression, Reopened, Triaged | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | dnf-1.1.10-1.fc24 dnf-1.1.10-1.fc23 dnf-1.1.10-1.fc25 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-08-19 19:51:48 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1036614 | ||||||
| Attachments: |
|
||||||
|
Description
Vít Ondruch
2015-06-10 12:12:28 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle. Changing version to '23'. (As we did not run this process for some time, it could affect also pre-Fedora 23 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23 I am not sure what would Fedora packaging guideline say on this? Vit, how does yum handle it? (In reply to Jan Silhan from comment #2) > I am not sure what would Fedora packaging guideline say on this? Do you have any specific concern? I don't see nothing against guidelines here. > Vit, how does yum handle it? I have no idea TBH. Ping ... any chance to get this fixed and unblock rubygem-{bson,mongo,mongoid} update?
Just for the record, RPM itself updates the package just fine although it keeps rubygem-bson_ext behind:
# rpm -q rubygem-bson
rubygem-bson-1.10.2-2.fc23.noarch
# rpm -q rubygem-bson_ext
rubygem-bson_ext-1.10.2-4.fc23.x86_64
# rpm -Uvh /builddir/build/RPMS/rubygem-bson-3.0.4-1.fc24.x86_64.rpm
warning: Generating 2 missing index(es), please wait...
Preparing... ################################# [100%]
Updating / installing...
1:rubygem-bson-3.0.4-1.fc24 ################################# [ 50%]
Cleaning up / removing...
2:rubygem-bson-1.10.2-2.fc23 ################################# [100%]
# rpm -q rubygem-bson
rubygem-bson-3.0.4-1.fc24.x86_64
# rpm -q rubygem-bson_ext
rubygem-bson_ext-1.10.2-4.fc23.x86_64
YUM handles the situation as well: Yum command has been deprecated, use dnf instead. See 'man dnf' and 'man yum2dnf' for more information. Examining /var/lib/mock/fedora-rawhide-x86_64/result/rubygem-bson-3.0.4-1.fc24.x86_64.rpm: rubygem-bson-3.0.4-1.fc24.x86_64 Marking /var/lib/mock/fedora-rawhide-x86_64/result/rubygem-bson-3.0.4-1.fc24.x86_64.rpm as an update to rubygem-bson-1.10.2-2.fc23.noarch Resolving Dependencies --> Running transaction check ---> Package rubygem-bson.noarch 0:1.10.2-2.fc23 will be updated ---> Package rubygem-bson.x86_64 0:3.0.4-1.fc24 will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: rubygem-bson x86_64 3.0.4-1.fc24 /rubygem-bson-3.0.4-1.fc24.x86_64 99 k Transaction Summary ================================================================================ Upgrade 1 Package Total size: 99 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction (shutdown inhibited) Updating : rubygem-bson-3.0.4-1.fc24.x86_64 1/2 Cleanup : rubygem-bson-1.10.2-2.fc23.noarch 2/2 Verifying : rubygem-bson-3.0.4-1.fc24.x86_64 1/2 Verifying : rubygem-bson-1.10.2-2.fc23.noarch 2/2 Updated: rubygem-bson.x86_64 0:3.0.4-1.fc24 Complete! It even removes the bson_ext with correct obsoletes/provides:
Yum command has been deprecated, use dnf instead.
See 'man dnf' and 'man yum2dnf' for more information.
Examining /var/lib/mock/fedora-rawhide-x86_64/result/rubygem-bson-3.0.4-1.fc24.x86_64.rpm: rubygem-bson-3.0.4-1.fc24.x86_64
Marking /var/lib/mock/fedora-rawhide-x86_64/result/rubygem-bson-3.0.4-1.fc24.x86_64.rpm as an update to rubygem-bson-1.10.2-2.fc23.noarch
Resolving Dependencies
--> Running transaction check
---> Package rubygem-bson.noarch 0:1.10.2-2.fc23 will be updated
---> Package rubygem-bson.x86_64 0:3.0.4-1.fc24 will be obsoleting
---> Package rubygem-bson_ext.x86_64 0:1.10.2-4.fc23 will be obsoleted
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
rubygem-bson x86_64 3.0.4-1.fc24 /rubygem-bson-3.0.4-1.fc24.x86_64 99 k
replacing rubygem-bson_ext.x86_64 1.10.2-4.fc23
Transaction Summary
================================================================================
Install 1 Package
Total size: 99 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction (shutdown inhibited)
Installing : rubygem-bson-3.0.4-1.fc24.x86_64 1/3
Erasing : rubygem-bson_ext-1.10.2-4.fc23.x86_64 2/3
Cleanup : rubygem-bson-1.10.2-2.fc23.noarch 3/3
Verifying : rubygem-bson-3.0.4-1.fc24.x86_64 1/3
Verifying : rubygem-bson-1.10.2-2.fc23.noarch 2/3
Verifying : rubygem-bson_ext-1.10.2-4.fc23.x86_64 3/3
Installed:
rubygem-bson.x86_64 0:3.0.4-1.fc24
Replaced:
rubygem-bson_ext.x86_64 0:1.10.2-4.fc23
Complete!
Finish: run
No via RPM: # rpm -q rubygem-bson rubygem-bson-1.10.2-2.fc23.noarch # rpm -q rubygem-bson_ext rubygem-bson_ext-1.10.2-4.fc23.x86_64 # rpm -Uvh /builddir/build/RPMS/rubygem-bson-3.0.4-1.fc24.x86_64.rpm warning: Generating 2 missing index(es), please wait... Preparing... ################################# [100%] Updating / installing... 1:rubygem-bson-3.0.4-1.fc24 ################################# [ 33%] Cleaning up / removing... 2:rubygem-bson_ext-1.10.2-4.fc23 ################################# [ 67%] 3:rubygem-bson-1.10.2-2.fc23 ################################# [100%] # rpm -q rubygem-bson rubygem-bson-3.0.4-1.fc24.x86_64 # rpm -q rubygem-bson_ext package rubygem-bson_ext is not installed Created attachment 1075768 [details]
rubygem-bson.spec
See the attached bson .spec file I am using for testing
Interesting, it seems that "dnf update" does not work, while "dnf install" updates the package just fine. But "install" is not the command one would use to update the system, right? *** Bug 1341282 has been marked as a duplicate of this bug. *** This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Fixed as part of upcoming DNF 2.0 release. dnf-1.1.10-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-267f843cda dnf-1.1.10-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-8caa619a9e dnf-1.1.10-1.fc24 dnf-plugins-core-0.1.21-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-878284e0d3 dnf-1.1.10-1.fc25, dnf-plugins-core-0.1.21-4.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-8caa619a9e dnf-1.1.10-1.fc23, dnf-plugins-core-0.1.21-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-267f843cda dnf-1.1.10-1.fc24, dnf-plugins-core-0.1.21-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-878284e0d3 dnf-1.1.10-1.fc24, dnf-plugins-core-0.1.21-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. dnf-1.1.10-1.fc23, dnf-plugins-core-0.1.21-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. dnf-1.1.10-1.fc25, dnf-plugins-core-0.1.21-4.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. |