Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 666734

Summary: sci-geosciences/gpsd-3.17-r3 xgps uses /usr/bin/python but it requires /usr/bin/python2.7
Product: Gentoo Linux Reporter: John Bowler <jbowler>
Component: Current packagesAssignee: Sci-geo Project <sci-geosciences>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Low    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description John Bowler 2018-09-21 23:16:44 UTC
/usr/bin/xgps is a Python 2.7 script, the ebuild does record compatibility as Python 2.7, however the script itself is '#!/usr/bin/python".

On current ~x86_64 default systems (and maybe x86_64) where Python 3.6 is the default implementation the script fails at:

import gps

because the gps.py module is not present in 3.6.  The module belongs to the gpsd package but is only installed /usr/lib/python2.7.

I fixed it by changing the script #! to /usr/bin/python2.7
Comment 1 Larry the Git Cow gentoo-dev 2019-09-12 03:57:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9459744e9345aec8bd0e8fdbc857c1e13838618

commit b9459744e9345aec8bd0e8fdbc857c1e13838618
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: 2019-09-08 19:27:38 +0000
Commit:     Mike Frysinger <vapier@gentoo.org>
CommitDate: 2019-09-12 03:46:12 +0000

    sci-geosciences/gpsd: fix xgps python shebangs
    
    The logic to pull the python scripts out misses the dynamic xps
    scripts leading them to not be wrapped as Python 2-specific.
    
    Closes: https://bugs.gentoo.org/666734
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

 sci-geosciences/gpsd/gpsd-3.17-r4.ebuild | 172 +++++++++++++++++++++++++++++++
 sci-geosciences/gpsd/gpsd-9999.ebuild    |   2 +
 2 files changed, 174 insertions(+)