Skip to content

fix compatibility of ROOT easyblock with search-path-cpp-headers option#3973

Open
lexming wants to merge 1 commit intoeasybuilders:developfrom
lexming:root-cpath
Open

fix compatibility of ROOT easyblock with search-path-cpp-headers option#3973
lexming wants to merge 1 commit intoeasybuilders:developfrom
lexming:root-cpath

Conversation

@lexming
Copy link
Copy Markdown
Contributor

@lexming lexming commented Oct 24, 2025

for header_var in header_vars:
header_paths = os.getenv(header_var, "")
new_header_paths = [p for p in header_paths.split(os.pathsep) if p != llvm_inc]
if new_header_paths:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this would ever evaluate to False?
If header_paths is an empty string, then new_header_paths will be [''], which is truthy

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is one case, if all paths in header_paths are already in llvm_inc, then new_header_paths = []

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right than an empty string in header_paths will pass through though, that needs fixing

@boegel boegel changed the title fix compatibility of ROOT easyblock with search-path-cpp-headers option fix compatibility of ROOT easyblock with search-path-cpp-headers option Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants