Skip to contentSkip to conversation

Various fixes for YP compatible

PATCH In review Nicolas Dechesne 2 participants 8 messages Jul 20, 2021 – Jul 25, 2021

lore
Share & tools
lore
#0 lore raw

cover Various fixes for YP compatible

There are some pending requests for YP compatible for layers which depend on meta-oe, meta-python and meta-networking. In dunfell, these layers do not PASS the yocto-check-layer compatibility script. With these patches applied, I am able to get this:

INFO: Summary of results:
INFO:
INFO: meta-networking ... PASS
INFO: meta-python ... PASS
INFO: meta-oe ... PASS

Khem Raj (1):
libdevmapper,lvm2: Do not inherit license

Nicolas Dechesne (4):
python3-markupsafe: remove recipe
python3-jinja2: remove recipe python3-{pyyaml,cython,pyparsing}: move from meta-python to meta-oe
ostree: Do not check for meta-python

 .../recipes-devtools/python/python-cython.inc |  0
 .../python/python3-cython_0.29.14.bb          |  0
 .../python/python3-pyparsing_2.4.6.bb         |  0
 .../python/python3-pyyaml_5.3.1.bb            |  0
 .../recipes-extended/ostree/ostree_2020.3.bb  |  2 +-
 meta-oe/recipes-support/lvm2/lvm2.inc         |  5 +--
 .../python/python3-jinja2/run-ptest           |  3 --
 .../python/python3-jinja2_2.11.2.bb           | 43 -------------------
 .../python/python3-markupsafe/run-ptest       |  3 --
 .../python/python3-markupsafe_1.1.1.bb        |  2 -
 10 files changed, 3 insertions(+), 55 deletions(-)
 rename {meta-python => meta-oe}/recipes-devtools/python/python-cython.inc (100%)
 rename {meta-python => meta-oe}/recipes-devtools/python/python3-cython_0.29.14.bb (100%)
 rename {meta-python => meta-oe}/recipes-devtools/python/python3-pyparsing_2.4.6.bb (100%)
 rename {meta-python => meta-oe}/recipes-devtools/python/python3-pyyaml_5.3.1.bb (100%)
 delete mode 100644 meta-python/recipes-devtools/python/python3-jinja2/run-ptest
 delete mode 100644 meta-python/recipes-devtools/python/python3-jinja2_2.11.2.bb
 delete mode 100644 meta-python/recipes-devtools/python/python3-markupsafe/run-ptest
 delete mode 100644 meta-python/recipes-devtools/python/python3-markupsafe_1.1.1.bb
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/5 libdevmapper,lvm2: Do not inherit license

From: Khem Raj <[email protected]>

inheriting license class which brings in
AVAILABLE_LICENSES into do_configure task checksums class since it wants to
enable thin-provisioning-tools if distro allows GPL-3 automatically, but this
brings issues when other layers which have additional licenses are
provided which ends up in signature mismatches so leave that setting to end-user and keep it disabled by default with a comment in recipes stating that if needed then the user should enable it via config metadata or bbappends.

(cherry picked from commit f592e81f11d455546447ddff35b2f89e18c0cc0c)
---
 meta-oe/recipes-support/lvm2/lvm2.inc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta-oe/recipes-support/lvm2/lvm2.inc +2 -3
index 01c9df45c..2fe97d571 100644
@@ -19,12 +19,11 @@ SRC_URI = "git://sourceware.org/git/lvm2.git \
 SRCREV = "b9391b1b9f0b73303fa21f8f92574d17ce4c2b02"
 S = "${WORKDIR}/git"
 
-inherit autotools-brokensep pkgconfig systemd license
+inherit autotools-brokensep pkgconfig systemd
 
 LVM2_PACKAGECONFIG = "dmeventd"
 LVM2_PACKAGECONFIG_append_class-target = " \
     ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \
-    ${@incompatible_license_contains('GPLv3', '', 'thin-provisioning-tools', d)} \
 "
 
 # odirect is always enabled because there currently is a bug in
