All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Peter Bergin" <peter@berginkonsult.se>
To: Matthias Klein <matthias.klein@optimeas.de>,
	"yocto@lists.yoctoproject.org" <yocto@lists.yoctoproject.org>
Subject: Re: [yocto] gpsd [version 3.23; master branch]: Is it possible to include / enable ubxtool?
Date: Wed, 1 Sep 2021 23:18:24 +0200	[thread overview]
Message-ID: <2d00b451-23d9-bffa-8ecf-4dc9c83b5d2d@berginkonsult.se> (raw)
In-Reply-To: <AM0PR10MB3107A5A0480003FB260DD93899CD9@AM0PR10MB3107.EURPRD10.PROD.OUTLOOK.COM>

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


      reply	other threads:[~2021-09-01 21:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-01 10:33 gpsd [version 3.23; master branch]: Is it possible to include / enable ubxtool? Matthias Klein
2021-09-01 12:56 ` [yocto] " Zoran
2021-09-01 13:14 ` Peter Bergin
2021-09-01 15:11   ` Matthias Klein
2021-09-01 21:18     ` Peter Bergin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2d00b451-23d9-bffa-8ecf-4dc9c83b5d2d@berginkonsult.se \
    --to=peter@berginkonsult.se \
    --cc=matthias.klein@optimeas.de \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.