[OE-core] [PATCH] bind: fix python3 dependencies

Dan McGregor danismostlikely at gmail.com
Mon Nov 27 20:24:53 UTC 2017


On 27 November 2017 at 13:16, Alexander Kanavin
<alexander.kanavin at linux.intel.com> wrote:
> On 11/27/2017 08:35 PM, Dan McGregor wrote:
>>
>> Add missing python3 dependency, and use python3 from the build
>> system.
>> -DEPENDS = "openssl libcap"
>> +DEPENDS = "openssl libcap python3"
>> -inherit autotools update-rc.d systemd useradd pkgconfig python3-dir
>> +inherit autotools update-rc.d systemd useradd pkgconfig python3-dir
>> python3native
>
>
> This should have a more specific explanation. Namely:
>
> 1) why is target python3 needed at build time (if not, it should be in
> RDEPENDS of a specific package)

It's already in RDEPENDS as python3-core. It's needed at build time so
that the python component build of bind can find python in the
sysroot. Without this change I get:

| error: invalid Python installation: unable to open
/usr/lib/python3.5/config-3.5m/Makefile (No such file or directory)

With only inherit python3native I get:

| error: invalid Python installation: unable to open <recipe
sysroot>/usr/lib64/python3.5/config-3.5m/Makefile (No such file or
directory)

>
> 2) why is native python3 needed, and host python3 is not enough.

Host python3 gives me the error above. Possibly my host's python3 is
broken, but it's a Poky build appliance with multilib enabled.

I'll make it more explicit in my commit message.

Thanks.

>
>
> Alex



More information about the Openembedded-core mailing list