[OE-core] [oe-commits] Christopher Larson : update-rc.d.bbclass: explicitly dep on initscripts

Christopher Larson kergoth at gmail.com
Mon Aug 31 19:45:29 UTC 2015


On Monday, August 31, 2015, Martin Jansa <martin.jansa at gmail.com
<javascript:_e(%7B%7D,'cvml','martin.jansa at gmail.com');>> wrote:

> On Sun, Aug 30, 2015 at 11:48:19AM +0000, git at git.openembedded.org wrote:
> > Module: openembedded-core.git
> > Branch: master
> > Commit: 833302761df924bb503cc2ad04ecae1023381f8f
> > URL:
> http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=833302761df924bb503cc2ad04ecae1023381f8f
> >
> > Author: Christopher Larson <chris_larson at mentor.com>
> > Date:   Mon Aug 24 15:18:34 2015 -0700
> >
> > update-rc.d.bbclass: explicitly dep on initscripts
> >
> > update-rc.d doesn't just want an initscripts package, it wants
> > initscripts-functions. In the case where VIRTUAL-RUNTIME_initscripts is
> set to
> > nothing, update-rc.d still needs initscripts-functions to satisfy its
> runtime
> > dependencies. Further, we shouldn't be using a *runtime* virtual in a
> *build
> > time* variable. This should resolve image creation failures with
> > configurations without sysv initscripts when a recipe inherits
> update-rc.d and
> > doesn't inherit systemd.
> >
> > (From OE-Core rev: e6642ae0849e5ac3174c643a7693af25d829d6d1)
>
> Unfortunately this means that I cannot PNBLACKLIST initscripts recipe in
> DISTRO which provides own initscripts implementation (which also
> provides initscripts-functions).
>
> What's even worse is that I'll have to overlay whole bbclass to get rid
> of this dependency :/


Of course you can. This is a build dependency. Add a PROVIDES +=
"initscripts" + appropriate preferences (or keep your PNBLACKLIST). This is
precisely what provides is for. Alternatively, we could introduce a
virtual/initscripts-functions rather than using 'initscripts' for this. In
either case, you don't need to override anything.


-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150831/42078a50/attachment-0002.html>


More information about the Openembedded-core mailing list