Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mike Looijmans <mike.looijmans@topic.nl>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: What does "QA Issue: ... rdepends on .. but its not a build dependency?" mean
Date: Sun, 03 Aug 2014 19:35:11 +0200	[thread overview]
Message-ID: <53DE72CF.5080303@topic.nl> (raw)
In-Reply-To: <1407082041.6981.42.camel@ted>

On 08/03/2014 06:07 PM, Richard Purdie wrote:
> On Sun, 2014-08-03 at 15:25 +0200, Mike Looijmans wrote:
>> I'm getting lots of warnings like this:
>>
>> """
>> WARNING: QA Issue: enigma2-plugin-systemplugins-wirelesslan rdepends on
>> wireless-tools but its not a build dependency? [build-deps]
>> """
>>
>> What does it actually mean? What does it want me to provide here?
>>
>> The message in itself is correct. The package only has a runtime
>> dependency. It does not require the wireless-tools package to be built
>> or otherwise present on the build system. But what is the QA issue here
>> and how do I get rid of the message?
>
> The issue is that if you built an image that just depends on whichever
> recipe builds enigma2-plugin-systemplugins-wirelesslan and you try and
> install that into an image without something else depending on
> wireless-tools, the build will fail.
>
> Sometimes (like this case) these are genuine runtime dependencies and
> you therefore just need to make the dependency visible to bitbake.
> Sometimes these can be floating autodetected dependencies which should
> wither have been in DEPENDS or turned off with PACKAGECONFIG.
>
> In this case I'm going to guess that the plugin is part of a
> PACKAGES_DYNAMIC and hence bitbake can't see the dependency until its
> too late (once the package is built).
>
> Adding the package name to PACKAGES would probably allow bitbake to
> "see" it and avoid the problem.
>
> Yes, bitbake could in theory go though all the RDEPENDS/RRECOMMENDS_*
> variables and try and guess which ones to look at however it would kill
> parsing time :/.

And in this particular case, even that would not help - the dependencies 
are being calculated after the "install" task has completed. There's 
code in the recipe that parses the output of the plugins and then sets a 
bunch of RDEPENDS and similar values for the package.

I think the easy workaround here would be to just add it to the DEPENDS 
list - this particular recipe has been ported along from ancient OE, and 
it already has to wait for tons of other things, because it builds about 
a hundres useless plugins. The newer plugin recipes tend to have a 
recipe each, so they don't cause this kind of problems.


-- 
Mike Looijmans


  reply	other threads:[~2014-08-03 17:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-03 13:25 What does "QA Issue: ... rdepends on .. but its not a build dependency?" mean Mike Looijmans
2014-08-03 13:51 ` Alex J Lennon
2014-08-03 14:02   ` Mike Looijmans
2014-08-03 16:16   ` Richard Purdie
2014-08-03 19:23     ` Alex J Lennon
2014-08-03 16:07 ` Richard Purdie
2014-08-03 17:35   ` Mike Looijmans [this message]
2014-08-03 17:48     ` Mike Looijmans
2014-08-04  5:12       ` Mike Looijmans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53DE72CF.5080303@topic.nl \
    --to=mike.looijmans@topic.nl \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox