Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify needed dependencies

2017-03-08 Thread Richard Purdie
On Thu, 2017-03-09 at 00:18 +, Richard Purdie wrote:
> How badly do people dislike the patch below?
> 
> From: Richard Purdie 
> Subject: bitbake/oe-core: Filter contents of PATH
> 
> Signed-off-by: Richard Purdie 
> 
> diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
> index d6bcfa3..dbb74dd 100644
> --- a/bitbake/lib/bb/utils.py
> +++ b/bitbake/lib/bb/utils.py
> @@ -1526,3 +1526,13 @@ class LogCatcher(logging.Handler):
>  self.messages.append(bb.build.logformatter.format(record))
>  def contains(self, message):
>  return (message in self.messages)
> +
> +def setup_native_bindir(dest, toolsvar, d):
> +tools = d.getVar(toolsvar).split()
> +path = os.environ.get("PATH")
> +mkdirhier(dest)
> +for tool in tools:
> +desttool = os.path.join(dest, tool)
> +if not os.path.exists(desttool):
> +srctool = which(path, tool)
> +os.symlink(srctool, desttool)
> diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
> index 87c235f..21265ed 100644
> --- a/meta/conf/layer.conf
> +++ b/meta/conf/layer.conf
> @@ -59,3 +59,14 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
>    oprofile->virtual/kernel \
>  "
>  
> +NATIVETOOLS = " \
> +bash sh cut sed gcc ld git rm install which find xargs cat true
> mktemp \
> +grep tar gzip touch cp mv basename dirname tr getopt sort awk
> head tail \
> +mkdir patch uniq perl python chmod python3 ar strip expr ls make
> as \
> +ranlib egrep echo chown cpio tee wc wget bzip2 stat date rmdir
> od diff \
> +md5sum unlzma dd chrpath file pod2man gunzip python2.7 ln g++ [
> \
> +taskset \

Adding "false true uname test hostname nm objdump objcopy cmp printf
env" gets this going much further. taskset is only above as I have
local patches in my build which use it for other experiments and I
added it just to get things working.

Cheers,

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


Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify needed dependencies

2017-03-08 Thread Richard Purdie
On Wed, 2017-03-08 at 19:41 +0100, Martin Jansa wrote:
> On Wed, Mar 08, 2017 at 06:00:30PM +, Richard Purdie wrote:
> > 
> > On Wed, 2017-03-08 at 17:21 +, Burton, Ross wrote:
> > > 
> > > 
> > > On 8 March 2017 at 09:43, Peter Kjellerstedt  > > axis
> > > .com> wrote:
> > > > 
> > > > since I see that you have integrated/staged the two patches
> > > > that
> > > > add
> > > > inherits of pkgconfig, but not the patches that add the dummy
> > > > commands,
> > > > I assume you have some reservations to these patches. What are
> > > > your
> > > > take on the subject of blacklisting vs whitelisting the
> > > > commands
> > > > from
> > > > the build host? I know that having these dummy commands in
> > > > place
> > > > helped
> > > > me a great deal when updating our recipes to build correctly
> > > > with
> > > > RSS.
> > > > 
> > > FWIW I wasn't entirely keen on how the blacklisting had to be
> > > very
> > > careful about how PATH was manipulated, which is why I merged to
> > > my
> > > staging branch the fixes but not the dummy commands.
> > > 
> > > If the majority of people agree that this should be merged I
> > > don't
> > > have a strong opinion either way.
> > Ultimately I think there is a better solution than this but I
> > haven't
> > had time to look at that as yet.
> > 
> > I do worry that it makes assumptions about PATH that may or may not
> > be
> > valid everywhere, equally I do see it could be useful.
> > 
> > So I also have mixed feelings...
> I got many complains about my PNBLACKLISTs saying that the issues
> weren't reproducible elsewhere and in the end it was in 90% one of
> these commonly installed tools like pkgconfig being used from the
> host.
> 
> So I agree that PATH changes are tricky and that whitelisting would
> be even better than this, but still I would prefer to get this merged
> as it will help to identify and fix most common issues and changing
> this to whitelist would be easier in future.

I decided to see how hard adding a whitelist would be. I came up with
the patch below. Admittedly it changes both bitbake and OE-Core,
injects itself into OE-Core's layer.conf and is generally pretty
horrible in some ways but equally it does let me start to run builds.
It crashes and burns somewhere after libtool-native and the list of
tools clearly needs work but it does show what we could do.

I'm therefore torn on Peter's blacklist, or whether its worth a push to
the whitelist now...

How badly do people dislike the patch below?

From: Richard Purdie 
Subject: bitbake/oe-core: Filter contents of PATH

Signed-off-by: Richard Purdie 

diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index d6bcfa3..dbb74dd 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -1526,3 +1526,13 @@ class LogCatcher(logging.Handler):
 self.messages.append(bb.build.logformatter.format(record))
 def contains(self, message):
 return (message in self.messages)
+
+def setup_native_bindir(dest, toolsvar, d):
+tools = d.getVar(toolsvar).split()
+path = os.environ.get("PATH")
+mkdirhier(dest)
+for tool in tools:
+desttool = os.path.join(dest, tool)
+if not os.path.exists(desttool):
+srctool = which(path, tool)
+os.symlink(srctool, desttool)
diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
index 87c235f..21265ed 100644
--- a/meta/conf/layer.conf
+++ b/meta/conf/layer.conf
@@ -59,3 +59,14 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
   oprofile->virtual/kernel \
 "
 
+NATIVETOOLS = " \
+bash sh cut sed gcc ld git rm install which find xargs cat true mktemp \
+grep tar gzip touch cp mv basename dirname tr getopt sort awk head tail \
+mkdir patch uniq perl python chmod python3 ar strip expr ls make as \
+ranlib egrep echo chown cpio tee wc wget bzip2 stat date rmdir od diff \
+md5sum unlzma dd chrpath file pod2man gunzip python2.7 ln g++ [ \
+taskset \
+"
+
+DUMMY := "${@bb.utils.setup_native_bindir('${TOPDIR}/nativetools', 
'NATIVETOOLS', d)}"
+PATH = "${TOPDIR}/nativetools"

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


Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify needed dependencies

