Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] meta/conf/layer.conf: adapt to more flexible initramfs-framework RDEPENDS
@ 2016-02-08 15:14 Patrick Ohly
  2016-02-09  9:22 ` Patrick Ohly
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Ohly @ 2016-02-08 15:14 UTC (permalink / raw)
  To: openembedded-core

initramfs-framework now RDEPENDS on ${VIRTUAL-RUNTIME_base-utils},
which can be busybox or some alternative like toybox. Making the
SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS exception flexible, too, ensures that
distros using toybox still pass the selftests.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
---
 meta/conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
index 7100ed7..baa4fd4 100644
--- a/meta/conf/layer.conf
+++ b/meta/conf/layer.conf
@@ -46,7 +46,7 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
   ppp-dialin->ppp \
   resolvconf->bash \
   docbook-xsl-stylesheets->perl \
-  initramfs-framework->busybox \
+  initramfs-framework->${VIRTUAL-RUNTIME_base-utils} \
   initramfs-framework->systemd \
   initramfs-framework->udev \
   liberation-fonts->fontconfig \
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] meta/conf/layer.conf: adapt to more flexible initramfs-framework RDEPENDS
  2016-02-08 15:14 [PATCH] meta/conf/layer.conf: adapt to more flexible initramfs-framework RDEPENDS Patrick Ohly
@ 2016-02-09  9:22 ` Patrick Ohly
  2016-02-09 13:49   ` Patrick Ohly
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Ohly @ 2016-02-09  9:22 UTC (permalink / raw)
  To: openembedded-core, Joya Cruz, Alejandro

On Mon, 2016-02-08 at 16:14 +0100, Patrick Ohly wrote:
> initramfs-framework now RDEPENDS on ${VIRTUAL-RUNTIME_base-utils},
> which can be busybox or some alternative like toybox. Making the
> SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS exception flexible, too, ensures that
> distros using toybox still pass the selftests.
> 
> Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
> ---
>  meta/conf/layer.conf | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
> index 7100ed7..baa4fd4 100644
> --- a/meta/conf/layer.conf
> +++ b/meta/conf/layer.conf
> @@ -46,7 +46,7 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
>    ppp-dialin->ppp \
>    resolvconf->bash \
>    docbook-xsl-stylesheets->perl \
> -  initramfs-framework->busybox \
> +  initramfs-framework->${VIRTUAL-RUNTIME_base-utils} \
>    initramfs-framework->systemd \
>    initramfs-framework->udev \
>    liberation-fonts->fontconfig \

Was VIRTUAL-RUNTIME_base-utils meant to be a single word?

I just noticed that toybox does not provide a /bin/sh out-of-the-box,
and even when enabled the resulting sh is not complete enough to execute
initramfs-framework scripts.

That means that VIRTUAL-RUNTIME_base-utils = "toybox" leads to an
unusable initramfs when replacing "busybox" with
${VIRTUAL-RUNTIME_base-utils} in initramfs-framwork.

This could be fixed by setting
  VIRTUAL-RUNTIME_base-utils = "toybox dash"
but then the patch above needs to be fixed.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] meta/conf/layer.conf: adapt to more flexible initramfs-framework RDEPENDS
  2016-02-09  9:22 ` Patrick Ohly
@ 2016-02-09 13:49   ` Patrick Ohly
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick Ohly @ 2016-02-09 13:49 UTC (permalink / raw)
  To: openembedded-core

On Tue, 2016-02-09 at 10:22 +0100, Patrick Ohly wrote:
> On Mon, 2016-02-08 at 16:14 +0100, Patrick Ohly wrote:
> > initramfs-framework now RDEPENDS on ${VIRTUAL-RUNTIME_base-utils},
> > which can be busybox or some alternative like toybox. Making the
> > SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS exception flexible, too, ensures that
> > distros using toybox still pass the selftests.
> > 
> > Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
> > ---
> >  meta/conf/layer.conf | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
> > index 7100ed7..baa4fd4 100644
> > --- a/meta/conf/layer.conf
> > +++ b/meta/conf/layer.conf
> > @@ -46,7 +46,7 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
> >    ppp-dialin->ppp \
> >    resolvconf->bash \
> >    docbook-xsl-stylesheets->perl \
> > -  initramfs-framework->busybox \
> > +  initramfs-framework->${VIRTUAL-RUNTIME_base-utils} \
> >    initramfs-framework->systemd \
> >    initramfs-framework->udev \
> >    liberation-fonts->fontconfig \
> 
> Was VIRTUAL-RUNTIME_base-utils meant to be a single word?

Apparently it was, for the sake of consistency with other
VIRTUAL-RUNTIME variables.

> I just noticed that toybox does not provide a /bin/sh out-of-the-box,
> and even when enabled the resulting sh is not complete enough to execute
> initramfs-framework scripts.
> 
> That means that VIRTUAL-RUNTIME_base-utils = "toybox" leads to an
> unusable initramfs when replacing "busybox" with
> ${VIRTUAL-RUNTIME_base-utils} in initramfs-framwork.

A better fix is probably to make toybox a full replacement (eventually)
or make it RDEPEND on the missing pieces (current solution, for those
who want it as busybox replacement).

> This could be fixed by setting
>   VIRTUAL-RUNTIME_base-utils = "toybox dash"
> but then the patch above needs to be fixed.

No, let's keep the patch as it is.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-09 13:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-08 15:14 [PATCH] meta/conf/layer.conf: adapt to more flexible initramfs-framework RDEPENDS Patrick Ohly
2016-02-09  9:22 ` Patrick Ohly
2016-02-09 13:49   ` Patrick Ohly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox