spack/var/spack/repos/builtin/packages/py-tensorboard-plugin-wit/tboard_shellenv.patch
Andrew W Elble 0df70e217f
A collection of tensorflow fixes and updates (#19371)
* A collection of tensorflow fixes and updates

* tensorflow 2.3.1 requires the workaround for external protobuf as well
* Update tensorflow-estimator to 2.3.0
* Update tensorboard to 2.3.0
* Update tensorboard-plugin-wit to use actual releases
* Patch that potentially fixes #16073

* add myself to maintainer list
2020-10-19 13:15:49 -05:00

32 lines
1.2 KiB
Diff

diff --git a/WORKSPACE b/WORKSPACE
index 48227b5d8439..5ce04e1097eb 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -97,6 +97,8 @@ http_archive(
name = "org_tensorflow_tensorboard",
sha256 = "528afecdcc551c31baa6c7c3f702439cb6a52b711a12f9773177d0a9221f0620",
strip_prefix = "tensorboard-22b1f7413a917249245ab63a33d1f03514039294",
+ patch_args = ["-p1"],
+ patches = ["defaultshellenv.patch"],
urls = [
"https://github.com/tensorflow/tensorboard/archive/22b1f7413a917249245ab63a33d1f03514039294.tar.gz", # 2019-12-04
],
diff --git a/external/defaultshellenv.patch b/external/defaultshellenv.patch
new file mode 100644
index 000000000000..d22faf5662b6
--- /dev/null
+++ b/external/defaultshellenv.patch
@@ -0,0 +1,12 @@
+diff --git a/tensorboard/defs/web.bzl b/tensorboard/defs/web.bzl
+index dfca0bfd21b5..fb981493b25d 100644
+--- a/tensorboard/defs/web.bzl
++++ b/tensorboard/defs/web.bzl
+@@ -180,6 +180,7 @@ def _tf_web_library(ctx):
+ tools=ctx.files._tsc,
+ inputs=ts_inputs,
+ outputs=ts_outputs,
++ use_default_shell_env=True,
+ executable=ctx.executable._execrooter,
+ arguments=(
+ [er_config.path] +