Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424405 - dev-libs/libcgroup-0.37-r2: services specify to need local for no reason
Summary: dev-libs/libcgroup-0.37-r2: services specify to need local for no reason
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Development Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-01 15:05 UTC by David Klaftenegger
Modified: 2013-01-03 20:34 UTC (History)
3 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 David Klaftenegger 2012-07-01 15:05:30 UTC
/etc/init.d/cgconfig:
depend() {
        need local
}

/etc/init.d/cgred:
depend() {
        need cgconfig local
        use logger
}

libvirtd on my setup requires cgroups to be correctly set up prior to starting. This should be done by cgconfig, but fails due to the service ordering as described above.

Reproducible: Always

Steps to Reproduce:
1. emerge =dev-libs/libcgroup-0.37-r2
Actual Results:  
1) cgconfig and cgred need local
2) cgconfig starts after local

Expected Results:  
cgconfig starts before libvirtd (and by transitivity, before local)

In /etc/conf.d/libvirtd I specified rc_need="cgconfig" to have the desired ordering, which gets ignored due to "need local"
Comment 1 William Hubbs gentoo-dev 2012-07-03 15:25:22 UTC
The issue here is that both the cgconfig and cgred init scripts have
"need local" in their dependencies.
This should be dropped, because all services should run before local.
Comment 2 Sergey Popov gentoo-dev 2013-01-03 20:34:50 UTC
+  03 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> -libcgroup-0.38.ebuild,
+  +libcgroup-0.38-r1.ebuild, -libcgroup-0.39_rc1.ebuild,
+  +libcgroup-0.39_rc1-r1.ebuild, files/cgconfig.initd, files/cgred.initd:
+  Remove dependency on 'local' initscript, wrt bug #424405, revbump