-
Notifications
You must be signed in to change notification settings - Fork 218
Update prepare_rpath_wrappers to enable wrapper shipping with a module (WIP) #4003
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
Open
stderr-enst
wants to merge
4
commits into
easybuilders:develop
Choose a base branch
from
stderr-enst:prepare_rpath_wrappers
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
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.
This section is a bit critical.
The original
prepare_rpath_wrappersis usingwhichto lookupldand compiler commands to wrap with the newly created rpath wrapper.But we want to wrap the compiler command of the e.g. GCCcore module that currently is build! So we cannot look it up in
PATHand instead have to pass a newcmdDirto the function and decide to set it manually.This might be a first good reason to split this function into two.
Second, in EESSI we ship
ldin the software layer on CVMFS. We don't want to pick up anyldcommands that exist in the current/tmplocations. They are still around during module building, so we have to put a dirty hack here.I don't really like putting an EESSI special case into EasyBuild code.
Do we have a general approach to this kind of problem?
Maybe this calls for another manual path, from where to pick up
ld?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'm confused which usage of
prepare_rpath_wrappersyou're trying to target here with the exception forld: the usage by EasyBuild when installing with--rpath? Or is it to prevent theldwrappers from being installed for EESSI? In the latter case, I'd say we should indeed make theldwrapper installation part ofbinutils(as was suggested in easybuilders/easybuild-easyblocks#2638). That means--filter-deps binutilsis enough to (also) make sure the RPATH wrappers aren't installed (and I guess we filterbinutilsalready in EESSI? Can't remember exactly...).If it's more about EasyBuild when installing with
--rpath(i.e. you're afraid that this will pick up theldwrappers from the tempdir that EasyBuild creates), I'd have to think how to elegantly solve this. I agree with the statement that we don't want special case things for EESSI in the EasyBuild source code, it should be something generic.I'm generally a bit confused what we do currently in EESSI: do we set
RPATHwith our ownldwrapper? Or do we rely on EasyBuild to set RPATH? I thought it was the latter, but then you'd still want it to generate wrappers when installing with--rpath, right?