Add util to check executables/shared libs for missing shared libs#890
Add util to check executables/shared libs for missing shared libs#890climbfuji merged 8 commits intoJCSDA:developfrom
Conversation
|
@climbfuji if this looks useful, can you populate the Darwin block with the appropriate command(s) & output pattern (I think it'll involve |
|
Thanks @AlexanderRichert-NOAA I can do the macOS part, but realistically not before the 1.6.0 release. |
climbfuji
left a comment
There was a problem hiding this comment.
I think we should add documentation for this (we already have a utilities section in readthedocs)?
|
@climbfuji if you're okay with merging this as-is, it'd be nice to have this at least in the ubuntu CI before the 1.6.0 release, then we can circle back later and add macOS+CI? |
| bin_list = glob.glob(os.path.join(searchpath, "*/*/*/bin/*")) | ||
| dlib_list = glob.glob(os.path.join(searchpath, "*/*/*/lib*/*.{so,dylib}")) | ||
|
|
||
| master_list = bin_list + dlib_list |
There was a problem hiding this comment.
DEI! DEI! We'll rename this to something less clear but politically correct when we add the macOS feature :-)
Summary
Inspired by the issue we ran into with met having a missing python dependency (rpath wasn't set), this PR adds a utility to check installations for missing shared library dependencies of libraries and executables.
Testing
Tested on Orion and in CI.
Applications affected
none
Systems affected
none
Dependencies
#884 / JCSDA/spack#371 (wait for met/python dep fix)
Issue(s) addressed
none
Checklist