[oe] [meta-oe][PATCH] layer.conf: add meta-python to LAYERDEPENDS
Changqing Li
changqing.li at windriver.com
Wed Mar 11 06:39:16 UTC 2020
On 3/7/20 12:12 AM, Khem Raj wrote:
> On Thu, Mar 5, 2020 at 11:55 PM Martin Jansa <martin.jansa at gmail.com> wrote:
>> Can we fix mozjs instead?
> perhaps thats better fix, maybe it can made optional via packageconfig ?
> or marked incompatible if meta-python is not included
Hi, Khem
There are 2 solutions for the problem, Which do you think is better?
1. fix this by using BBFILES_DYNAMIC, add a folder dynamic-layers under
meta-oe,
and move those recipes that depend on meta-python under the
dynamic-layers. and add
these bbfiles by BBFILES_DYNAMIC. but these will need to move many
recipes from
original folder to folder dynamic-layers, do you think this change is
acceptable?
git diff conf/layer.conf
+# only activates content when identified layers are present,
+# to ensure yocto compatibility check pass
+BBFILES_DYNAMIC +=
"meta-python:${LAYERDIR}/dynamic-layers/meta-python/recipes-*/*/*.bb \
+"
2. move those python recipes from meta-python under meta-oe
>> On Fri, Mar 6, 2020 at 6:38 AM <changqing.li at windriver.com> wrote:
>>
>>> From: Changqing Li <changqing.li at windriver.com>
>>>
>>> yocto-check-layer/test_world failed since error:
>>> ERROR: test_world (common.CommonCheckLayer)
>>> ERROR: Nothing PROVIDES 'python3-pytoml-native' (but
>>> /meta-openembedded/meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb
>>> DEPENDS on or otherwise requires it). Close matches:
>>> python3-numpy-native
>>> python3-pycairo-native
>>> python3-rpm-native
>>> ERROR: Required build target 'meta-world-pkgdata' has no buildable
>>> providers.
>>> Missing or unbuildable dependency chain was: ['meta-world-pkgdata',
>>> 'mozjs', 'python3-pytoml-native']
>>>
>>> mozjs depend on recipe under meta-python, but meta-python
>>> isn't in LAYERDEPENDS, so error occurred. Fix by add
>>> it into LAYERDEPENDS.
>>>
>>> Signed-off-by: Changqing Li <changqing.li at windriver.com>
>>> ---
>>> meta-oe/conf/layer.conf | 5 ++++-
>>> 1 file changed, 4 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/meta-oe/conf/layer.conf b/meta-oe/conf/layer.conf
>>> index c537736..0ce0ad2 100644
>>> --- a/meta-oe/conf/layer.conf
>>> +++ b/meta-oe/conf/layer.conf
>>> @@ -27,7 +27,10 @@ BBFILE_PRIORITY_openembedded-layer = "6"
>>> # cause compatibility issues with other layers
>>> LAYERVERSION_openembedded-layer = "1"
>>>
>>> -LAYERDEPENDS_openembedded-layer = "core"
>>> +LAYERDEPENDS_openembedded-layer = " \
>>> + core \
>>> + meta-python \
>>> +"
>>>
>>> LAYERSERIES_COMPAT_openembedded-layer = "thud warrior zeus"
>>>
>>> --
>>> 2.7.4
>>>
>>> --
>>> _______________________________________________
>>> Openembedded-devel mailing list
>>> Openembedded-devel at lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>>>
>> --
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel at lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
More information about the Openembedded-devel
mailing list