A few fixes when trying to run yocto-check-layer
cover A few fixes when trying to run yocto-check-layer
I was trying to run yocto-check-layer script and it has caught some issues.
Note that I was able to get a PASS status for meta-oe, using two additional patches from Mingli Yu <[email protected]>, i found on the list:
upower: add REQUIRED_DISTRO_FEATURES for polkit
udisks2: add REQUIRED_DISTRO_FEATURES for polkit
Nicolas Dechesne (4):
meta-oe: fixup LAYERDEPENDS to include meta-python
polkit: add REQUIRED_DISTRO_FEATURES for polkit
packagegroup-meta-oe: fixup package that now require polkit
udisks: add REQUIRED_DISTRO_FEATURES for polkit
meta-oe/conf/layer.conf | 1 + meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 3 ++- meta-oe/recipes-extended/polkit/polkit-group-rule.inc | 3 +++ meta-oe/recipes-support/udisks/udisks_1.0.5.bb | 5 ++++- 4 files changed, 10 insertions(+), 2 deletions(-)
Signature · 1 line
2.20.1
PATCH 1/4 meta-oe: fixup LAYERDEPENDS to include meta-python
meta-oe depends on meta-python, for mongodb recipe, since 5cf9a144ad16 (mongodb: Upgrade to 4.0.1 release)
Trying to run the yocto-check-layer script fails with:
ERROR: Nothing PROVIDES 'python-cheetah-native' (but /work/yocto/meta-openembedded/meta-oe/recipes-dbs/mongodb/mongodb_git.bb DEPENDS on or otherwise requires it). Close matches:
python3-git-native
python-nose-native
python-native
ERROR: Required build target 'meta-world-pkgdata' has no buildable
providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata',
'mongodb', 'python-cheetah-native']
--- meta-oe/conf/layer.conf | 1 + 1 file changed, 1 insertion(+)
meta-oe/conf/layer.conf +1 -0
@@ -28,6 +28,7 @@ BBFILE_PRIORITY_openembedded-layer = "6" LAYERVERSION_openembedded-layer = "1" LAYERDEPENDS_openembedded-layer = "core" +LAYERDEPENDS_openembedded-layer = "meta-python" LAYERSERIES_COMPAT_openembedded-layer = "thud"
Signature · 1 line
2.20.1
Re: [meta-oe][PATCH 1/4] meta-oe: fixup LAYERDEPENDS to include meta-python
Quoted 4 lines · Nicolas Dechesne
meta-oe depends on meta-python, for mongodb recipe, since
5cf9a144ad16(mongodb: Upgrade to 4.0.1 release)
The dependency was always there, but I wonder if there is a better place for mongodb than meta-oe
Quoted 37 lines
Trying to run the yocto-check-layer script fails with:
ERROR: Nothing PROVIDES 'python-cheetah-native' (but /work/yocto/meta-openembedded/meta-oe/recipes-dbs/mongodb/mongodb_git.bb DEPENDS on or otherwise requires it). Close matches:
python3-git-native
python-nose-native
python-native
ERROR: Required build target 'meta-world-pkgdata' has no buildable
providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata',
'mongodb', 'python-cheetah-native']Signed-off-by Nicolas Dechesne <[email protected]>--- meta-oe/conf/layer.conf | 1 + 1 file changed, 1 insertion(+)meta-oe/conf/layer.conf +1
-1@@ -28,6 +28,7 @@ BBFILE_PRIORITY_openembedded-layer = "6" LAYERVERSION_openembedded-layer = "1" LAYERDEPENDS_openembedded-layer = "core" +LAYERDEPENDS_openembedded-layer = "meta-python" LAYERSERIES_COMPAT_openembedded-layer = "thud" --2.20.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-oe][PATCH 1/4] meta-oe: fixup LAYERDEPENDS to include meta-python
Quoted 12 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Khem Raj
Sent: den 22 februari 2019 19:19
To: Nicolas Dechesne <[email protected]>
Cc: openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-oe][PATCH 1/4] meta-oe: fixup LAYERDEPENDS to include meta-pythonQuoted 1 line · Nicolas Dechesne
Quoted 6 lines
Quoted 3 lines
meta-oe depends on meta-python, for mongodb recipe, since
5cf9a144ad16(mongodb: Upgrade to 4.0.1 release)The dependency was always there, but I wonder if there is a better place for mongodb than meta-oe
Can we please revert this? Making meta-oe depend on meta-python is not the right thing to do. Either move mongodb to another layer that already depends on meta-python or where it is fine to do so, or move python-cheetah to meta-oe. The latter seems like the easier choice.
//Peter
Re: [meta-oe][PATCH 1/4] meta-oe: fixup LAYERDEPENDS to include meta-python
Quoted 17 lines · Peter Kjellerstedt
Quoted 17 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Khem Raj
Sent: den 22 februari 2019 19:19
To: Nicolas Dechesne <[email protected]>
Cc: openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-oe][PATCH 1/4] meta-oe: fixup LAYERDEPENDS to include meta-pythonQuoted 4 lines · Nicolas Dechesne
meta-oe depends on meta-python, for mongodb recipe, since
5cf9a144ad16(mongodb: Upgrade to 4.0.1 release)
Quoted 8 lines
Quoted 2 lines
The dependency was always there, but I wonder if there is a better place for mongodb than meta-oe
Can we please revert this? Making meta-oe depend on meta-python is not the right thing to do. Either move mongodb to another layer that already depends on meta-python or where it is fine to do so, or move python-cheetah to meta-oe. The latter seems like the easier choice.
I am fine with dropping mongodb from meta-oe and revert this patch and the problem I see is that now meta-oe depends on meta-python and meta-python depends on meta-oe, which is not good. Although having meta-python as a dependency for meta-oe is fine or vice-versa but no loops.
Quoted 3 lines
//Peter
Re: [meta-oe][PATCH 1/4] meta-oe: fixup LAYERDEPENDS to include meta-python
Quoted 29 lines · Khem Raj
Quoted 17 lines · Peter Kjellerstedt
Quoted 17 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Khem Raj
Sent: den 22 februari 2019 19:19
To: Nicolas Dechesne <[email protected]>
Cc: openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-oe][PATCH 1/4] meta-oe: fixup LAYERDEPENDS to include meta-pythonQuoted 4 lines · Nicolas Dechesne
meta-oe depends on meta-python, for mongodb recipe, since
5cf9a144ad16(mongodb: Upgrade to 4.0.1 release)Quoted 8 lines
Quoted 2 lines
The dependency was always there, but I wonder if there is a better place for mongodb than meta-oe
Can we please revert this? Making meta-oe depend on meta-python is not the right thing to do. Either move mongodb to another layer that already depends on meta-python or where it is fine to do so, or move python-cheetah to meta-oe. The latter seems like the easier choice.
Quoted 6 lines
I am fine with dropping mongodb from meta-oe and revert this patch and the problem I see is that now meta-oe depends on meta-python and meta-python depends on meta-oe, which is not good. Although having meta-python as a dependency for meta-oe is fine or vice-versa but no loops.
I think we have to revert it for now. Its breaking bitbake add-layers due to circular dependency.
Quoted 3 lines
Quoted 3 lines
//Peter
Re: [meta-oe][PATCH 1/4] meta-oe: fixup LAYERDEPENDS to include meta-python
Yes, please revert.
Having circular dependency between meta-oe and meta-python is worse than:
cp -ra meta-python/* meta-oe/ && rmdir meta-python
that's why was such patch rejected few times already, e.g. in
https://www.mail-archive.com/[email protected]/msg61053.html
before it was protobuf, now mongodb
Is it just python-typing and python-cheetah meta-oe (mongodb) needs from meta-python?
Why not move these 2 to meta-oe/recipes-devtools/python/ to make yocto-check-layer script happy for next 3 months before someone sends another patch like this.
Or we should gave up and copy all layers to oe-core repository and call it oe-classic-ng :).
BTW: Yes I understand that the issue this patch was trying to fix was valid and yocto-check-layer is useful in some cases (e.g. this issue isn't seen by many people because almost everybody needs something from meta-python as well, so it's almost always included and inter-layer dependency like this can easily slip-in unnoticed. But if we start making dependencies between layers willy-nilly, then we will just end-up with one huge pile of recipes disadvantageously separated in multiple layers/repositories, but without any separation.
Regards,
Quoted 50 lines · Khem Raj
Quoted 6 lines · Khem Raj
Quoted 3 lines · Peter Kjellerstedt
Quoted 3 lines
-----Original Message-----
From: [email protected]<openembedded-
Quoted 23 lines
Quoted 14 lines
Quoted 14 lines
[email protected]> On Behalf Of Khem Raj
Sent: den 22 februari 2019 19:19
To: Nicolas Dechesne <[email protected]>
Cc: openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-oe][PATCH 1/4] meta-oe: fixup LAYERDEPENDS to include meta-pythonQuoted 4 lines · Nicolas Dechesne
meta-oe depends on meta-python, for mongodb recipe, since
5cf9a144ad16(mongodb: Upgrade to 4.0.1 release)Quoted 8 lines
Quoted 2 lines
The dependency was always there, but I wonder if there is a better place for mongodb than meta-oe
Can we please revert this? Making meta-oe depend on meta-python is not the right thing to do. Either move mongodb to another layer that already depends on meta-python or where it is fine to do so, or move python-cheetah to meta-oe. The latter seems like the easier choice.
Quoted 6 lines
I am fine with dropping mongodb from meta-oe and revert this patch and the problem I see is that now meta-oe depends on meta-python and meta-python depends on meta-oe, which is not good. Although having meta-python as a dependency for meta-oe is fine or vice-versa but no loops.
I think we have to revert it for now. Its breaking bitbake add-layers due to circular dependency.
Quoted 3 lines
Quoted 3 lines
//Peter
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
PATCH 2/4 polkit: add REQUIRED_DISTRO_FEATURES for polkit
In reply to Nicolas DechesneAfter below commits to add polkit as a required distro feature:
97a1a55 polkit: add polkit as a required distro feature c049e02 polkit: inherit distro_features_check
All recipes that includes polkit-group-rule.inc will fail to parse when polkit is not in DISTRO_FEATURE, especially 'world'. e.g.
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers. Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'udisks', 'polkit']
--- meta-oe/recipes-extended/polkit/polkit-group-rule.inc | 3 +++ 1 file changed, 3 insertions(+)
meta-oe/recipes-extended/polkit/polkit-group-rule.inc +3 -0
@@ -1,6 +1,9 @@ # polkit must prepare polkitd group DEPENDS += "polkit" +inherit distro_features_check +REQUIRED_DISTRO_FEATURES = "polkit" + inherit useradd do_install_prepend() {
Signature · 1 line
2.20.1
PATCH 3/4 packagegroup-meta-oe: fixup package that now require polkit
In reply to Nicolas DechesneAfter below commits to add polkit as a required distro feature:
97a1a55 polkit: add polkit as a required distro feature c049e02 polkit: inherit distro_features_check
We need to propagate that to all recipes that use/need them, such as this packagegroup, otherwise 'world' will fail.
--- meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +2 -1
@@ -243,7 +243,7 @@ RDEPENDS_packagegroup-meta-oe-support ="\ sjf2410-linux-native satyr sdparm pty-forward-native serial-forward \ sg3-utils sharutils smem spitools srecord ssiapi start-stop-daemon stm32flash \ syslog-ng system-config-keyboard tbb thin-provisioning-tools tokyocabinet \ - tree udisks udisks2 uhubctl unixodbc upower uriparser usb-modeswitch \ + tree uhubctl unixodbc uriparser usb-modeswitch \ usb-modeswitch-data usbpath uthash utouch-evemu utouch-frame \ vim vim-tiny websocketpp wmiconfig xdelta3 xdg-user-dirs xmlstarlet \ zbar zile \
@@ -251,6 +251,7 @@ RDEPENDS_packagegroup-meta-oe-support ="\ ${@bb.utils.contains("DISTRO_FEATURES", "pulseadio bluez4", "libcanberra", "", d)} \ ${@bb.utils.contains("DISTRO_FEATURES", "x11 pam", "xorgxrdp xrdp", "", d)} \ ${@bb.utils.contains("DISTRO_FEATURES", "bluez4", "procmail", "", d)} \ + ${@bb.utils.contains("DISTRO_FEATURES", "polkit", "udisks udisks2 upower", "", d)} \ ${NE10} \ "
Signature · 1 line
2.20.1
PATCH 4/4 udisks: add REQUIRED_DISTRO_FEATURES for polkit
In reply to Nicolas DechesneAfter below commits to add polkit as a required distro feature:
97a1a55 polkit: add polkit as a required distro feature c049e02 polkit: inherit distro_features_check
Need to add REQUIRED_DISTRO_FEATURES for polkit to avoid error when trying to build 'world'
--- meta-oe/recipes-support/udisks/udisks_1.0.5.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/recipes-support/udisks/udisks_1.0.5.bb +4 -1
@@ -22,7 +22,10 @@ SRC_URI = "http://hal.freedesktop.org/releases/${BPN}-${PV}.tar.gz;name=${BPN} \ SRC_URI[udisks.md5sum] = "70d48dcfe523a74cd7c7fbbc2847fcdd" SRC_URI[udisks.sha256sum] = "f2ec82eb0ea7e01dc299b5b29b3c18cdf861236ec43dcff66b3552b4b31c6f71" -inherit autotools-brokensep systemd gtk-doc +inherit autotools-brokensep systemd gtk-doc distro_features_check + +REQUIRED_DISTRO_FEATURES = "polkit" + PACKAGECONFIG ??= "libdevmapper" PACKAGECONFIG[libdevmapper] = "--enable-devmapper,--disable-devmapper,libdevmapper"
Signature · 1 line
2.20.1
Quoted 9 lines · Nicolas Dechesne
I was trying to run yocto-check-layer script and it has caught some issues.
Note that I was able to get a PASS status for meta-oe, using two additional patches from Mingli Yu <[email protected]>, i found on the list:
upower: add
REQUIRED_DISTRO_FEATURESfor polkit
udisks2: addREQUIRED_DISTRO_FEATURESfor polkit
they are in master-next
Quoted 20 lines
Nicolas Dechesne (4):
meta-oe: fixup LAYERDEPENDS to include meta-python
polkit: addREQUIRED_DISTRO_FEATURESfor polkit
packagegroup-meta-oe: fixup package that now require polkit
udisks: addREQUIRED_DISTRO_FEATURESfor polkitmeta-oe/conf/layer.conf | 1 + meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 3 ++- meta-oe/recipes-extended/polkit/polkit-group-rule.inc | 3 +++ meta-oe/recipes-support/udisks/udisks_1.0.5.bb | 5 ++++- 4 files changed, 10 insertions(+), 2 deletions(-)--
2.20.1--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 6 lines · Khem Raj
Quoted 3 lines · Nicolas Dechesne
I was trying to run yocto-check-layer script and it has caught some issues.
Quoted 8 lines
Quoted 6 lines
Note that I was able to get a PASS status for meta-oe, using two additional patches from Mingli Yu <[email protected]>, i found on the list:
upower: add
REQUIRED_DISTRO_FEATURESfor polkit
udisks2: addREQUIRED_DISTRO_FEATURESfor polkitthey are in master-next
right. that's actually where I took them. Just wanted to highlight that with these 2 patches + my 4 patches, the script passes.
Quoted 21 lines
Quoted 21 lines
Nicolas Dechesne (4):
meta-oe: fixup LAYERDEPENDS to include meta-python
polkit: addREQUIRED_DISTRO_FEATURESfor polkit
packagegroup-meta-oe: fixup package that now require polkit
udisks: addREQUIRED_DISTRO_FEATURESfor polkitmeta-oe/conf/layer.conf | 1 + meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 3 ++- meta-oe/recipes-extended/polkit/polkit-group-rule.inc | 3 +++ meta-oe/recipes-support/udisks/udisks_1.0.5.bb | 5 ++++- 4 files changed, 10 insertions(+), 2 deletions(-)--
2.20.1--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel