From: Saul Wold <sgw@linux.intel.com>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>
Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: Re: value of "PACKAGE_BEFORE_PN" versus "PACKAGES =+"?
Date: Wed, 02 Jan 2013 10:55:24 -0800 [thread overview]
Message-ID: <50E4829C.9040908@linux.intel.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1301021151240.6551@oneiric>
On 01/02/2013 09:04 AM, Robert P. J. Day wrote:
>
> just now noticed the variable PACKAGE_BEFORE_PN, whose entire
> usage in poky (other than documentation) is:
>
> meta/conf/bitbake.conf:PACKAGE_BEFORE_PN ?= ""
> meta/conf/bitbake.conf:PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}"
> meta/classes/lib_package.bbclass:PACKAGE_BEFORE_PN = "${PN}-bin"
>
> is there an actual need for that variable that places the new
> package names *precisely* in that location in the PACKAGES list? and
> given the specificity of the initial PN-related packages:
>
Yes, the need in the case of lib_package it to ensure that the ${PN}-bin
(bindir and sbindir) files get packages separately from the ${PN} files,
which are typically the libraries in the case of recipes that deliver
libraries and binaries.
> "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale"
>
> is there any reason more recipes couldn't use PACKAGE_BEFORE_PN
> instead of "PACKAGES =+" when defining new packages? i *realize*
> those two things don't represent the same thing but, in many cases,
> would the end result be the same?
>
> is there any reason more code doesn't use "PACKAGE_BEFORE_PN"?
>
The =+ prepends it to the list and therefore is correctly greedy for the
items they are trying to package. Since the PACKAGE_BEFORE_PN
specifically inserts it, so for the most part there is no real need to
use the P_B_P variable, and =+ is more consistent.
Sau!
> rday
next prev parent reply other threads:[~2013-01-02 19:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-02 17:04 value of "PACKAGE_BEFORE_PN" versus "PACKAGES =+"? Robert P. J. Day
2013-01-02 18:55 ` Saul Wold [this message]
2013-01-03 11:27 ` Robert P. J. Day
2013-01-03 21:47 ` Paul Eggleton
2013-01-03 23:43 ` Robert P. J. Day
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=50E4829C.9040908@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=rpjday@crashcourse.ca \
/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.