From: Max Krummenacher <max.oss.09@gmail.com>
To: William Delacre <williamdelacre@gmail.com>
Cc: openembedded-devel <openembedded-devel@lists.openembedded.org>
Subject: Re: Actually installed packages
Date: Sun, 05 Aug 2018 12:56:27 +0200 [thread overview]
Message-ID: <1533466587.3114.25.camel@gmail.com> (raw)
In-Reply-To: <CAOnRZE+mRfYDwY7P3Dhs9-RcMZRH8QH9-2MQzKbVaxUBNpdeRA@mail.gmail.com>
Hi
> Sorry, I just have a last question about those packages.
> In bitbake.conf, you can find this :
>
> PACKAGE_BEFORE_PN ?= ""
> PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale
> ${PACKAGE_BEFORE_PN} ${PN}"
>
This is the default list of packages which together with the
corresponding FILES_* variables define what packages with what
content get created.
See also the following links into the documentation:
https://www.yoctoproject.org/docs/2.5/mega-manual/mega-manual.html#new-recipe-packaging
https://www.yoctoproject.org/docs/2.5/mega-manual/mega-manual.html#splitting-an-application-into-mul
tiple-packages
> This means that all those packages (whatever the recipe is) will be
> automatically installed
No, that is plain wrong. The packages will get created but if they get
installed or not is up to the image recipe you are building.
Packages get installed because they are listed in IMAGE_INSTALL
variable of the image recipe or they are RDEPENDS, RRECOMMENDS of
a package which gets installed.
> if the PACKAGES variable is not redefined in the
> recipe (so if '=' is used and not '+=' or *append) *So if I don't want
> those packages for one of my software/library, I have to explicitely
> specify it in the recipe ?
I guess that is the wrong question, yes if you don't want a specific
package you would need to not have it in the PACKAGES variable.
I think though that I've seen strange things happening when not
having the defaults (-dbg, -dev, ...) though.
However,
if your install task installs files which you do not want in any package,
then you rather should delete those files before packaging them, i.e.:
do_install_append () { rm -f ${D}/usr/bin/not_to_be_distributed }
if the defaults package files into the wrong package then mess with the
FILES_* variable.
Max
prev parent reply other threads:[~2018-08-05 10:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-03 21:31 Actually installed packages William Delacre
2018-08-03 22:12 ` Max Krummenacher
2018-08-04 12:12 ` William Delacre
2018-08-04 14:19 ` William Delacre
2018-08-05 10:56 ` Max Krummenacher [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=1533466587.3114.25.camel@gmail.com \
--to=max.oss.09@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=williamdelacre@gmail.com \
/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