From: Denys Dmytriyenko <denis@denix.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Is RDEPENDS = "foo" supported?
Date: Mon, 22 Jun 2009 21:46:10 -0400 [thread overview]
Message-ID: <20090623014610.GA14716@denix.org> (raw)
In-Reply-To: <1245699460.3521.17.camel@kc.internal.reciva.com>
On Mon, Jun 22, 2009 at 08:37:40PM +0100, Phil Blundell wrote:
> On Mon, 2009-06-22 at 21:28 +0200, Stanislav Brabec wrote:
> > Is RDEPENDS = "foo" allowed in recipes? If yes, then it does not work.
>
> It is allowed, and in at least some situations it will even work, but in
> the vast majority of cases it is not the right thing to do. There are
> two problems with it: both of them have been discussed here on the list
> quite recently, but to recap:
Here is the original thread, for reference:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/24663
> 1) ${RDEPENDS} will apply to all the output subpackages, i.e. ${PN}-dev,
> ${PN}-doc and various ${PN}-locale-* things. In most cases, ${PN} is
> the only one that you actually want to receive the dependency.
>
> 2) ${RDEPENDS} will be overridden by ${RDEPENDS_${PN}} if the latter is
> set. This is sometimes done by .bbclass files and the like, in which
> case any dependencies you set in ${RDEPENDS} will be ineffective.
>
> > I have been searching for a reason, why my image does not set keymap.
> > Reason: console-tools were missing. Replacing RDEPENDS by RDEPENDS_${PN}
> > in the keymaps recipe fixed it.
>
> In this particular case, update-rc.d.bbclass sets RDEPENDS_${PN} and
> hence (2) above will apply.
>
> > Does it mean, that this and another 622 recipes use invalid syntax of
> > RDEPENDS or is it a bug in the toolchain?
>
> It's probably true that almost all of those 623 recipes should be using
> RDEPENDS_${PN} or something similar instead of plain RDEPENDS.
Yeah, I had to fix some of my recipes in the overlay here...
--
Denys
prev parent reply other threads:[~2009-06-23 1:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-22 19:28 Is RDEPENDS = "foo" supported? Stanislav Brabec
2009-06-22 19:37 ` Phil Blundell
2009-06-23 1:46 ` Denys Dmytriyenko [this message]
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=20090623014610.GA14716@denix.org \
--to=denis@denix.org \
--cc=openembedded-devel@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.