@@ -37,6 +36,7 @@ PACKAGECONFIG[dmeventd] = "--enable-dmeventd,--disable-dmeventd"
 PACKAGECONFIG[odirect] = "--enable-o_direct,--disable-o_direct"
 PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline"
 PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
+# NOTE: Add thin-provisioning-tools only if your distro policy allows GPL-3.0 license
 PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools"
 
 # Unset user/group to unbreak install.
@@ -53,4 +53,3 @@ EXTRA_OECONF = "--with-user= \
                 --with-thin-repair=${sbindir}/thin_repair \
                 --with-thin-restore=${sbindir}/thin_restore \
 "
-
Signature · 1 line
2.29.2
#2 lore raw

PATCH 2/5 python3-markupsafe: remove recipe

In reply to Nicolas Dechesne

It was moved to OE-core/dunfell in
ec222f6af5f8 (python3-markupsafe: Import from meta-oe/meta-python)

However it was not removed from meta-oe, as such this recipe is now duplicated, for no good reason. The version in meta-oe and oe-core match so, it's really a no-op.

---
 .../recipes-devtools/python/python3-markupsafe/run-ptest       | 3 ---
 .../recipes-devtools/python/python3-markupsafe_1.1.1.bb        | 2 --
 2 files changed, 5 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-markupsafe/run-ptest
 delete mode 100644 meta-python/recipes-devtools/python/python3-markupsafe_1.1.1.bb
meta-python/recipes-devtools/python/python3-markupsafe/run-ptest deleted +0 -3
deleted file mode 100644
index 5cec71169..000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest
meta-python/recipes-devtools/python/python3-markupsafe_1.1.1.bb deleted +0 -2
deleted file mode 100644
index 765e3c906..000000000
@@ -1,2 +0,0 @@
-inherit setuptools3
-require python-markupsafe.inc
Signature · 1 line
2.29.2
#3 lore raw

PATCH 3/5 python3-jinja2: remove recipe

In reply to Nicolas Dechesne

It was moved to OE-core/dunfell in
cc0f56a788c3 (python3-jinja2: Import from meta-oe/meta-python)

However it was not removed from meta-oe, as such this recipe is now duplicated, for no good reason. Worse than that, the version in meta-oe and oe-core differ. OE-core has 2.11.3 and meta-oe is older with 2.11.2.

---
 .../python/python3-jinja2/run-ptest           |  3 --
 .../python/python3-jinja2_2.11.2.bb           | 43 -------------------
 2 files changed, 46 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-jinja2/run-ptest
 delete mode 100644 meta-python/recipes-devtools/python/python3-jinja2_2.11.2.bb
meta-python/recipes-devtools/python/python3-jinja2/run-ptest deleted +0 -3
deleted file mode 100644
index 5cec71169..000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-pytest
meta-python/recipes-devtools/python/python3-jinja2_2.11.2.bb deleted +0 -43

43 lines not on this page · raw message

Signature · 1 line
2.29.2
#4 lore raw

PATCH 4/5 python3-{pyyaml,cython,pyparsing}: move from meta-python to meta-oe

In reply to Nicolas Dechesne

This specific statement in ostree recipe breaks the YP compatible status (yocto-check-layer):

RDEPENDS_${PN}-ptest += " \
    ...
    ${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-python',    'python3-pyyaml', '', d)} \
    ...

"

Recently python3-pyyaml was moved to OE-core (0a8600f9cec0), and the ostree recipe was fixed with:
b9ede0cb182a (python3-pyyaml: Do not check for meta-python)

In dunfell, moving python3-pyyaml to OE-core is not a great idea, but moving it from meta-python to meta-oe allows us to fix ostree YP compatible issue. Since meta-python depends on meta-oe, it should not be a change with any visible effect.

python3-cython and python3-pyparsing are collateral damages since they are dependency for python3-pyyaml, so needed to be moved too.

---
 .../recipes-devtools/python/python-cython.inc                     | 0
 .../recipes-devtools/python/python3-cython_0.29.14.bb             | 0
 .../recipes-devtools/python/python3-pyparsing_2.4.6.bb            | 0
 .../recipes-devtools/python/python3-pyyaml_5.3.1.bb               | 0
 4 files changed, 0 insertions(+), 0 deletions(-)
 rename {meta-python => meta-oe}/recipes-devtools/python/python-cython.inc (100%)
 rename {meta-python => meta-oe}/recipes-devtools/python/python3-cython_0.29.14.bb (100%)
 rename {meta-python => meta-oe}/recipes-devtools/python/python3-pyparsing_2.4.6.bb (100%)
 rename {meta-python => meta-oe}/recipes-devtools/python/python3-pyyaml_5.3.1.bb (100%)
meta-oe/recipes-devtools/python/python-cython.inc renamed from meta-python/recipes-devtools/python/python-cython.inc +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python-cython.inc
rename to meta-oe/recipes-devtools/python/python-cython.inc
meta-oe/recipes-devtools/python/python3-cython_0.29.14.bb renamed from meta-python/recipes-devtools/python/python3-cython_0.29.14.bb +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-cython_0.29.14.bb
rename to meta-oe/recipes-devtools/python/python3-cython_0.29.14.bb
meta-oe/recipes-devtools/python/python3-pyparsing_2.4.6.bb renamed from meta-python/recipes-devtools/python/python3-pyparsing_2.4.6.bb +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pyparsing_2.4.6.bb
rename to meta-oe/recipes-devtools/python/python3-pyparsing_2.4.6.bb
meta-oe/recipes-devtools/python/python3-pyyaml_5.3.1.bb renamed from meta-python/recipes-devtools/python/python3-pyyaml_5.3.1.bb +0 -0
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-pyyaml_5.3.1.bb
rename to meta-oe/recipes-devtools/python/python3-pyyaml_5.3.1.bb
Signature · 1 line
2.29.2
#5 lore raw

PATCH 5/5 ostree: Do not check for meta-python

In reply to Nicolas Dechesne

It is a (non trivial) cherry pick from
(cherry picked from commit b9ede0cb182ab095c863a6a5154bbe259a33f5c0)

python3-pyyaml was moved from meta-python to meta-oe, so that we could apply this specific patch which breaks basic YP compatible check script.

---
 meta-oe/recipes-extended/ostree/ostree_2020.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/ostree/ostree_2020.3.bb +1 -1
index 86407459b..c1f43feb6 100644
@@ -176,7 +176,7 @@ RDEPENDS_${PN}-ptest += " \
     util-linux \
     xz \
     ${PN}-trivial-httpd \
-    ${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-python', 'python3-pyyaml', '', d)} \
+    python3-pyyaml \
     ${@bb.utils.contains('PACKAGECONFIG', 'gjs', 'gjs', '', d)} \
 "
 RDEPENDS_${PN}-ptest_append_libc-glibc = " glibc-utils glibc-localedata-en-us"
Signature · 1 line
2.29.2
#6 lore raw
In reply to Nicolas Dechesne

d'oh... I meant to add it in the prefix.. but these patches are for dunfell branch.

Quoted 52 lines · Nicolas Dechesne

There are some pending requests for YP compatible for layers which depend on meta-oe, meta-python and meta-networking. In dunfell, these layers do not PASS the yocto-check-layer compatibility script. With these patches applied, I am able to get this:

INFO: Summary of results:
INFO:
INFO: meta-networking ... PASS
INFO: meta-python ... PASS
INFO: meta-oe ... PASS

Khem Raj (1):
libdevmapper,lvm2: Do not inherit license

Nicolas Dechesne (4):
python3-markupsafe: remove recipe
python3-jinja2: remove recipe python3-{pyyaml,cython,pyparsing}: move from meta-python to meta-oe
ostree: Do not check for meta-python

 .../recipes-devtools/python/python-cython.inc |  0
 .../python/python3-cython_0.29.14.bb          |  0
 .../python/python3-pyparsing_2.4.6.bb         |  0
 .../python/python3-pyyaml_5.3.1.bb            |  0
 .../recipes-extended/ostree/ostree_2020.3.bb  |  2 +-
 meta-oe/recipes-support/lvm2/lvm2.inc         |  5 +--
 .../python/python3-jinja2/run-ptest           |  3 --
 .../python/python3-jinja2_2.11.2.bb           | 43 -------------------
 .../python/python3-markupsafe/run-ptest       |  3 --
 .../python/python3-markupsafe_1.1.1.bb        |  2 -
 10 files changed, 3 insertions(+), 55 deletions(-)
 rename {meta-python => meta-oe}/recipes-devtools/python/python-cython.inc
(100%)
 rename {meta-python => meta-oe}/recipes-devtools/python/
python3-cython_0.29.14.bb (100%)
 rename {meta-python => meta-oe}/recipes-devtools/python/
python3-pyparsing_2.4.6.bb (100%)
 rename {meta-python => meta-oe}/recipes-devtools/python/
python3-pyyaml_5.3.1.bb (100%)
 delete mode 100644
meta-python/recipes-devtools/python/python3-jinja2/run-ptest
 delete mode 100644 meta-python/recipes-devtools/python/
python3-jinja2_2.11.2.bb
 delete mode 100644
meta-python/recipes-devtools/python/python3-markupsafe/run-ptest
 delete mode 100644 meta-python/recipes-devtools/python/

python3-markupsafe_1.1.1.bb

--
2.29.2

#7 lore raw
In reply to Nicolas Dechesne
Quoted 5 lines · Nicolas Dechesne

There are some pending requests for YP compatible for layers which depend on meta-oe, meta-python and meta-networking. In dunfell, these layers do not PASS the yocto-check-layer compatibility script. With these patches applied, I am able to get this:

Quoted 8 lines

INFO: Summary of results:
INFO:
INFO: meta-networking ... PASS
INFO: meta-python ... PASS
INFO: meta-oe ... PASS

Khem Raj (1):
libdevmapper,lvm2: Do not inherit license

I remembered these changes after I sent out the last patch review. They are queued up in the next batch.

-armin

Quoted 27 lines

Nicolas Dechesne (4):
python3-markupsafe: remove recipe
python3-jinja2: remove recipe python3-{pyyaml,cython,pyparsing}: move from meta-python to meta-oe
ostree: Do not check for meta-python

 .../recipes-devtools/python/python-cython.inc |  0
 .../python/python3-cython_0.29.14.bb          |  0
 .../python/python3-pyparsing_2.4.6.bb         |  0
 .../python/python3-pyyaml_5.3.1.bb            |  0
 .../recipes-extended/ostree/ostree_2020.3.bb  |  2 +-
 meta-oe/recipes-support/lvm2/lvm2.inc         |  5 +--
 .../python/python3-jinja2/run-ptest           |  3 --
 .../python/python3-jinja2_2.11.2.bb           | 43 -------------------
 .../python/python3-markupsafe/run-ptest       |  3 --
 .../python/python3-markupsafe_1.1.1.bb        |  2 -
 10 files changed, 3 insertions(+), 55 deletions(-)
 rename {meta-python => meta-oe}/recipes-devtools/python/python-cython.inc (100%)
 rename {meta-python => meta-oe}/recipes-devtools/python/python3-cython_0.29.14.bb (100%)
 rename {meta-python => meta-oe}/recipes-devtools/python/python3-pyparsing_2.4.6.bb (100%)
 rename {meta-python => meta-oe}/recipes-devtools/python/python3-pyyaml_5.3.1.bb (100%)
 delete mode 100644 meta-python/recipes-devtools/python/python3-jinja2/run-ptest
 delete mode 100644 meta-python/recipes-devtools/python/python3-jinja2_2.11.2.bb
 delete mode 100644 meta-python/recipes-devtools/python/python3-markupsafe/run-ptest
 delete mode 100644 meta-python/recipes-devtools/python/python3-markupsafe_1.1.1.bb