[yocto] Question: xxxx listed in PACKAGES multiple times, this leads to packaging errors

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Tue Oct 4 14:55:06 PDT 2016


On Tue, Oct 04, 2016 at 07:47:58PM +0000, Dinh Nguyen (dinhn) wrote:
> 
> Hi Paul, thanks much for prompt response. 
> 
> The c-mlib.bb below has the packages var as
> PACKAGES =+ "${PN}” I also tried PACKAGES = "${PN}” 

Don't do that.

In bitbake.conf you have:

PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}"

So all those package names are implied and always exist.  Don't try to
add them yourself.

Only do anything with PACKAGES if you want to add any other package
names or totally override the list of packages (in which case you have
to use PACKAGES = of course)

For example base-files does override the list completely, as does glibc
and a few other ones, but most only add to it.

-- 
Len Sorensen



More information about the yocto mailing list