Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] bitbake.conf: Add run-parts to HOSTTOOLS
@ 2017-08-24  9:19 André Draszik
  2017-08-24  9:43 ` Patrick Ohly
  2017-08-24 10:18 ` Richard Purdie
  0 siblings, 2 replies; 6+ messages in thread
From: André Draszik @ 2017-08-24  9:19 UTC (permalink / raw)
  To: openembedded-core

From: André Draszik <adraszik@tycoint.com>

ca-certificates runs a postinst task, update-ca-certificates,
which ultimately wants to execute run-parts.

Signed-off-by: André Draszik <adraszik@tycoint.com>
---
 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 334ba2361f..8011689118 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -469,7 +469,7 @@ HOSTTOOLS += " \
     fgrep file find flock g++ gawk gcc getconf getopt git grep gunzip gzip \
     head hostname install ld ldd ln ls make makeinfo md5sum mkdir mknod \
     mktemp mv nm objcopy objdump od patch perl pod2man pr printf pwd python python2 \
-    python2.7 python3 ranlib readelf readlink rm rmdir rpcgen sed sh sha256sum \
+    python2.7 python3 ranlib readelf readlink rm rmdir rpcgen run-parts sed sh sha256sum \
     sleep sort split stat strings strip tail tar tee test touch tr true uname \
     uniq wc wget which xargs \
 "
-- 
2.14.1



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

* Re: [PATCH] bitbake.conf: Add run-parts to HOSTTOOLS
  2017-08-24  9:19 [PATCH] bitbake.conf: Add run-parts to HOSTTOOLS André Draszik
@ 2017-08-24  9:43 ` Patrick Ohly
  2017-08-24 10:18 ` Richard Purdie
  1 sibling, 0 replies; 6+ messages in thread
From: Patrick Ohly @ 2017-08-24  9:43 UTC (permalink / raw)
  To: André Draszik, openembedded-core

On Thu, 2017-08-24 at 10:19 +0100, André Draszik wrote:
> From: André Draszik <adraszik@tycoint.com>
> 
> ca-certificates runs a postinst task, update-ca-
> certificates,
> which ultimately wants to execute run-parts.
> 
> Signed-off-by: André Draszik <adraszik@tycoint.com>
> ---
>  meta/conf/bitbake.conf | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 334ba2361f..8011689118 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -469,7 +469,7 @@ HOSTTOOLS += " \
>      fgrep file find flock g++ gawk gcc getconf getopt git grep
> gunzip gzip \
>      head hostname install ld ldd ln ls make makeinfo md5sum mkdir
> mknod \
>      mktemp mv nm objcopy objdump od patch perl pod2man pr printf pwd
> python python2 \
> -    python2.7 python3 ranlib readelf readlink rm rmdir rpcgen sed sh
> sha256sum \
> +    python2.7 python3 ranlib readelf readlink rm rmdir rpcgen run-
> parts sed sh sha256sum \
>      sleep sort split stat strings strip tail tar tee test touch tr
> true uname \
>      uniq wc wget which xargs \
>  "

Is run-parts guaranteed to be available on the host?

IMHO it would be better to ensure that run-parts is in recipe-sysroot-
native when installing ca-certificates. PACKAGE_WRITE_DEPS can be set
in ca-certificates.bb for that. I'm just not sure about what provides
run-parts in OE.

-- 
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] 6+ messages in thread

* Re: [PATCH] bitbake.conf: Add run-parts to HOSTTOOLS
  2017-08-24  9:19 [PATCH] bitbake.conf: Add run-parts to HOSTTOOLS André Draszik
  2017-08-24  9:43 ` Patrick Ohly
@ 2017-08-24 10:18 ` Richard Purdie
  2017-08-25 11:03   ` André Draszik
  1 sibling, 1 reply; 6+ messages in thread
From: Richard Purdie @ 2017-08-24 10:18 UTC (permalink / raw)
  To: André Draszik, openembedded-core

On Thu, 2017-08-24 at 10:19 +0100, André Draszik wrote:
> From: André Draszik <adraszik@tycoint.com>
> 
> ca-certificates runs a postinst task, update-ca-certificates,
> which ultimately wants to execute run-parts.
> 
> Signed-off-by: André Draszik <adraszik@tycoint.com>
> ---
>  meta/conf/bitbake.conf | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 334ba2361f..8011689118 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -469,7 +469,7 @@ HOSTTOOLS += " \
>      fgrep file find flock g++ gawk gcc getconf getopt git grep
> gunzip gzip \
>      head hostname install ld ldd ln ls make makeinfo md5sum mkdir
> mknod \
>      mktemp mv nm objcopy objdump od patch perl pod2man pr printf pwd
> python python2 \
> -    python2.7 python3 ranlib readelf readlink rm rmdir rpcgen sed sh
> sha256sum \
> +    python2.7 python3 ranlib readelf readlink rm rmdir rpcgen run-
> parts sed sh sha256sum \
>      sleep sort split stat strings strip tail tar tee test touch tr
> true uname \
>      uniq wc wget which xargs \
>  "

We definitely should not be doing this, there is clearly a dependency
missing somewhere else. ca-certificates should depend on whatever
provides that...

Cheers,

Richard


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

* Re: [PATCH] bitbake.conf: Add run-parts to HOSTTOOLS
  2017-08-24 10:18 ` Richard Purdie
