Hi Matthias,

On 2021-09-01 17:11, Matthias Klein wrote:
Hello Peter,

I'm not sure it's that simple.
Sorry for my quick and a bit oversimplified response. I did my first build on an older version (3.20) where ubxtool was not built but present in the repo root. I see now that in 3.23 gpsd have changed concept and client/ubxtool.py.in is mangled through the build system to fill in some stuff and produce the ubxtool script.
To me it looks like the recipe has bugs in python area, or my environment / 
build is causing problems.
In the log.do_compile file I see messages which make me wonder:

Checking whether python program exists...no
Target Python doesn't exist - disabling Python.
python = False (default True): build Python support and modules.
GPS regression tests suppressed because socket_export or python is off.

It looks to me that everything Python specific is disabled.
Therefore I am missing on the target e.g. also the following file which should 
be generated:

/usr/lib/python3.9/site-packages/gps/__init__.py
/usr/lib/python3.9/site-packages/gps/gps.py

Can anyone confirm this?

Confirmed!

The issue is that the package gpsd requires /usr/bin/python to be present as described in the documentation (https://gitlab.com/gpsd/gpsd/-/blob/master/build.adoc#user-content-quick-start). This is not the case in Yocto when using python3native bbclass. As described in the documentation it is possible to add a symlink called /usr/bin/python to the python interpreter in the sysroot. You can do this by adding:

    ln -sf python3-native/python3 ${STAGING_BINDIR_NATIVE}/python

When scons finds /usr/bin/python the python packages are also built in gpsd. Then you can continue to install and package ubxtool.

Best regards,
/Peter

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54634): https://lists.yoctoproject.org/g/yocto/message/54634
Mute This Topic: https://lists.yoctoproject.org/mt/85298361/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to