gpsd-dev
[Top][All Lists]
Advanced

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

Running regression tests on Ubuntu 14.04


From: Gregory Fong
Subject: Running regression tests on Ubuntu 14.04
Date: Wed, 29 Apr 2020 17:41:02 -0700

Hello,

I noticed that running the regression tests on Ubuntu 14.04 no longer
seems to work from top of current master branch.  The following fixes
the issue for me, but it doesn't feel like the "correct" solution:

--------8<--------
$ git diff
diff --git a/gps/packet.py.in b/gps/packet.py.in
index fb4360b3f..77cd6ae24 100644
--- a/gps/packet.py.in
+++ b/gps/packet.py.in
@@ -44,7 +44,7 @@ _cwd = os.getcwd()
 if 'gpsd' in _cwd.split('/'):
     _path = _cwd + '/'
 else:
-    _path = ''
+    _path = './'
 #    _path = ['@libdir@']

 try:
--------8<--------

I haven't looked deeply into it, but suspect what is happening is that
the way it's written currently is dependent on library search behavior
of newer Python versions, and that ctypes in Python 2.7.6 doesn't
include the current directory in the load path.

To test this hypothesis, I've tried a couple of things.

This works:

    LD_LIBRARY_PATH=. ./regress-driver test/daemon/passthrough.log

This does not:

    scons check

It fails with:

    Failed to load the library: libgpsdpacket.so.27.0.0
    scons: *** [python-versions] Error 1
    scons: building terminated because of errors.

Best regards,
Gregory



reply via email to

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