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

Ross Burton ross.burton at intel.com
Tue Nov 19 15:10:39 UTC 2019


On 19/11/2019 14:42, nick83ola wrote:
> Hi Ross,
> 
> thanks for your response.
> 
> So do you suggest to modify in python3_3.7.5.bb <http://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?

rprovides.append(pn + '-misc-native') seems like the easiest fix for 
now.  Yes, Py2 probably has the same problem.

Ross


More information about the Openembedded-devel mailing list