Skip to content

bazel: Bump version to 0.21.0#11120

Closed
rdbisme wants to merge 4 commits intospack:developfrom
rdbisme:bazel
Closed

bazel: Bump version to 0.21.0#11120
rdbisme wants to merge 4 commits intospack:developfrom
rdbisme:bazel

Conversation

@rdbisme
Copy link
Copy Markdown
Contributor

@rdbisme rdbisme commented Apr 5, 2019

No description provided.

Copy link
Copy Markdown
Member

@tgamblin tgamblin left a comment

Choose a reason for hiding this comment

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

@rubendibattista: is there a more standard way to pass environment variables through like this, or is this something we need to work around in Bazel? Is it worth upstreaming a feature to specify env vars that can be passed through?

@rdbisme
Copy link
Copy Markdown
Contributor Author

rdbisme commented Apr 9, 2019

Ehi @tgamblin, I have no idea. I just copied what was there before to make it build. I don't even know why that is needed, I'm not very fluent in Java (and I'm not a lover :)).

First thing: why those env vars are needed?

@rdbisme
Copy link
Copy Markdown
Contributor Author

rdbisme commented Apr 9, 2019

I guess it would be cool to upstream the env var handling in order to avoid patching the java files... But I have no idea on where to start.

@scheibelp
Copy link
Copy Markdown
Member

First thing: why those env vars are needed?

The environment variables are how Spack passes information to the compiler wrappers that it inserts into whatever build system is being used by the package (in this case Bazel). For example, some of the environment variables are used to augment a given compiler invocation to add -I and -L entries to dependencies that were installed by Spack.

@scheibelp
Copy link
Copy Markdown
Member

is there a more standard way to pass environment variables through like this

@tgamblin Bazel is something of a special case. Some users implement patches for "in-flux" files using Spack's FileFilter. I'm inclined to say that just updating the patch is conceptually simpler, although if the Spack environment variables change, it means more work updating the patches. For now this seems acceptable.

@scheibelp scheibelp dismissed tgamblin’s stale review April 16, 2019 18:53

Upstreaming these changes is a longer-term proposition

]

+ env = repository_ctx.os.environ
+ if "SPACK_DEPENDENCIES" in env:
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.

@rubendibattista what Spack version are you working with? The latest develop version does not use SPACK_DEPENDENCIES so this won't have an effect. There is a SPACK_INCLUDE_DIRS variable.

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.

4 participants