[OE-core] [PATCH] boost: Convert ??= weaker assingment to weak ?= assignment

Khem Raj raj.khem at gmail.com
Thu Jan 23 01:16:41 UTC 2014


On Friday, December 06, 2013 05:42:26 PM Khem Raj wrote:
> ??= does not react at all with
> BOOST_LIBS += "${@base_contains('PACKAGECONFIG', 'python', 'python', '',
> d)}"
> 
> even though we have
> 
> PACKAGECONFIG ??= "" it does not honor it and always add python to
> BOOST_LIBS but the dependency is not added so it fails to build
> complaining for missing python headers which is a understood outcome
> 
> When converted to ?= it works as expected and only add --with-python
> in bjam when python is specified in PACKAGECONFIG otherwise not.
> 
> Is it a bitbake bug ? in anycase ?= should be enough of loose rope
> to let user/distro configure the packageconfig policy
>

OK so the problem is that I have meta-ros in my layer-mix and in that layer
it defines PACKAGECONFIG ?= "python" IMO it should have appended instead of
redefining. Thats why I was seeing what I was seeing. 
 
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
>  meta/recipes-support/boost/boost.inc |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-support/boost/boost.inc
> b/meta/recipes-support/boost/boost.inc index f13051c..f0f9eb8 100644
> --- a/meta/recipes-support/boost/boost.inc
> +++ b/meta/recipes-support/boost/boost.inc
> @@ -19,7 +19,7 @@ BOOST_LIBS = "\
>  	"
> 
>  # optional boost-python library
> -PACKAGECONFIG ??= ""
> +PACKAGECONFIG ?= ""
>  PACKAGECONFIG[python] = ",,python"
>  BOOST_LIBS += "${@base_contains('PACKAGECONFIG', 'python', 'python', '',
> d)}" inherit python-dir



-- 
-Khem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20140122/7c01f20a/attachment-0002.sig>


More information about the Openembedded-core mailing list