Skip to content
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

Env vars modified explicitly by packages are shielded from module #8688

Closed
wants to merge 1 commit into from

Conversation

alalazo
Copy link
Member

@alalazo alalazo commented Jul 11, 2018

fixes #8632

@mgsternberg Can you check if it solves your issue?

@mgsternberg
Copy link
Contributor

Intriguing and cleverly implemented, but doesn't that go too far?

Suppose a DAG member sets PATH and LD_LIBRARY_PATH for its internal use, and who knows what else. Consider thatintel-mkl sets CPATH, as does intel-parallel-studio. Could the blanket shielding not easily undermine a compiler module, without possibility of an override?

@alalazo
Copy link
Member Author

alalazo commented Jul 11, 2018

You're right: the devil is in the details. PATH can be a real issue: it's set in the build environment in python, lua, tcl and a few other relevant packages. So is, surprisingly, CPATH. LD_LIBRARY_PATH is more of a theoretical problem, as no package sets it at build time - I think due to the RPATH philosophy of Spack.

Could the blanket shielding not easily undermine a compiler module, without possibility of an override?

We need for sure to implement some heuristics if we go this route, as you correctly pointed out. On the other hand I think that also switching the order of compiler loading requires some care in that sense - in that case we need to be sure we don't unset CPATH, LD_LIBRARY_PATH etc. if they are needed for the compiler to work correctly.

@alalazo
Copy link
Member Author

alalazo commented Sep 6, 2018

Superseded by #9107

@alalazo alalazo closed this Sep 6, 2018
@alalazo alalazo deleted the fixes/shield_variables_from_module_load branch September 6, 2018 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setup_dependent_environment overwritten by module-defined external compiler
2 participants