2017-03-08 Thread Martin Jansa
On Wed, Mar 08, 2017 at 06:00:30PM +, Richard Purdie wrote:
> On Wed, 2017-03-08 at 17:21 +, Burton, Ross wrote:
> > 
> > On 8 March 2017 at 09:43, Peter Kjellerstedt  > .com> wrote:
> > > since I see that you have integrated/staged the two patches that
> > > add
> > > inherits of pkgconfig, but not the patches that add the dummy
> > > commands,
> > > I assume you have some reservations to these patches. What are your
> > > take on the subject of blacklisting vs whitelisting the commands
> > > from
> > > the build host? I know that having these dummy commands in place
> > > helped
> > > me a great deal when updating our recipes to build correctly with
> > > RSS.
> > > 
> > FWIW I wasn't entirely keen on how the blacklisting had to be very
> > careful about how PATH was manipulated, which is why I merged to my
> > staging branch the fixes but not the dummy commands.
> > 
> > If the majority of people agree that this should be merged I don't
> > have a strong opinion either way.
> 
> Ultimately I think there is a better solution than this but I haven't
> had time to look at that as yet.
> 
> I do worry that it makes assumptions about PATH that may or may not be
> valid everywhere, equally I do see it could be useful.
> 
> So I also have mixed feelings...

I got many complains about my PNBLACKLISTs saying that the issues weren't
reproducible elsewhere and in the end it was in 90% one of these
commonly installed tools like pkgconfig being used from the host.

So I agree that PATH changes are tricky and that whitelisting would be
even better than this, but still I would prefer to get this merged as it
will help to identify and fix most common issues and changing this to
whitelist would be easier in future.

My jenkins buildhost is quite minimal (that's why it detected so many
issues with RSS, but I'll include the rest of this series in next run to
see if it will find even more).

-- 
Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com


signature.asc
Description: Digital signature
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify needed dependencies

2017-03-08 Thread Richard Purdie
On Wed, 2017-03-08 at 17:21 +, Burton, Ross wrote:
> 
> On 8 March 2017 at 09:43, Peter Kjellerstedt  .com> wrote:
> > since I see that you have integrated/staged the two patches that
> > add
> > inherits of pkgconfig, but not the patches that add the dummy
> > commands,
> > I assume you have some reservations to these patches. What are your
> > take on the subject of blacklisting vs whitelisting the commands
> > from
> > the build host? I know that having these dummy commands in place
> > helped
> > me a great deal when updating our recipes to build correctly with
> > RSS.
> > 
> FWIW I wasn't entirely keen on how the blacklisting had to be very
> careful about how PATH was manipulated, which is why I merged to my
> staging branch the fixes but not the dummy commands.
> 
> If the majority of people agree that this should be merged I don't
> have a strong opinion either way.

Ultimately I think there is a better solution than this but I haven't
had time to look at that as yet.

I do worry that it makes assumptions about PATH that may or may not be
valid everywhere, equally I do see it could be useful.

So I also have mixed feelings...

Cheers,

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


Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify needed dependencies

2017-03-08 Thread Mark Hatle
On 3/8/17 11:21 AM, Burton, Ross wrote:
> 
> On 8 March 2017 at 09:43, Peter Kjellerstedt  > wrote:
> 
> since I see that you have integrated/staged the two patches that add
> inherits of pkgconfig, but not the patches that add the dummy commands,
> I assume you have some reservations to these patches. What are your
> take on the subject of blacklisting vs whitelisting the commands from
> the build host? I know that having these dummy commands in place helped
> me a great deal when updating our recipes to build correctly with RSS.
> 
> 
> FWIW I wasn't entirely keen on how the blacklisting had to be very careful 
> about
> how PATH was manipulated, which is why I merged to my staging branch the fixes
> but not the dummy commands.
> 
> If the majority of people agree that this should be merged I don't have a 
> strong
> opinion either way.

The scripts would be very useful for people to avoid host-contamination issues.

If we could build up a set of these types of tools (and associated 'please do
the following' behaviors) I think it would be very useful.  (Starting with these
three items will probably catch the majority of things.)

--Mark

> Ross
> 
> 

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


Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify needed dependencies

2017-03-08 Thread Burton, Ross
On 8 March 2017 at 09:43, Peter Kjellerstedt 
wrote:

> since I see that you have integrated/staged the two patches that add
> inherits of pkgconfig, but not the patches that add the dummy commands,
> I assume you have some reservations to these patches. What are your
> take on the subject of blacklisting vs whitelisting the commands from
> the build host? I know that having these dummy commands in place helped
> me a great deal when updating our recipes to build correctly with RSS.
>

FWIW I wasn't entirely keen on how the blacklisting had to be very careful
about how PATH was manipulated, which is why I merged to my staging branch
the fixes but not the dummy commands.

If the majority of people agree that this should be merged I don't have a
strong opinion either way.

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


Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify needed dependencies

