-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add util to check executables/shared libs for missing shared libs #890
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created an issue to remind us about adding the macOS feature: #898
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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