diff options
author | Ryan Volz <rvolz@mit.edu> | 2020-07-08 15:02:44 -0400 |
---|---|---|
committer | michael-west <michael.west@ettus.com> | 2020-07-13 13:06:04 -0700 |
commit | 14d9452a15a6e65b01e19e0d5ce0c67afc060cc2 (patch) | |
tree | 6c75af5782a26ab17a8213522484288c61047357 /mpm/python | |
parent | 4f2148e7cada5a66ce5eee92ca956cb22b31b98b (diff) | |
download | uhd-14d9452a15a6e65b01e19e0d5ce0c67afc060cc2.tar.gz uhd-14d9452a15a6e65b01e19e0d5ce0c67afc060cc2.tar.bz2 uhd-14d9452a15a6e65b01e19e0d5ce0c67afc060cc2.zip |
utils: Fix prefix determination in get_lib_path()
get_lib_path() uses the libuhd location on disk to dynamically
determine the installation prefix at runtime. This fix normalizes the
libuhd path before any path operations are done to extract the library
directory and then prefix directory.
Previously, using a non-normalized library path, the returned prefix
directory would be incorrect in some cases (e.g. when loaded through
GNU Radio). In these error cases, the libuhd path would be
$PREFIX/lib/./libuhd.so
(with a no-op /. inserted) which would result in a technically correct
library directory of `$PREFIX/lib/.` but an incorrect prefix directory
of `$PREFIX/lib`.
With the normalization fix, the libuhd path is corrected to
$PREFIX/lib/libuhd.so
and the subsequent path manipulation to get the library and prefix
directories will work as intended.
Diffstat (limited to 'mpm/python')
0 files changed, 0 insertions, 0 deletions