[yocto] Nothing PROVIDES 'python3-dev'

Damien LEFEVRE lefevre.da at gmail.com
Tue Sep 24 23:13:56 PDT 2019


> On 24/09/2019 10:36, Damien LEFEVRE wrote:
> > Hi,
> >
> > Migrating from poky:pyro to poky:warrior.
> >
> > It looks like the python3-dev package is generated from
> > python3-manifest.json:
> >
> >  ? ? "dev": {
> >  ? ? ? ? "cached": [],
> >  ? ? ? ? "files": [
> >  ? ? ? ? ? ? "${base_libdir}/*.a",
> >  ? ? ? ? ? ? "${base_libdir}/*.o",
> >  ? ? ? ? ? ? "${bindir}/python*-config",
> >  ? ? ? ? ? ? "${datadir}/aclocal",
> >  ? ? ? ? ? ? "${datadir}/pkgconfig",
> >  ? ? ? ? ? ? "${includedir}",
> >  ? ? ? ? ? ? "${libdir}/*.a",
> >  ? ? ? ? ? ? "${libdir}/*.la",
> >  ? ? ? ? ? ? "${libdir}/*.o",
> >  ? ? ? ? ? ? "${libdir}/lib*${SOLIBSDEV}",
> >  ? ? ? ? ? ? "${libdir}/pkgconfig"
> >  ? ? ? ? ],
> >  ? ? ? ? "rdepends": [
> >  ? ? ? ? ? ? "core"
> >  ? ? ? ? ],
> >  ? ? ? ? "summary": "Python development package"
> >  ? ? },
> >
> > and this is used in python3_3.7.2.bb <http://python3_3.7.2.bb>.
> >
> > Still I get this error: Nothing PROVIDES 'python3-dev'
>
> Are you trying to 'bitbake python3-dev'?  You bitbake a recipe, not a
> package, so 'bitbake python3'.
>
> Ross

Hi Ross,

The issue is with the python3 recipe. It declares RDEPENDS_python3-dev, not
DEPENDS_python3-dev.

I'm using the Python C API. So I need headers and so lib files at build
time but only so lib at runtime.

I can add python3-dev to my recipe's RDEPENDS list, but bitbake rightfully
complains about installing -dev files to the image.

I'll check today how to fix that.

-Damien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190925/231ff378/attachment.html>


More information about the yocto mailing list