2017-03-08 Thread Khem Raj
On 17-03-08 09:43:58, Peter Kjellerstedt wrote:
> > -Original Message-
> > From: openembedded-core-boun...@lists.openembedded.org
> > [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of
> > Peter Kjellerstedt
> > Sent: den 3 mars 2017 20:53
> > To: Max Krummenacher
> > Cc: OE-core
> > Subject: Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify
> > needed dependencies
> > 
> > > -Original Message-
> > > From: Max Krummenacher [mailto:max.oss...@gmail.com]
> > > Sent: den 3 mars 2017 17:24
> > > To: Peter Kjellerstedt
> > > Cc: OE-core
> > > Subject: Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify
> > > needed dependencies
> > >
> > > Hi
> > >
> > > 2017-03-03 12:17 GMT+01:00 Peter Kjellerstedt
> > > :
> > >
> > > > To circumvent this, I created dummy versions of the tools that
> > always
> > > > fail and placed them in the scripts directory. Thus, if the real
> > tool
> > > > has not been installed in the RSS, the dummy version is used and
> > the
> > > > build fails. For good measures I even output a message that says
> > what
> > > > needs to be corrected in the recipe.
> > > >
> > > > Included is also an update to linux-libc-headers as it apparently
> > > > needs to inherit pkgconfig, which the introduction of the dummy
> > > > version of pkg-config showed.
> > > >
> > >
> > > I tried the whole series, i.e. applied on top of openembedded-core,
> > > 20c6e87 and bitbake 6fe07ed.
> > >
> > > The resulting build failed in linux-libc-headers because it picked up
> > > the dummy script instead of the real pkg-config binary which actually
> > > is installed in the RSS.
> > >
> > > run.do_configure has a PATH setting with first ...meta/scripts and
> > > only then the paths to the different RSS directories.
> > >
> > > Changing that order in meta/conf/bitbake.conf line 450 fixed this for
> > > me, however I'm unsure of posible sideeffects of that reordering.
> > >
> > > Max
> > 
> > Bah, you are correct. That is what I get for not testing exactly
> > what I sent for integration. Shame on me.
> > 
> > Anyway, I see a couple of possible solutions:
> > 
> > * Put the scripts in bitbake/bin instead. This should work as it
> >   is only added to $PATH by oe-buildenv-internal (contrary to
> >   ${COREBASE}/scripts which is added to $PATH both by
> >   oe-buildenv-internal and bitbake.conf). However, I do not like
> >   this idea as it feels wrong to put them there.
> > * Put the scripts in a subdirectory of ${COREBASE}/scripts, e.g.,
> >   ${COREBASE}/scripts/blacklisted, and add that path to $PATH in
> >   bitbake.conf, but at the other end of it so that the RSS paths
> >   appear before it. This sounds a lot more appealing to me.
> > * Implement the whitelist solution Patrick Ohly mentioned instead.
> >   Although this is probably the best solution, prioritizing it
> >   for 2.3 does not sound likely to happen.
> > 
> > I have implemented solution two above (properly tested this time),
> > and will send that along in a little while.
> > 
> > //Peter
> 
> Richard,
> 
> since I see that you have integrated/staged the two patches that add 
> inherits of pkgconfig, but not the patches that add the dummy commands, 
> I assume you have some reservations to these patches. What are your 
> take on the subject of blacklisting vs whitelisting the commands from 
> the build host? I know that having these dummy commands in place helped 
> me a great deal when updating our recipes to build correctly with RSS.

perhaps if we have a way to containerize the binaries/scripts used from
buildhost would be comprehensive but hard to tool in may be blacklisting
is contained in that we can weed out the known problems but if we can
sanitize and create a comprehensive list of needed stuff from buildhost
would be cool, it will probably help the reproducability cause as well.
> 
> //Peter
> 
> -- 
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify needed dependencies

2017-03-08 Thread Peter Kjellerstedt
> -Original Message-
> From: openembedded-core-boun...@lists.openembedded.org
> [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of
> Peter Kjellerstedt
> Sent: den 3 mars 2017 20:53
> To: Max Krummenacher
> Cc: OE-core
> Subject: Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify
> needed dependencies
> 
> > -Original Message-
> > From: Max Krummenacher [mailto:max.oss...@gmail.com]
> > Sent: den 3 mars 2017 17:24
> > To: Peter Kjellerstedt
> > Cc: OE-core
> > Subject: Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify
> > needed dependencies
> >
> > Hi
> >
> > 2017-03-03 12:17 GMT+01:00 Peter Kjellerstedt
> > :
> >
> > > To circumvent this, I created dummy versions of the tools that
> always
> > > fail and placed them in the scripts directory. Thus, if the real
> tool
> > > has not been installed in the RSS, the dummy version is used and
> the
> > > build fails. For good measures I even output a message that says
> what
> > > needs to be corrected in the recipe.
> > >
> > > Included is also an update to linux-libc-headers as it apparently
> > > needs to inherit pkgconfig, which the introduction of the dummy
> > > version of pkg-config showed.
> > >
> >
> > I tried the whole series, i.e. applied on top of openembedded-core,
> > 20c6e87 and bitbake 6fe07ed.
> >
> > The resulting build failed in linux-libc-headers because it picked up
> > the dummy script instead of the real pkg-config binary which actually
> > is installed in the RSS.
> >
> > run.do_configure has a PATH setting with first ...meta/scripts and
> > only then the paths to the different RSS directories.
> >
> > Changing that order in meta/conf/bitbake.conf line 450 fixed this for
> > me, however I'm unsure of posible sideeffects of that reordering.
> >
> > Max
> 
> Bah, you are correct. That is what I get for not testing exactly
> what I sent for integration. Shame on me.
> 
> Anyway, I see a couple of possible solutions:
> 
> * Put the scripts in bitbake/bin instead. This should work as it
>   is only added to $PATH by oe-buildenv-internal (contrary to
>   ${COREBASE}/scripts which is added to $PATH both by
>   oe-buildenv-internal and bitbake.conf). However, I do not like
>   this idea as it feels wrong to put them there.
> * Put the scripts in a subdirectory of ${COREBASE}/scripts, e.g.,
>   ${COREBASE}/scripts/blacklisted, and add that path to $PATH in
>   bitbake.conf, but at the other end of it so that the RSS paths
>   appear before it. This sounds a lot more appealing to me.
> * Implement the whitelist solution Patrick Ohly mentioned instead.
>   Although this is probably the best solution, prioritizing it
>   for 2.3 does not sound likely to happen.
> 
> I have implemented solution two above (properly tested this time),
> and will send that along in a little while.
> 
> //Peter

Richard,

since I see that you have integrated/staged the two patches that add 
inherits of pkgconfig, but not the patches that add the dummy commands, 
I assume you have some reservations to these patches. What are your 
take on the subject of blacklisting vs whitelisting the commands from 
the build host? I know that having these dummy commands in place helped 
me a great deal when updating our recipes to build correctly with RSS.

//Peter

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


Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify needed dependencies

2017-03-03 Thread Peter Kjellerstedt
> -Original Message-
> From: Max Krummenacher [mailto:max.oss...@gmail.com]
> Sent: den 3 mars 2017 17:24
> To: Peter Kjellerstedt
> Cc: OE-core
> Subject: Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify
> needed dependencies
> 
> Hi
> 
> 2017-03-03 12:17 GMT+01:00 Peter Kjellerstedt
> :
> 
> > To circumvent this, I created dummy versions of the tools that always
> > fail and placed them in the scripts directory. Thus, if the real tool
> > has not been installed in the RSS, the dummy version is used and the
> > build fails. For good measures I even output a message that says what
> > needs to be corrected in the recipe.
> >
> > Included is also an update to linux-libc-headers as it apparently
> > needs to inherit pkgconfig, which the introduction of the dummy
> > version of pkg-config showed.
> >
> 
> I tried the whole series, i.e. applied on top of openembedded-core,
> 20c6e87 and bitbake 6fe07ed.
> 
> The resulting build failed in linux-libc-headers because it picked up
> the dummy script instead of the real pkg-config binary which actually
> is installed in the RSS.
> 
> run.do_configure has a PATH setting with first ...meta/scripts and
> only then the paths to the different RSS directories.
> 
> Changing that order in meta/conf/bitbake.conf line 450 fixed this for
> me, however I'm unsure of posible sideeffects of that reordering.
> 
> Max

Bah, you are correct. That is what I get for not testing exactly 
what I sent for integration. Shame on me.

Anyway, I see a couple of possible solutions:

* Put the scripts in bitbake/bin instead. This should work as it 
  is only added to $PATH by oe-buildenv-internal (contrary to 
  ${COREBASE}/scripts which is added to $PATH both by 
  oe-buildenv-internal and bitbake.conf). However, I do not like 
  this idea as it feels wrong to put them there.
* Put the scripts in a subdirectory of ${COREBASE}/scripts, e.g., 
  ${COREBASE}/scripts/blacklisted, and add that path to $PATH in 
  bitbake.conf, but at the other end of it so that the RSS paths 
  appear before it. This sounds a lot more appealing to me.
* Implement the whitelist solution Patrick Ohly mentioned instead.
  Although this is probably the best solution, prioritizing it 
  for 2.3 does not sound likely to happen.

I have implemented solution two above (properly tested this time), 
and will send that along in a little while.

//Peter

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


Re: [OE-core] [PATCHv3 0/5] Add dummy tools to help identify needed dependencies

2017-03-03 Thread Max Krummenacher
Hi

2017-03-03 12:17 GMT+01:00 Peter Kjellerstedt :

> To circumvent this, I created dummy versions of the tools that always
> fail and placed them in the scripts directory. Thus, if the real tool
> has not been installed in the RSS, the dummy version is used and the
> build fails. For good measures I even output a message that says what
> needs to be corrected in the recipe.
>
> Included is also an update to linux-libc-headers as it apparently
> needs to inherit pkgconfig, which the introduction of the dummy
> version of pkg-config showed.
>

I tried the whole series, i.e. applied on top of openembedded-core,
20c6e87 and bitbake 6fe07ed.

The resulting build failed in linux-libc-headers because it picked up
the dummy script instead of the real pkg-config binary which actually
is installed in the RSS.

run.do_configure has a PATH setting with first ...meta/scripts and
only then the paths to the different RSS directories.

Changing that order in meta/conf/bitbake.conf line 450 fixed this for
me, however I'm unsure of posible sideeffects of that reordering.

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


[OE-core] [PATCHv3 0/5] Add dummy tools to help identify needed dependencies

2017-03-03 Thread Peter Kjellerstedt
After the introduction of RSS, I still found it hard to get
dependencies on some common tools that are typically installed on the
build host correct. Using the wrong version of tools like pkg-config,
gdbus-codegen and dbus-binding-tool can cause build failures.

To circumvent this, I created dummy versions of the tools that always
fail and placed them in the scripts directory. Thus, if the real tool
has not been installed in the RSS, the dummy version is used and the
build fails. For good measures I even output a message that says what
needs to be corrected in the recipe.

Included is also an update to linux-libc-headers as it apparently
needs to inherit pkgconfig, which the introduction of the dummy
version of pkg-config showed.

PATCHv2: Also inherit pkgconfig in module.bbclass since pkg-config
is needed for the make_scripts task.

PATCHv3: Add a missing Signed-off-by footer.

//Peter

The following changes since commit 8f1ed1758748e4c00eaa6b4b3528e79f36d62c19:

  bitbake: fetch2: add initial Amazon AWS S3 fetcher (2017-03-03 00:19:37 +)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib pkj/dummy_tools
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pkj/dummy_tools

Peter Kjellerstedt (5):
  module.bbclass: Add inherit of pkgconfig
  linux-libc-headers: Add inherit of pkgconfig
  scripts/dbus-binding-tool: Add a dummy version that always fails
  scripts/gdbus-codegen: Add a dummy version that always fails
  scripts/pkg-config: Add a dummy version that always fails

 meta/classes/module.bbclass  |  2 +-
 .../linux-libc-headers/linux-libc-headers.inc|  2 +-
 scripts/dbus-binding-tool| 11 +++
 scripts/gdbus-codegen| 11 +++
 scripts/pkg-config   | 16 
 5 files changed, 40 insertions(+), 2 deletions(-)
 create mode 100755 scripts/dbus-binding-tool
 create mode 100755 scripts/gdbus-codegen
 create mode 100755 scripts/pkg-config

-- 
2.9.0

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