[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    Re: [OE-core] [PATCH] Small improvement for the initscripts package
From:       "Burton, Ross" <ross.burton () intel ! com>
Date:       2017-09-29 16:28:43
Message-ID: CAJTo0LbM9JenyrSNhyGztA9A2JU5uHY5HJcsTNt6fH885F4M8w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 29 September 2017 at 14:21, <Jef.Driesen@niko.eu> wrote:

> On 09/29/2017 11:38 AM, Jef.Driesen@niko.eu wrote:
> >> For our system, we are using some custom initscripts. Because of
> >> that, some files conflict with the initscripts package, and thus the
> >> initscript package gets removed from our build. But when trying to
> >> build an sdk, somehow the initscripts-dev package gets pulled in, and
> >> since that has an automatic dependency on initscripts, our build
> >> fails.
> >
> > Please do find out why this happens; that's what you really need to fix.
>
> I tried, but I couldn't figure out where this came from.
>
> >> I've been trying to find out why this happens, but without much
> >> success so far. But I did found a simple workaround: remove the
> >> initscripts-dev package completely. Since the initscripts recipe
> >> contains some shell scripts the initscript-dev is empty anyway.
> >>
> >> I've fixed this locally with a bbappend, but this is probably
> >> something that can be applied upstream.
> >
> > You can use bbappend to instead replace the standard files with the ones
> > that you want installed. Or you can add PROVIDES = "initscripts" to your
> > recipe with the 'custom' initscripts, and set
> > PREFERRED_PROVIDER_initscripts = "my-custom-initscripts" to have that
> > installed.
>
> Those custom initscripts are not in our own layer. It's in a layer we
> build upon. So it's a bit more complex.
>
> Anyway, what we have there is the following. In the machine conf file
> there is:
>
> VIRTUAL-RUNTIME_initscripts = ""
>
> This replaces the default meta/recipes-core/packagegroups/packagegroup-
> core-boot.bb:
>
> VIRTUAL-RUNTIME_initscripts ?= "initscripts"
>
> So I assume that's how they remove the initscripts package. And then in
> the image recipe they have:
>
> PACKAGE_EXCLUDE += "initscripts-dev"
>
> But for some reason this doesn't work for us. It fails with this error:
>

I'd definitely be curious as to where initscripts is coming from in the
SDK.  You can use bitbake -g <target> to generate dependency charts.

Ross

[Attachment #5 (text/html)]

<div dir="ltr">On 29 September 2017 at 14:21,  <span dir="ltr">&lt;<a \
href="mailto:Jef.Driesen@niko.eu" target="_blank">Jef.Driesen@niko.eu</a>&gt;</span> \
wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span class="">On 09/29/2017 11:38 AM, <a \
href="mailto:Jef.Driesen@niko.eu">Jef.Driesen@niko.eu</a> wrote:<br> &gt;&gt; For our \
system, we are using some custom initscripts. Because of<br> &gt;&gt; that, some \
files conflict with the initscripts package, and thus the<br> &gt;&gt; initscript \
package gets removed from our build. But when trying to<br> &gt;&gt; build an sdk, \
somehow the initscripts-dev package gets pulled in, and<br> &gt;&gt; since that has \
an automatic dependency on initscripts, our build<br> &gt;&gt; fails.<br>
&gt;<br>
&gt; Please do find out why this happens; that&#39;s what you really need to fix.<br>
<br>
</span>I tried, but I couldn&#39;t figure out where this came from.<br>
<span class=""><br>
&gt;&gt; I&#39;ve been trying to find out why this happens, but without much<br>
&gt;&gt; success so far. But I did found a simple workaround: remove the<br>
&gt;&gt; initscripts-dev package completely. Since the initscripts recipe<br>
&gt;&gt; contains some shell scripts the initscript-dev is empty anyway.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve fixed this locally with a bbappend, but this is probably<br>
&gt;&gt; something that can be applied upstream.<br>
&gt;<br>
&gt; You can use bbappend to instead replace the standard files with the ones<br>
&gt; that you want installed. Or you can add PROVIDES = &quot;initscripts&quot; to \
your<br> &gt; recipe with the &#39;custom&#39; initscripts, and set<br>
&gt; PREFERRED_PROVIDER_initscripts = &quot;my-custom-initscripts&quot; to have \
that<br> &gt; installed.<br>
<br>
</span>Those custom initscripts are not in our own layer. It&#39;s in a layer we \
build upon. So it&#39;s a bit more complex.<br> <br>
Anyway, what we have there is the following. In the machine conf file there is:<br>
<br>
VIRTUAL-RUNTIME_initscripts = &quot;&quot;<br>
<br>
This replaces the default meta/recipes-core/<wbr>packagegroups/<a \
href="http://packagegroup-core-boot.bb" rel="noreferrer" \
target="_blank">packagegroup-<wbr>core-boot.bb</a>:<br> <br>
VIRTUAL-RUNTIME_initscripts ?= &quot;initscripts&quot;<br>
<br>
So I assume that&#39;s how they remove the initscripts package. And then in the image \
recipe they have:<br> <br>
PACKAGE_EXCLUDE += &quot;initscripts-dev&quot;<br>
<br>
But for some reason this doesn&#39;t work for us. It fails with this \
error:<br></blockquote><div><br></div><div>I&#39;d definitely be curious as to where \
initscripts is coming from in the SDK.   You can use bitbake -g &lt;target&gt; to \
generate dependency charts.</div><div><br></div><div>Ross  </div></div></div></div>



-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic