[yocto] Nothing PROVIDES 'python3-dev'

Damien LEFEVRE lefevre.da at gmail.com
Wed Sep 25 00:24:20 PDT 2019


Kiitos Jussi!

That solved it.

I had DEPENDS += "python3-dev" and RDEPENDS += "libpython3"

now

I have DEPENDS += "python3" and RDEPENDS += "libpython3"

I'll check if libpython3 is implicit when the image builds.

Cheers,
-Damien

On Wed, Sep 25, 2019 at 10:00 AM Jussi Kukkonen <jku at goto.fi> wrote:

>
>
> 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/fbbfa31d/attachment.html>


More information about the yocto mailing list