Bug 9802 - [internalsolv] Package install upgrades dependency unnecessarily
Summary: [internalsolv] Package install upgrades dependency unnecessarily
Status: RESOLVED FIXED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: 0.3.2
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Alejandro del Castillo
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-06-18 00:07 UTC by Michael Hansen
Modified: 2016-06-24 15:35 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
Regression test for 9802 (426 bytes, text/plain)
2016-06-18 00:09 UTC, Michael Hansen
no flags Details
Inverse test case (573 bytes, text/plain)
2016-06-21 18:01 UTC, Michael Hansen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hansen 2016-06-18 00:07:34 UTC
Assuming:
* Package 'b' is installed at version 1.0
* Package 'b' has both a version 1.0 and version 2.0 available
* Package 'a' is not installed but available
* Package 'a' has a dependency on package 'b' (no version constraints)

Perform:
* install package 'a'

Expected behavior:
* Package 'a' is installed at the latest version.
* Package 'b' is kept at version 1.0

Actual behavior:
* Package 'b' is upgraded unnecessarily to version 2.0

This was tested with opkg 0.3.1 and opkg 0.3.2
Comment 1 Michael Hansen 2016-06-18 00:09:00 UTC
Created attachment 3239 [details]
Regression test for 9802
Comment 2 Alejandro del Castillo 2016-06-20 21:00:54 UTC
Issue only for internal solver, libsolv backend works as expected
Comment 3 Michael Hansen 2016-06-21 18:01:00 UTC
Created attachment 3242 [details]
Inverse test case

Apparently my patch causes the inverse to fail:  Installing package 'a' causes 'b' to get *downgraded* unnecessarily.  I'll keep investigating, but here's another regression test for now.
Comment 4 Alejandro del Castillo 2016-06-24 15:35:15 UTC
fixed on commit 5ed74b2c67c92ece9ed9d70bb5df5844a4ed0105