Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally
@ 2017-09-30  8:15 Chen Qi
  2017-09-30  8:15 ` [PATCH 1/1] " Chen Qi
  0 siblings, 1 reply; 5+ messages in thread
From: Chen Qi @ 2017-09-30  8:15 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit fcdfe09d9cc4e2977bd602dfd18f729cd9f6d73d:

  poky.conf: Fix typo (2017-09-26 16:56:10 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib ChenQi/hosttools_testimage
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/hosttools_testimage

Chen Qi (1):
  bitbake.conf: add tools required by testimage to HOSTTOOLS
    conditionally

 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.9.1



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

* [PATCH 1/1] bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally
  2017-09-30  8:15 [PATCH 0/1] bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally Chen Qi
@ 2017-09-30  8:15 ` Chen Qi
  2017-10-14 20:53   ` Andrea Galbusera
  0 siblings, 1 reply; 5+ messages in thread
From: Chen Qi @ 2017-09-30  8:15 UTC (permalink / raw)
  To: openembedded-core

Add tools required by testimage to HOSTTOOLS only when testimage is
inherited. These tools, as described in the comment, are only required
by the testimage task. So this change should not have negtive effect.
This would also solve build error on hosts which miss some tool such as scp.

Signed-off-by: Chen Qi <Qi.Chen@windriver.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 f41680b..94c1f27 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -484,7 +484,7 @@ HOSTTOOLS += " \
 "
 
 # Tools needed to run testimage runtime image testing
-HOSTTOOLS += "ip ping ps scp ssh stty"
+HOSTTOOLS += "${@['', 'ip ping ps scp ssh stty'][bb.data.inherits_class('testimage', d)]}"
 
 # Link to these if present
 HOSTTOOLS_NONFATAL += "aws ccache gcc-ar gpg ld.bfd ld.gold nc sftp socat sudo"
-- 
1.9.1



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

* Re: [PATCH 1/1] bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally
  2017-09-30  8:15 ` [PATCH 1/1] " Chen Qi
@ 2017-10-14 20:53   ` Andrea Galbusera
  2017-10-15  2:01     ` Denys Dmytriyenko
  0 siblings, 1 reply; 5+ messages in thread
From: Andrea Galbusera @ 2017-10-14 20:53 UTC (permalink / raw)
  To: Chen Qi; +Cc: Patches and discussions about the oe-core layer

On Sat, Sep 30, 2017 at 10:15 AM, Chen Qi <Qi.Chen@windriver.com> wrote:
> Add tools required by testimage to HOSTTOOLS only when testimage is
> inherited. These tools, as described in the comment, are only required
> by the testimage task. So this change should not have negtive effect.
> This would also solve build error on hosts which miss some tool such as scp.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.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 f41680b..94c1f27 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -484,7 +484,7 @@ HOSTTOOLS += " \
>  "
>
>  # Tools needed to run testimage runtime image testing
> -HOSTTOOLS += "ip ping ps scp ssh stty"
> +HOSTTOOLS += "${@['', 'ip ping ps scp ssh stty'][bb.data.inherits_class('testimage', d)]}"
>
>  # Link to these if present
>  HOSTTOOLS_NONFATAL += "aws ccache gcc-ar gpg ld.bfd ld.gold nc sftp socat sudo"
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

This one is breaking any recipe that fetches from git repo with
'protocol=ssh' in its SRC_URI... I verified that reverting this one
restores the usual fetcher behaviour. Should ssh be added to HOSTTOOLS
unconditionally or is there any other way to approach it?


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

