diff mbox series

[meta-python,004/149] python3-pywbem: don't use PYTHON_PN

Message ID 20230531082437.10646-5-brgl@bgdev.pl
State New
Headers show
Series python3: improve run-time dependencies situation | expand

Commit Message

Bartosz Golaszewski May 31, 2023, 8:22 a.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

We no longer support python2. Drop PYTHON_PN and use python3 explicitly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 .../pywbem/python3-pywbem_1.6.1.bb            | 34 +++++++++----------
 1 file changed, 17 insertions(+), 17 deletions(-)

Comments

Khem Raj June 1, 2023, 4:25 p.m. UTC | #1
seeing this

13:23:45 NOTE: Resolving any missing task queue dependencies
13:23:54 ERROR: Nothing RPROVIDES 'python3-yamlloader-native' (but
virtual:native:/mnt/jenkins/workspace/Yocto-world-arm/sources/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
RDEPENDS on or otherwise requires it)
13:23:54 NOTE: Runtime target 'python3-yamlloader-native' is
unbuildable, removing...
13:23:54 Missing or unbuildable dependency chain was:
['python3-yamlloader-native']
13:23:54 NOTE: Runtime target 'python3-pywbemtools' is unbuildable, removing...
13:23:54 Missing or unbuildable dependency chain was:
['python3-pywbemtools', 'python3-pywbem-native',
'python3-yamlloader-native']
13:23:54 NOTE: Runtime target 'python3-pywbemtools-dev' is
unbuildable, removing...
13:23:54 Missing or unbuildable dependency chain was:
['python3-pywbemtools-dev', 'python3-pywbem-native',
'python3-yamlloader-native']
13:23:59 ERROR: Nothing RPROVIDES 'python3-nocasedict-native' (but
virtual:native:/mnt/jenkins/workspace/Yocto-world-arm/sources/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
RDEPENDS on or otherwise requires it)
13:23:59 NOTE: Runtime target 'python3-nocasedict-native' is
unbuildable, removing...
13:23:59 Missing or unbuildable dependency chain was:
['python3-nocasedict-native']
13:24:04 ERROR: Nothing RPROVIDES 'python3-nocaselist-native' (but
virtual:native:/mnt/jenkins/workspace/Yocto-world-arm/sources/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
RDEPENDS on or otherwise requires it)
13:24:04 NOTE: Runtime target 'python3-nocaselist-native' is
unbuildable, removing...
13:24:04 Missing or unbuildable dependency chain was:
['python3-nocaselist-native']

On Wed, May 31, 2023 at 1:25 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> We no longer support python2. Drop PYTHON_PN and use python3 explicitly.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> ---
>  .../pywbem/python3-pywbem_1.6.1.bb            | 34 +++++++++----------
>  1 file changed, 17 insertions(+), 17 deletions(-)
>
> diff --git a/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb b/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
> index 8b0383cf6..c84576382 100644
> --- a/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
> +++ b/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
> @@ -21,26 +21,26 @@ SRC_URI[sha256sum] = "abdbd6ce08b6c597cdd6c7730e6b49a842d913f2f6b3cc62b585c58ec3
>  inherit pypi setuptools3 update-alternatives
>
>  DEPENDS += " \
> -    ${PYTHON_PN}-ply-native \
> -    ${PYTHON_PN}-pyyaml-native \
> -    ${PYTHON_PN}-six-native \
> -    ${PYTHON_PN}-wheel-native \
> +    python3-ply-native \
> +    python3-pyyaml-native \
> +    python3-six-native \
> +    python3-wheel-native \
>  "
>
>  RDEPENDS:${PN} += "\
> -    ${PYTHON_PN}-datetime \
> -    ${PYTHON_PN}-io \
> -    ${PYTHON_PN}-netclient \
> -    ${PYTHON_PN}-ply \
> -    ${PYTHON_PN}-pyyaml \
> -    ${PYTHON_PN}-six \
> -    ${PYTHON_PN}-stringold \
> -    ${PYTHON_PN}-threading \
> -    ${PYTHON_PN}-unixadmin \
> -    ${PYTHON_PN}-xml \
> -    ${PYTHON_PN}-nocasedict \
> -    ${PYTHON_PN}-nocaselist \
> -    ${PYTHON_PN}-yamlloader \
> +    python3-datetime \
> +    python3-io \
> +    python3-netclient \
> +    python3-ply \
> +    python3-pyyaml \
> +    python3-six \
> +    python3-stringold \
> +    python3-threading \
> +    python3-unixadmin \
> +    python3-xml \
> +    python3-nocasedict \
> +    python3-nocaselist \
> +    python3-yamlloader \
>  "
>
>  ALTERNATIVE:${PN} = "mof_compiler"
> --
> 2.39.2
>
Bartosz Golaszewski June 1, 2023, 7:16 p.m. UTC | #2
On Thu, Jun 1, 2023 at 6:26 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> seeing this
>
> 13:23:45 NOTE: Resolving any missing task queue dependencies
> 13:23:54 ERROR: Nothing RPROVIDES 'python3-yamlloader-native' (but
> virtual:native:/mnt/jenkins/workspace/Yocto-world-arm/sources/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
> RDEPENDS on or otherwise requires it)
> 13:23:54 NOTE: Runtime target 'python3-yamlloader-native' is
> unbuildable, removing...
> 13:23:54 Missing or unbuildable dependency chain was:
> ['python3-yamlloader-native']
> 13:23:54 NOTE: Runtime target 'python3-pywbemtools' is unbuildable, removing...
> 13:23:54 Missing or unbuildable dependency chain was:
> ['python3-pywbemtools', 'python3-pywbem-native',
> 'python3-yamlloader-native']
> 13:23:54 NOTE: Runtime target 'python3-pywbemtools-dev' is
> unbuildable, removing...
> 13:23:54 Missing or unbuildable dependency chain was:
> ['python3-pywbemtools-dev', 'python3-pywbem-native',
> 'python3-yamlloader-native']
> 13:23:59 ERROR: Nothing RPROVIDES 'python3-nocasedict-native' (but
> virtual:native:/mnt/jenkins/workspace/Yocto-world-arm/sources/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
> RDEPENDS on or otherwise requires it)
> 13:23:59 NOTE: Runtime target 'python3-nocasedict-native' is
> unbuildable, removing...
> 13:23:59 Missing or unbuildable dependency chain was:
> ['python3-nocasedict-native']
> 13:24:04 ERROR: Nothing RPROVIDES 'python3-nocaselist-native' (but
> virtual:native:/mnt/jenkins/workspace/Yocto-world-arm/sources/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
> RDEPENDS on or otherwise requires it)
> 13:24:04 NOTE: Runtime target 'python3-nocaselist-native' is
> unbuildable, removing...
> 13:24:04 Missing or unbuildable dependency chain was:
> ['python3-nocaselist-native']
>

