summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/anki/files/patch-python.bzl13
1 files changed, 13 insertions, 0 deletions
diff --git a/games/anki/files/patch-python.bzl b/games/anki/files/patch-python.bzl
new file mode 100644
index 000000000000..7de2bafbafdd
--- /dev/null
+++ b/games/anki/files/patch-python.bzl
@@ -0,0 +1,13 @@
+Since Bazel 4.2.0 bootstrapping Python stub scripts are prepended with
+a "Shebang" expression.
+
+--- python.bzl.orig 2021-08-20 19:05:37 UTC
++++ python.bzl
+@@ -27,6 +27,7 @@ py_runtime(
+ name = "python_runtime",
+ interpreter_path = "{path}",
+ python_version = "PY3",
++ stub_shebang = "#!{path}",
+ visibility = ["//visibility:public"],
+ )
+