* Re: [PATCH 1/1] bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally
  2017-10-14 20:53   ` Andrea Galbusera
@ 2017-10-15  2:01     ` Denys Dmytriyenko
  2017-10-15 13:35       ` Andrea Galbusera
  0 siblings, 1 reply; 5+ messages in thread
From: Denys Dmytriyenko @ 2017-10-15  2:01 UTC (permalink / raw)
  To: Andrea Galbusera; +Cc: Patches and discussions about the oe-core layer

On Sat, Oct 14, 2017 at 10:53:03PM +0200, Andrea Galbusera wrote:
> On Sat, Sep 30, 2017 at 10:15 AM, Chen Qi <Qi.Chen@windriver.com> wrote:
> > Add tools required by testimage to HOSTTOOLS only when testimage is
> > inherited. These tools, as described in the comment, are only required
> > by the testimage task. So this change should not have negtive effect.
> > This would also solve build error on hosts which miss some tool such as scp.
> >
> > Signed-off-by: Chen Qi <Qi.Chen@windriver.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 f41680b..94c1f27 100644
> > --- a/meta/conf/bitbake.conf
> > +++ b/meta/conf/bitbake.conf
> > @@ -484,7 +484,7 @@ HOSTTOOLS += " \
> >  "
> >
> >  # Tools needed to run testimage runtime image testing
> > -HOSTTOOLS += "ip ping ps scp ssh stty"
> > +HOSTTOOLS += "${@['', 'ip ping ps scp ssh stty'][bb.data.inherits_class('testimage', d)]}"
> >
> >  # Link to these if present
> >  HOSTTOOLS_NONFATAL += "aws ccache gcc-ar gpg ld.bfd ld.gold nc sftp socat sudo"
> > --
> > 1.9.1
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> 
> This one is breaking any recipe that fetches from git repo with
> 'protocol=ssh' in its SRC_URI... I verified that reverting this one
> restores the usual fetcher behaviour. Should ssh be added to HOSTTOOLS
> unconditionally or is there any other way to approach it?

There's an entire thread discussing it here:
http://lists.openembedded.org/pipermail/openembedded-core/2017-October/143279.html


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

* Re: [PATCH 1/1] bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally
  2017-10-15  2:01     ` Denys Dmytriyenko
@ 2017-10-15 13:35       ` Andrea Galbusera
  0 siblings, 0 replies; 5+ messages in thread
From: Andrea Galbusera @ 2017-10-15 13:35 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: Patches and discussions about the oe-core layer

On Sun, Oct 15, 2017 at 4:01 AM, Denys Dmytriyenko <denis@denix.org> wrote:
> On Sat, Oct 14, 2017 at 10:53:03PM +0200, Andrea Galbusera wrote:
>> On Sat, Sep 30, 2017 at 10:15 AM, Chen Qi <Qi.Chen@windriver.com> wrote:
>> > Add tools required by testimage to HOSTTOOLS only when testimage is
>> > inherited. These tools, as described in the comment, are only required
>> > by the testimage task. So this change should not have negtive effect.
>> > This would also solve build error on hosts which miss some tool such as scp.
>> >
>> > Signed-off-by: Chen Qi <Qi.Chen@windriver.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 f41680b..94c1f27 100644
>> > --- a/meta/conf/bitbake.conf
>> > +++ b/meta/conf/bitbake.conf
>> > @@ -484,7 +484,7 @@ HOSTTOOLS += " \
>> >  "
>> >
>> >  # Tools needed to run testimage runtime image testing
>> > -HOSTTOOLS += "ip ping ps scp ssh stty"
>> > +HOSTTOOLS += "${@['', 'ip ping ps scp ssh stty'][bb.data.inherits_class('testimage', d)]}"
>> >
>> >  # Link to these if present
>> >  HOSTTOOLS_NONFATAL += "aws ccache gcc-ar gpg ld.bfd ld.gold nc sftp socat sudo"
>> > --
>> > 1.9.1
>> >
>> > --
>> > _______________________________________________
>> > Openembedded-core mailing list
>> > Openembedded-core@lists.openembedded.org
>> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>
>> This one is breaking any recipe that fetches from git repo with
>> 'protocol=ssh' in its SRC_URI... I verified that reverting this one
>> restores the usual fetcher behaviour. Should ssh be added to HOSTTOOLS
>> unconditionally or is there any other way to approach it?
>
> There's an entire thread discussing it here:
> http://lists.openembedded.org/pipermail/openembedded-core/2017-October/143279.html

Thank you Denys for pointing to the full discussion: it was not
threaded together with the initial mail that submitted the patch, then
I missed it... :-/


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

end of thread, other threads:[~2017-10-15 13:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-30  8:15 [PATCH 0/1] bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally Chen Qi
2017-09-30  8:15 ` [PATCH 1/1] " Chen Qi
2017-10-14 20:53   ` Andrea Galbusera
2017-10-15  2:01     ` Denys Dmytriyenko
2017-10-15 13:35       ` Andrea Galbusera

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