From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Jon Szymaniak <jon.szymaniak+gpg@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: Correctly setting a package-specific RDEPENDS
Date: Wed, 05 Jun 2013 17:27:26 +0100 [thread overview]
Message-ID: <2988518.NeGldAHcyY@helios> (raw)
In-Reply-To: <CANge7vVxHxnAOwxRbFvhYSkuKJ3DqAMHbLRL+LQ_y__PyXL2Fw@mail.gmail.com>
On Wednesday 05 June 2013 10:53:23 Jon Szymaniak wrote:
> I recently upgraded to the Dylan (9.0.0) release and am looking to
> clean up some QA issues associated with my RDEPENDS variables not
> being package-specific.
>
> I'm a bit confused by a couple lines in the manual [1]:
>
> "The names of the variables you list with RDEPENDS must be the names
> of other packages as listed in the PACKAGES variable. You should not
> list recipe names (PN)."
I think the mention of PN here is confusing. It's trying to explain that you
should use package names and not recipe names, but perhaps the wording needs
to be improved.
> It makes sense to me that you'd want to set the run-time deps on a
> per-package basis to avoid creating false-dependencies. However, I'm
> unsure as to how can simply not write RDEPENDS_${PN} in some cases.
> Furthermore, I feel like I'm not quite understanding what the
> consequences of using RDEPENDS_${PN} are.
>
> Here's an example of what I'm trying to do -- perhaps someone will
> catch where I'm getting confused and offer some insight?
>
> Let's say I have a program_a.bb and a program_b.bb. Both are simple
> recipes that compile and install ${D}/usr/bin/program_a and
> ${D}/usr/bin/program_b.
>
> Because program_a forks and execs program_b, but otherwise does not
> depend upon it to compile, I thought I should place RDEPENDS_${PN} =
> "program_b " in program_a.bb. However, this seems to violate the
> aforementioned snippet from the manual.
That is the expected usage; I guess the manual has confused you. All the QA
warning is saying is you should do this:
RDEPENDS_${PN} = "somepackage"
and _not_ this:
RDEPENDS = "somepackage"
(The reason being, the latter would add a runtime dependency on "somepackage"
to every package in the recipe's PACKAGES, which is almost never the desired
result.)
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
next prev parent reply other threads:[~2013-06-05 16:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-05 14:53 Correctly setting a package-specific RDEPENDS Jon Szymaniak
2013-06-05 16:27 ` Paul Eggleton [this message]
2013-06-05 16:31 ` Jon Szymaniak
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=2988518.NeGldAHcyY@helios \
--to=paul.eggleton@linux.intel.com \
--cc=jon.szymaniak+gpg@gmail.com \
--cc=yocto@yoctoproject.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.