@ 2017-08-25 11:03   ` André Draszik
  2017-08-25 11:05     ` Richard Purdie
  0 siblings, 1 reply; 6+ messages in thread
From: André Draszik @ 2017-08-25 11:03 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

On Thu, 2017-08-24 at 11:18 +0100, Richard Purdie wrote:
> On Thu, 2017-08-24 at 10:19 +0100, André Draszik wrote:
> > From: André Draszik <adraszik@tycoint.com>
> > 
> > ca-certificates runs a postinst task, update-ca-certificates,
> > which ultimately wants to execute run-parts.
> > 
> > Signed-off-by: André Draszik <adraszik@tycoint.com>
> > ---
> >  meta/conf/bitbake.conf | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> > index 334ba2361f..8011689118 100644
> > --- a/meta/conf/bitbake.conf
> > +++ b/meta/conf/bitbake.conf
> > @@ -469,7 +469,7 @@ HOSTTOOLS += " \
> >      fgrep file find flock g++ gawk gcc getconf getopt git grep
> > gunzip gzip \
> >      head hostname install ld ldd ln ls make makeinfo md5sum mkdir
> > mknod \
> >      mktemp mv nm objcopy objdump od patch perl pod2man pr printf pwd
> > python python2 \
> > -    python2.7 python3 ranlib readelf readlink rm rmdir rpcgen sed sh
> > sha256sum \
> > +    python2.7 python3 ranlib readelf readlink rm rmdir rpcgen run-
> > parts sed sh sha256sum \
> >      sleep sort split stat strings strip tail tar tee test touch tr
> > true uname \
> >      uniq wc wget which xargs \
> >  "
> 
> We definitely should not be doing this, there is clearly a dependency
> missing somewhere else. ca-certificates should depend on whatever
> provides that...

In OE, run-parts is provided by debianutils, or by busybox, both of which
don't have a native version in OE.

ca-certificates seems to always have relied on run-parts from the host
environment. OE even carries a patch to make it work with run-parts from
Fedora.

What would be the preferred way to resolve this so?


Cheers,
Andre'



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

* Re: [PATCH] bitbake.conf: Add run-parts to HOSTTOOLS
  2017-08-25 11:03   ` André Draszik
@ 2017-08-25 11:05     ` Richard Purdie
  2017-08-25 11:09       ` André Draszik
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Purdie @ 2017-08-25 11:05 UTC (permalink / raw)
  To: André Draszik, openembedded-core

On Fri, 2017-08-25 at 12:03 +0100, André Draszik wrote:
> On Thu, 2017-08-24 at 11:18 +0100, Richard Purdie wrote:
> > We definitely should not be doing this, there is clearly a
> > dependency
> > missing somewhere else. ca-certificates should depend on whatever
> > provides that...
> In OE, run-parts is provided by debianutils, or by busybox, both of
> which
> don't have a native version in OE.
> 
> ca-certificates seems to always have relied on run-parts from the
> host
> environment. OE even carries a patch to make it work with run-parts
> from
> Fedora.
> 
> What would be the preferred way to resolve this so?

The patches I have in master-next which enable a native version of
debianutils and then add it as a dependency from ca-certificates?

Cheers,

Richard


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

* Re: [PATCH] bitbake.conf: Add run-parts to HOSTTOOLS
  2017-08-25 11:05     ` Richard Purdie
@ 2017-08-25 11:09       ` André Draszik
  0 siblings, 0 replies; 6+ messages in thread
From: André Draszik @ 2017-08-25 11:09 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

On Fri, 2017-08-25 at 12:05 +0100, Richard Purdie wrote:
> The patches I have in master-next which enable a native version of
> debianutils and then add it as a dependency from ca-certificates?

Cool! Hadn't seen those.

Cheers,
Andre'



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

end of thread, other threads:[~2017-08-25 11:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-24  9:19 [PATCH] bitbake.conf: Add run-parts to HOSTTOOLS André Draszik
2017-08-24  9:43 ` Patrick Ohly
2017-08-24 10:18 ` Richard Purdie
2017-08-25 11:03   ` André Draszik
2017-08-25 11:05     ` Richard Purdie
2017-08-25 11:09       ` André Draszik

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