Skip to content

get rid of $PROFILEREAD hack when running commands, not needed anymore#1264

Merged
boegel merged 1 commit intoeasybuilders:developfrom
boegel:PROFILEREAD
Apr 23, 2015
Merged

get rid of $PROFILEREAD hack when running commands, not needed anymore#1264
boegel merged 1 commit intoeasybuilders:developfrom
boegel:PROFILEREAD

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Apr 23, 2015

We used to make sure that /etc/profile.d/modules.sh was being resources on every command being executed when $PROFILEREAD was defined (i.e. on SuSE Linux systems).

The only reason why this was needed was to make sure that the module function is defined in the environment in which the command is being executed.

However, we don't rely on module at all, so there's no longer any need for this.

@pforai: feedback, since you guys are running SuSE?

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1650/
Test PASSed.

@pforai
Copy link
Copy Markdown
Contributor

pforai commented Apr 23, 2015

I think it should stay there, but be disabled by default on SLES. You might need this at some point in time. So just wrap it in a default disabled configure option would be preferable, imho.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Apr 23, 2015

The only reason we would ever need this (again) is if we need the module function defined, right?

Besides, removing it from the code doesn't mean we lose it, it's in the git history after all.

@pforai
Copy link
Copy Markdown
Contributor

pforai commented Apr 23, 2015

Yes, also that it assumes that modules.sh is the file that needs to be sourced is problematic in itself. OK, lets get rid of this then.

@wpoely86
Copy link
Copy Markdown
Member

looks fine

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Apr 23, 2015

Thanks for the feedback! Let's get rid of this cruft...

boegel added a commit that referenced this pull request Apr 23, 2015
get rid of $PROFILEREAD hack when running commands, not needed anymore
@boegel boegel merged commit 86b9316 into easybuilders:develop Apr 23, 2015
@boegel boegel deleted the PROFILEREAD branch April 23, 2015 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants