gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] report on my build nits


From: Gary E. Miller
Subject: Re: [gpsd-dev] report on my build nits
Date: Fri, 20 Sep 2019 18:23:35 -0700

Yo Greg!

On Fri, 20 Sep 2019 21:12:24 -0400
Greg Troxel <address@hidden> wrote:

> "Gary E. Miller" <address@hidden> writes:
> 
> >> > I don't have a binary "python" and set PYTHON=python2.7 in the
> >> > environment before calling scons.  This used to work fine, and
> >> > now it doesn't seem to (python not found) -- but lots of things
> >> > seem odd which is probably just one other issue causing multiple
> >> > oddnesses.  Has anything changed about this?    
> >> 
> >> It used to be that PYTHON in the environment worked, and now it
> >> doesn't.  
> >
> > What are you trying to do with the PYTHON variable?  I don't need
> > that with Gentoo.  
> 
> I need to set PYTHON because I have no program named "python".
> Despite differing with PEPfoo, my system views it as necessary for
> soundness to bind each python-using program to a specific python
> version at build/install time, rather than letting it pick up some
> possibly-different python at run time.  Not going to get resolved,

Yeah, little gpsd can do about broken distros that do not follow
upstream preferences.

By design, gpsd does not care as long as Python > 2.6

> but
> gpsd should be able to cope with PYTHON naming the one to use when
> there is no python.  It turns out it basically can, with another
> variable.

Yup.  Well, several of them...

> >> The docs didn't explain the scons target_python option,
> >> needed to find a python interpreter not named python.  
> >
> > You can't just change the name of the python program, you also,
> > usualy, need to change the PYTHONPATH.  
> 
> Each python program has a compiled-in default PYTHONPATH that works;
> python3.7 e.g. looks in
> /usr/pkg/lib/python3.7/site-packages/./usr/pkg/lib/python3.7/site-packages/

Wow, that is weird.  Never seen that.  Why would someone put usr/pcg
under another /usr/pkg?

Either way, it is sorta circular, you need the PYTHONPATH to find the
PYTHONPATH in those files...

> >> So other than enforcing version matching on xgps vs gpsd, my issues
> >> are all cleared up.  
> >
> > Eric keeps insisting no the current behavior.  It does simplify a
> > lot of things and has quickly identified bad installs.  
> 
> It does, but it also breaks the notion of gpsd as a network protocol
> where you can run a client on one machine and the gpsd server on
> another.

Only when they are different versions.  You'll need to take that up with
Eric.

>  Arguably there should be a protocol version instead, with
> significant effort not to have a breaking change.

Already done.  This is what it looks like:

# gpspipe -w pi8
{"class":"VERSION","release":"3.19.1~dev","rev":"release-3.19-527-g670e7c538","proto_major":3,"proto_minor":14}

Notice the VERSION and rev.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgp5GBXlZAFgV.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]