[oe] [meta-python][PATCH] python3-importlib-metadata: fix class-target overriding default dependencies

nick83ola nick83ola at gmail.com
Tue Nov 19 14:42:38 UTC 2019


Hi Ross,

thanks for your response.

So do you suggest to modify in python3_3.7.5.bb:

    # First set RPROVIDES for -native case
    # Hardcoded since it cant be python3-native-foo, should be
python3-foo-native
    pn = 'python3'
    rprovides = d.getVar('RPROVIDES').split()
    rprovides.append(pn + '-misc-native')

    for key in python_manifest:
        pypackage = pn + '-' + key + '-native'
        if pypackage not in rprovides:
              rprovides.append(pypackage)

        d.setVar('RPROVIDES_class-native', ' '.join(rprovides))


(Or to add an RPROVIDES ayt the end -> is more explicit mabe? this function
is getting rprovides = d.getVar('RPROVIDES').split() )

This change I imagine needs to be done also for python2?

Cheers
Nicola Lunghi


On Tue, 19 Nov 2019 at 13:46, Ross Burton <ross.burton at intel.com> wrote:

> On 19/11/2019 13:35, nick83ola wrote:
> > Hi Ross,
> >
> > no the patch is right
> >
> > If I do:
> > bitbake python3-importlib-metadata-native
> >
> > Loading cache: 100%
> >
> |##########################################################################################################################################################################################################|
>
> > Time: 0:00:01
> > Loaded 4359 entries from dependency cache.
> > NOTE: Resolving any missing task queue dependencies
> > ERROR: Nothing RPROVIDES 'python3-misc-native' (but
> > virtual:native:/yocto/meta-openembedded/recipes-devtools/python/
> python3-importlib-metadata_0.23.bb
> > <http://python3-importlib-metadata_0.23.bb> RDEPENDS on or otherwise
> > requires it)
> > NOTE: Runtime target 'python3-misc-native' is unbuildable, removing...
> > Missing or unbuildable dependency chain was: ['python3-misc-native']
> > ERROR: Required build target 'python3-importlib-metadata-native' has no
> > buildable providers.
> > Missing or unbuildable dependency chain was:
> > ['python3-importlib-metadata-native', 'python3-misc-native']
> >
> > Summary: There were 2 ERROR messages shown, returning a non-zero exit
> code.
> >
> > There's a way to provide ${PYTHON_PN}-misc-native?
>
> Looks like a bug in python3.bb, the block of code starting '# First set
> RPROVIDES for -native case' should add python3-misc-native explicitly as
> that package isn't in the manifest.
>
> A better fix would be to remove the misc package from the recipe itself
> and define it entirely in the manifest file so it is no longer 'special'.
>
> Ross
>
>
>


More information about the Openembedded-devel mailing list