Description of problem:
When upgrading Satellite server from 6.10 to 6.11 the following error is returned during the update packages phase.
---> Package rubygem-ffi.x86_64 0:1.4.0-3.el7sat will be obsoleted
--> Processing Dependency: rubygem(ffi) >= 1.0.9 for package: rubygem-openscap-0.4.7-4.el7sat.noarch
--> Processing Dependency: rubygem(ffi) >= 0.5.0 for package: rubygem-rb-inotify-0.9.7-5.el7sat.noarch
--> Finished Dependency Resolution
Error: Package: rubygem-openscap-0.4.7-4.el7sat.noarch (@rhel-7-server-satellite-6.6-rpms)
Requires: rubygem(ffi) >= 1.0.9
Removing: rubygem-ffi-1.4.0-3.el7sat.x86_64 (@rhel-7-server-satellite-6.4-rpms)
rubygem(ffi) = 1.4.0
Obsoleted By: satellite-common-6.11.0-2.el7sat.noarch (rhel-7-server-satellite-6.11-rpms)
Not found
Error: Package: rubygem-rb-inotify-0.9.7-5.el7sat.noarch (@rhel-7-server-satellite-6.6-rpms)
Requires: rubygem(ffi) >= 0.5.0
Removing: rubygem-ffi-1.4.0-3.el7sat.x86_64 (@rhel-7-server-satellite-6.4-rpms)
rubygem(ffi) = 1.4.0
Obsoleted By: satellite-common-6.11.0-2.el7sat.noarch (rhel-7-server-satellite-6.11-rpms)
Not found
Version-Release number of selected component (if applicable):
6.10
How reproducible:
Steps to Reproduce:
1. Install Satellite 6.4
2. Upgrade 6.4 -> 6.5 -> 6.6 -> 6.7 -> 6.8 -> 6.9 -> 6.10
3. Upgrade to 6.11
Actual results:
Upgrade failed
Expected results:
Upgrade succeeds
Additional info:
The upgrade was successful after the rubygem-openscap-0.4.7-4.el7sat.noarch and rubygem-rb-inotify-0.9.7-5.el7sat.noarch packages were removed and the upgrade restarted.
This BZ is about fixing el7 obsoletes (for 6.11 el7)
There is nothing to verify on 6.12 el8 - no such obsoletes.
The fix is only in source - spec file changes are surrounded by %if 0%{?rhel} == 7, no fix present on el8
# rpm -q --obsoletes -p satellite-common-6.12.0-3.el8sat.noarch
<empty>