[yocto] Nothing PROVIDES 'python3-dev'
Jussi Kukkonen
jku at goto.fi
Tue Sep 24 23:59:52 PDT 2019
On Wed, 25 Sep 2019 at 09:16, Damien LEFEVRE <lefevre.da at gmail.com> wrote:
> > 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.
>
DEPENDing on python3 should give you the former (headers etc in sysroot at
build time) and RDEPENDing on the correct package (maybe libpython3?)
should give you the latter -- but RDEPENDS should be automatic if your app
links to the library.
Is this not working?
>
> 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
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190925/527bf138/attachment.html>
More information about the yocto
mailing list