-
Notifications
You must be signed in to change notification settings - Fork 203
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 support for specifying multiple alternatives for sanity check paths #753
add support for specifying multiple alternatives for sanity check paths #753
Conversation
…hs files/dirs entries
@berndmohr, @stdweird, @fgeorgatos: comments? |
visual review OK from this side did you consider collapsing the two code blocks in something common? (there may be arguments against it though) |
…hance toy easyblock to make default sanity check paths work
…stop hardcoding 'files' and 'dirs' here and there
@fgeorgatos: I pondered it briefly, but it seemed too much trouble. But, after looking at it again, I agree the two blocks are too similar to ignore it. |
add support for specifying multiple alternatives for sanity check paths
Well, this fix allows to write EB files with sanity checks for the various distros, BUT it requires extra care by the EB writers and you have to go through ALL EB files and make the fixes accordingly. I think the real solution is to find out what is causing this (is it really libtool idotic stuff that causes it?) and then come up with a solution, because only then you really know what to fix. The more flexible sanity checks might be still useful, e.g. to specify like things "('bin/x86_64/tool', 'bin/ia32/tool')" Note that the lib/lib64 issue is not really fixed by providing more flexible sanity checks:
|
@berndmohr: You're right, this is only a workaround, not a genuine fix of the problem. But for now, it'll do. One way to properly fix this after figuring out what causes it, or how to figure out what will be used, is the extend the possible keys in The |
@berndmohr: Your item 2) of above can now easily be fixed in easyblocks (not in easyconfigs (yet?), it's a lot more difficult to make that possible in a clean way), see #754. |
This adds support for specifying sanity check paths like:
If
libfoo.a
is found in eitherlib
orlib64
, the sanity check would be considered OK.Having this included would help resolve the problem with GCC lib dirs reported in easybuilders/easybuild-easyblocks#283, and is also required for software packages like
OTF
(see easybuilders/easybuild-easyconfigs#505), where the lib directories are different depending on the OS (e.g.,lib
on Scientific Linux,lib64
on OpenSuSE, etc.)We already provide flexibility like this in
make_module_req_guess
for setting$LD_LIBRARY_PATH
, so we should also provide it forsanity_check_paths
.