This is caused by dependencies of python3-pywbem-native not having
BBCLASSEXTEND = "native" in their recipes. How did it even work
before? Clearly it wouldn't pull any of its run-time dependencies into
the native sysroot...

Bart

> On Wed, May 31, 2023 at 1:25 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> >
> > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >
> > We no longer support python2. Drop PYTHON_PN and use python3 explicitly.
> >
> > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> > ---
> >  .../pywbem/python3-pywbem_1.6.1.bb            | 34 +++++++++----------
> >  1 file changed, 17 insertions(+), 17 deletions(-)
> >
> > diff --git a/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb b/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
> > index 8b0383cf6..c84576382 100644
> > --- a/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
> > +++ b/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
> > @@ -21,26 +21,26 @@ SRC_URI[sha256sum] = "abdbd6ce08b6c597cdd6c7730e6b49a842d913f2f6b3cc62b585c58ec3
> >  inherit pypi setuptools3 update-alternatives
> >
> >  DEPENDS += " \
> > -    ${PYTHON_PN}-ply-native \
> > -    ${PYTHON_PN}-pyyaml-native \
> > -    ${PYTHON_PN}-six-native \
> > -    ${PYTHON_PN}-wheel-native \
> > +    python3-ply-native \
> > +    python3-pyyaml-native \
> > +    python3-six-native \
> > +    python3-wheel-native \
> >  "
> >
> >  RDEPENDS:${PN} += "\
> > -    ${PYTHON_PN}-datetime \
> > -    ${PYTHON_PN}-io \
> > -    ${PYTHON_PN}-netclient \
> > -    ${PYTHON_PN}-ply \
> > -    ${PYTHON_PN}-pyyaml \
> > -    ${PYTHON_PN}-six \
> > -    ${PYTHON_PN}-stringold \
> > -    ${PYTHON_PN}-threading \
> > -    ${PYTHON_PN}-unixadmin \
> > -    ${PYTHON_PN}-xml \
> > -    ${PYTHON_PN}-nocasedict \
> > -    ${PYTHON_PN}-nocaselist \
> > -    ${PYTHON_PN}-yamlloader \
> > +    python3-datetime \
> > +    python3-io \
> > +    python3-netclient \
> > +    python3-ply \
> > +    python3-pyyaml \
> > +    python3-six \
> > +    python3-stringold \
> > +    python3-threading \
> > +    python3-unixadmin \
> > +    python3-xml \
> > +    python3-nocasedict \
> > +    python3-nocaselist \
> > +    python3-yamlloader \
> >  "
> >
> >  ALTERNATIVE:${PN} = "mof_compiler"
> > --
> > 2.39.2
> >
diff mbox series

Patch

diff --git a/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb b/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
index 8b0383cf6..c84576382 100644
--- a/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
+++ b/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb
@@ -21,26 +21,26 @@  SRC_URI[sha256sum] = "abdbd6ce08b6c597cdd6c7730e6b49a842d913f2f6b3cc62b585c58ec3
 inherit pypi setuptools3 update-alternatives
 
 DEPENDS += " \
-    ${PYTHON_PN}-ply-native \
-    ${PYTHON_PN}-pyyaml-native \
-    ${PYTHON_PN}-six-native \
-    ${PYTHON_PN}-wheel-native \
+    python3-ply-native \
+    python3-pyyaml-native \
+    python3-six-native \
+    python3-wheel-native \
 "
 
 RDEPENDS:${PN} += "\
-    ${PYTHON_PN}-datetime \
-    ${PYTHON_PN}-io \
-    ${PYTHON_PN}-netclient \
-    ${PYTHON_PN}-ply \
-    ${PYTHON_PN}-pyyaml \
-    ${PYTHON_PN}-six \
-    ${PYTHON_PN}-stringold \
-    ${PYTHON_PN}-threading \
-    ${PYTHON_PN}-unixadmin \
-    ${PYTHON_PN}-xml \
-    ${PYTHON_PN}-nocasedict \
-    ${PYTHON_PN}-nocaselist \
-    ${PYTHON_PN}-yamlloader \
+    python3-datetime \
+    python3-io \
+    python3-netclient \
+    python3-ply \
+    python3-pyyaml \
+    python3-six \
+    python3-stringold \
+    python3-threading \
+    python3-unixadmin \
+    python3-xml \
+    python3-nocasedict \
+    python3-nocaselist \
+    python3-yamlloader \
 "
 
 ALTERNATIVE:${PN} = "mof_compiler"