FS#61535 - [gpsd] installs python modules into /usr/local
Attached to Project:
Community Packages
Opened by Ladislav Laska (Krakonos) - Friday, 25 January 2019, 20:51 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 20 July 2019, 08:42 GMT
Opened by Ladislav Laska (Krakonos) - Friday, 25 January 2019, 20:51 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 20 July 2019, 08:42 GMT
|
Details
Description: The package community/gpsd contains a few
python modules, for example 'gpsfake'. Currently, running
gpsfake errors out with:
ModuleNotFoundError: No module named 'gps' I suspect this is because the gps python module is installed into /usr/local/lib/python3.7/site-packages (instead just /usr/lib/...). Package version: 3.18.1-1 Steps to reproduce: run /bin/gpsfake |
This task depends upon
Closed by Antonio Rojas (arojas)
Saturday, 20 July 2019, 08:42 GMT
Reason for closing: Fixed
Additional comments about closing: gpsd 3.19-1
Saturday, 20 July 2019, 08:42 GMT
Reason for closing: Fixed
Additional comments about closing: gpsd 3.19-1
This patch removes this silly hard coding of python libdir from SConstruct:
--------------------------------------------------------------------------------------------------------------
diff --git a/SConstruct b/SConstruct
index b8f3fb1..e133ece 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1034,8 +1034,6 @@ else:
# follow FHS, put in /usr/local/libXX, not /usr/libXX
# may be lib, lib32 or lib64
python_libdir = polystr(python_libdir)
- python_libdir = python_libdir.replace("/usr/lib",
- "/usr/local/lib")
py_config_text = config.GetPythonValue('config vars',
PYTHON_SYSCONFIG_IMPORT,
--------------------------------------------------------------------------------------------------------------
Alternatively, you could detect the python lib dir in the PKGBUILD and pass it to scons with "python_libdir=<path>". I have tested both methods and they install the python bits to the right location.