Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285868 - sys-fs/lvm2 has wrong dep order for openrc
Summary: sys-fs/lvm2 has wrong dep order for openrc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-21 22:37 UTC by Jonas Fietz
Modified: 2009-11-04 07:20 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Fietz 2009-09-21 22:37:57 UTC
When using openrc, as soon as one emerges lvm2, it tries to downgrade to baselayout-1.
This is due to the RDEPEND containing "|| ( =sys-apps/baselayout-1* >=sys-apps/openrc-0.4)". This evaluates from left to right, and as baselayout is a dependency of openrc, the left side is always evaluated first and thusly baselayout-1 added as a dependency instead of adding openrc.
The fix is to change the line to
"|| (  >=sys-apps/openrc-0.4 =sys-apps/baselayout-1*)"



Reproducible: Always

Steps to Reproduce:
1.install openrc
2.emerge lvm2
3.observe baselayout being downgraded

Actual Results:  
[ebuild     UD] sys-apps/baselayout-1.12.11.1 [2.0.1] USE="unicode%* -bootstrap% -build -static%" 0 kB [?=>0]
[ebuild  N    ] sys-fs/device-mapper-1.02.24-r1  USE="(-selinux)" 0 kB [0]
[ebuild     U] sys-fs/lvm2-2.02.36 [2.02.45-r2] USE="lvm1 readline static (-clvm) (-cman) (-selinux)" 0 kB [?=>0]


Expected Results:  
Calculating dependencies... done!
[ebuild  N   ] sys-fs/device-mapper-1.02.24-r1  USE="(-selinux)" 0 kB [0]
[ebuild     U] sys-fs/lvm2-2.02.36 [2.02.45-r2] USE="lvm1 readline static (-clvm) (-cman) (-selinux)" 0 kB [?=>0]
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-10-05 11:06:18 UTC
Try it on baselayout1, and it tries to get them to upgrade too much :-( iirc.
Comment 2 Matthias Schwarzott gentoo-dev 2009-10-27 12:45:35 UTC
Does lvm2 has a real dependency on baselayout or openrc?
I think this is not needed. Maybe equivalent to the depend but not forcing up or downgrades is a soft blocker against "<sys-apps/openrc-0.4".
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-10-27 18:57:33 UTC
Current (all in RDEPEND):
"|| ( =sys-apps/baselayout-1* >=sys-apps/openrc-0.4 )"

Options:
1.
"!<sys-apps/openrc-0.4"

2.
"|| ( =sys-apps/baselayout-1* ( =sys-apps/baselayout-2* >=sys-apps/openrc-0.4 ))"

If you have openrc-0.[23]*, you MUST upgrade openrc for LVM to work. I'm not sure that a soft-blocker would do so.

Portage/zmedico: which would be better?
Comment 4 Zac Medico gentoo-dev 2009-10-27 19:17:42 UTC
It seems like the !<sys-apps/openrc-0.4 blocker should work, and it has the advantage of being simpler than the other approaches.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-11-04 07:20:30 UTC
Fixed in CVS with zmedico's suggestion.