[oe] Escaping in PACKAGECONFIG

Burton, Ross ross.burton at intel.com
Wed Jan 14 17:49:00 UTC 2015


On 14 January 2015 at 12:18, Paul Eggleton <paul.eggleton at linux.intel.com>
wrote:

> Sorry for the delayed response. Basically, if you look at how
> PACKAGECONFIG is
> implemented in meta/classes/base.bbclass, we simply do a python split()
> call
> on the value of each varflag value (i.e. each individual PACKAGECONFIG[xyz]
> value). However, because we get that value using getVarFlags() without
> passing
> True for the "expand" parameter, the value is unexpanded, so variable
> references such as ${MYSQLND} above won't have been expanded when the
> string
> gets split. I'm not sure if that was intentional but it is how it has been
> implemented; I don't think anyone has given much thought to cases like this
> where you need to have commas in the value since it's relatively uncommon.
>

FWIW, Mesa has a similar problem and that's exactly how it's solved.

Ross



More information about the Openembedded-devel mailing list