take into account alternate sysroot for /bin/bash used by run_cmd#4646
Merged
boegel merged 5 commits intoeasybuilders:developfrom Sep 18, 2024
Merged
take into account alternate sysroot for /bin/bash used by run_cmd#4646boegel merged 5 commits intoeasybuilders:developfrom
/bin/bash used by run_cmd#4646boegel merged 5 commits intoeasybuilders:developfrom
Conversation
…se sysroot/bin/bash instead of /bin/bash if sysroot is set
…led. Any command run before that with run_cmd should use the regular /bin/bash
Contributor
Author
|
Ok, this issue actually does not exist for EB 5.0: the whole at least for EESSI, the result is that the bash from the prefix is used. That means our issue no longer exists. I'm closing this PR, as it is not relevant. |
Member
|
@casparvl As discussed, I think it's worth considering this to be merged into I'll take a thorough look into this right now... |
…cated test for run_cmd using with_sysroot=True
/bin/bash used by run_cmd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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_cmdruns commands in a subshell. The shell used is defined in theexec_cmd. However, in context where the use of asysrootis configured, one would want to use<sysroot>/bin/bashinstead. This PR implements that change. Note that sincerun_cmdis also called a few times beforeset_up_configurationis 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 :)