/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
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(+)