take into account alternate sysroot for /bin/bash
used by run_cmd
#4646
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
EasyBuild's
run_cmd
runs commands in a subshell. The shell used is defined in theexec_cmd
. However, in context where the use of asysroot
is configured, one would want to use<sysroot>/bin/bash
instead. This PR implements that change. Note that sincerun_cmd
is also called a few times beforeset_up_configuration
is called, we need to be able to disable the check for thebuild_option('sysroot')
for those instances (similar to how this is already don forbuild_option('hooks')
).Solves this issue.
Edit: hmmm, I made this PR, and then realized, this is probably one of the components that is very different in EB 5.0. And it seems to be indeed...
Someone with more EB 5.0 knowledge needs to give me a pointer of how to fix this for EB 5.0 :)