Bug 8913 - [internalsolv] Upgrade of package with a replacee provided by the package itself fails
Summary: [internalsolv] Upgrade of package with a replacee provided by the package its...
Status: RESOLVED FIXED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: 0.3.1
Hardware: x86 Multiple
: Undecided major
Target Milestone: ---
Assignee: Alejandro del Castillo
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-01-12 21:58 UTC by Alejandro del Castillo
Modified: 2016-01-19 17:24 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro del Castillo 2016-01-12 21:58:05 UTC
If package A replaces virtual package B, and B is provided by A, then package A upgrades will fail. 

The upgrade will fail since the old version of package A is removed twice: first (incorrectly) on pkg_remove_installed_replacees, then during the upgrade operation. Package A should not be added to the replacees list.

Problem is present in both solvers (internal and libsolv).
Comment 1 Alejandro del Castillo 2016-01-12 23:02:42 UTC
Actually this failure is only present on the internal solver. The libsolv backend does it's own resolution Provides/Replaces/Conflicts.
Comment 2 Alejandro del Castillo 2016-01-19 17:24:28 UTC
fixed by 7885da3974de2df1baba220200d55920fb530e25