Skip to contentSkip to conversation

layer.conf: add meta-python to LAYERDEPENDS

PATCH In review [email protected] 5 participants 9 messages Mar 6, 2020 – Mar 11, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 layer.conf: add meta-python to LAYERDEPENDS

From: Changqing Li <[email protected]>

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.

---
 meta-oe/conf/layer.conf | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/conf/layer.conf +4 -1
index c537736..0ce0ad2 100644
@@ -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"
 
Signature · 1 line
2.7.4
#1 lore raw

Can we fix mozjs instead?

Quoted 49 lines · On Fri, Mar 6, 2020 at 6:38 AM <[email protected]> wrote:

From: Changqing Li <[email protected]>

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.

---
 meta-oe/conf/layer.conf | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/conf/layer.conf +4 -2
index c537736..0ce0ad2 100644
@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw

yes,  this fix is not right,  just find that meta-python depend on meta-oe,  so this will cause a loop.

I will find another solution for this.

Quoted 57 lines · Martin Jansa

Can we fix mozjs instead?

On Fri, Mar 6, 2020 at 6:38 AM <[email protected] <mailto:[email protected]>> wrote:

From: Changqing Li <[email protected] <mailto:[email protected]>>

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
<http://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.

<mailto:[email protected]>>
---
 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 [email protected] <mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw
In reply to Martin Jansa
Quoted 2 lines · Martin Jansa

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

Quoted 57 lines · On Fri, Mar 6, 2020 at 6:38 AM <[email protected]> wrote:
Quoted 44 lines

From: Changqing Li <[email protected]>

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.

---
 meta-oe/conf/layer.conf | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/conf/layer.conf +4 -2
index c537736..0ce0ad2 100644
@@ -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

Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw
Quoted 4 lines · Khem Raj
Quoted 1 line · Martin Jansa

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

So that would be the logical thing, but wont that fail the yocto-layer-check, which was the original reason for the change request in the first place?

One of the checks is that the configuration of packages is the same before and after you add the new layer. If configuration changes in mozjs when you add the meta-networking layer, that should trigger a fail. In this instance the change is instituted by the original mozjs recipe so it should be legal, but I don't think the checker is able to validate that is it?

Quoted 56 lines
Quoted 56 lines · On Fri, Mar 6, 2020 at 6:38 AM <[email protected]> wrote:
Quoted 44 lines

From: Changqing Li <[email protected]>

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.

---
  meta-oe/conf/layer.conf | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/conf/layer.conf +4 -2
index c537736..0ce0ad2 100644
@@ -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

Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 2 lines
Jeremy A. Puhlman
[email protected]
#5 lore raw
In reply to Khem Raj
Quoted 4 lines · Khem Raj
Quoted 1 line · Martin Jansa

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

I find not only mozjs have the problem.  I find that packages depend on by mozjs

is deleted by commit https://git.openembedded.org/meta-openembedded/commit/?id=505774658338002a92c2e32c4c57c55f36c5e36e,

which is for drop of python2.  So I tried to move python3 version' packages depend by mozjs

back to meta-oe,  but after mozjs's problem is fixed.  other recipes still have similar problems,

which depend on other python packages.

Quoted 56 lines
Quoted 56 lines · On Fri, Mar 6, 2020 at 6:38 AM <[email protected]> wrote:
Quoted 44 lines

From: Changqing Li <[email protected]>

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.

---
  meta-oe/conf/layer.conf | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/conf/layer.conf +4 -2
index c537736..0ce0ad2 100644
@@ -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

Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#6 lore raw
In reply to Khem Raj
Quoted 4 lines · Khem Raj
Quoted 1 line · Martin Jansa

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

Quoted 56 lines
Quoted 56 lines · On Fri, Mar 6, 2020 at 6:38 AM <[email protected]> wrote:
Quoted 44 lines

From: Changqing Li <[email protected]>

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.

---
  meta-oe/conf/layer.conf | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/conf/layer.conf +4 -2
index c537736..0ce0ad2 100644
@@ -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

Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#7 lore raw
Quoted 16 lines · Changqing Li
Quoted 4 lines · Khem Raj
Quoted 1 line · Martin Jansa

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,

Quoted 8 lines

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?

I think we can live with BBFILES_DYNAMIC solution.

Quoted 67 lines

git diff conf/layer.conf

(quoted diff) +3 -0
+# 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

Quoted 56 lines
Quoted 56 lines · On Fri, Mar 6, 2020 at 6:38 AM <[email protected]> wrote:
Quoted 44 lines

From: Changqing Li <[email protected]>

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.

---
  meta-oe/conf/layer.conf | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/conf/layer.conf +4 -2
index c537736..0ce0ad2 100644
@@ -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

Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#8 lore raw
Quoted 23 lines · Khem Raj
Quoted 4 lines · Changqing Li
Quoted 1 line · Khem Raj

On Thu, Mar 5, 2020 at 11:55 PM Martin Jansa <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 1 line

Can we fix mozjs instead?

perhaps thats better fix, maybe it can made optional via packageconfig

?

Quoted 13 lines
Quoted 1 line

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

Quoted 8 lines
Quoted 5 lines

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?

I think we can live with BBFILES_DYNAMIC solution.

I agree.

Quoted 1 line