All of lore.kernel.org
 help / color / mirror / Atom feed
* gpsd [version 3.23; master branch]: Is it possible to include / enable ubxtool?
@ 2021-09-01 10:33 Matthias Klein
  2021-09-01 12:56 ` [yocto] " Zoran
  2021-09-01 13:14 ` Peter Bergin
  0 siblings, 2 replies; 5+ messages in thread
From: Matthias Klein @ 2021-09-01 10:33 UTC (permalink / raw)
  To: yocto

Hello,

is it somehow possible to add the ubxtool in the gpsd-utils package?

(I use the current master branch)

Best regards,
Matthias


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [yocto] gpsd [version 3.23; master branch]: Is it possible to include / enable ubxtool?
  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 ` Zoran
  2021-09-01 13:14 ` Peter Bergin
  1 sibling, 0 replies; 5+ messages in thread
From: Zoran @ 2021-09-01 12:56 UTC (permalink / raw)
  To: Matthias Klein; +Cc: yocto

To add every package (into poky) by every personal wish of any Yocto
user, or not to add any package without exclusion, that is the
question?

Why not to do addition of the proprietary layer for missing package or
group of missing by the same/similar context packages???

Zee
_______

On Wed, Sep 1, 2021 at 12:33 PM Matthias Klein
<matthias.klein@optimeas.de> wrote:
>
> Hello,
>
> is it somehow possible to add the ubxtool in the gpsd-utils package?
>
> (I use the current master branch)
>
> Best regards,
> Matthias
>
>
> 
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [yocto] gpsd [version 3.23; master branch]: Is it possible to include / enable ubxtool?
  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
  1 sibling, 1 reply; 5+ messages in thread
From: Peter Bergin @ 2021-09-01 13:14 UTC (permalink / raw)
  To: Matthias Klein, yocto

Hi Matthias,

On 2021-09-01 12:33, Matthias Klein wrote:
> Hello,
>
> is it somehow possible to add the ubxtool in the gpsd-utils package?
>
> (I use the current master branch)
>
gpsd recipe is located in meta-oe. As the ubxtool file is present in the 
build it is possible to add it. Just make sure it is installed in the 
do_install step and then that the file is added to FILES_gps-utils 
variable.

Best regards,
/Peter


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [yocto] gpsd [version 3.23; master branch]: Is it possible to include / enable ubxtool?
  2021-09-01 13:14 ` Peter Bergin
@ 2021-09-01 15:11   ` Matthias Klein
  2021-09-01 21:18     ` Peter Bergin
  0 siblings, 1 reply; 5+ messages in thread
From: Matthias Klein @ 2021-09-01 15:11 UTC (permalink / raw)
  To: Peter Bergin, yocto

Hello Peter,

I'm not sure it's that simple.

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?

Best regards,
Matthias

-----Ursprüngliche Nachricht-----
Von: Peter Bergin <peter@berginkonsult.se> 
Gesendet: Mittwoch, 1. September 2021 15:15
An: Matthias Klein <matthias.klein@optimeas.de>; yocto@lists.yoctoproject.org
Betreff: Re: [yocto] gpsd [version 3.23; master branch]: Is it possible to include / enable ubxtool?

Hi Matthias,

On 2021-09-01 12:33, Matthias Klein wrote:
> Hello,
>
> is it somehow possible to add the ubxtool in the gpsd-utils package?
>
> (I use the current master branch)
>
gpsd recipe is located in meta-oe. As the ubxtool file is present in the build it is possible to add it. Just make sure it is installed in the do_install step and then that the file is added to FILES_gps-utils variable.

Best regards,
/Peter


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [yocto] gpsd [version 3.23; master branch]: Is it possible to include / enable ubxtool?
  2021-09-01 15:11   ` Matthias Klein
@ 2021-09-01 21:18     ` Peter Bergin
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Bergin @ 2021-09-01 21:18 UTC (permalink / raw)
  To: Matthias Klein, yocto

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-01 21:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.