summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Knoblich <kai@FreeBSD.org>2021-08-21 00:24:11 +0200
committerKai Knoblich <kai@FreeBSD.org>2021-08-21 00:24:11 +0200
commit2f7cd9d47c114d81c057cc93895bd577391617d8 (patch)
treea1d7650cba1d2bb501ded34339f3aec1b4b3c6c4
parentdevel/R-cran-R6: Update to 2.5.1 (diff)
games/anki: Unbreak after 2cf2d5e3e01fdbd2
The Bazel 4.2.0 release contains a change that handles the execution of stub Python scripts differently. [1] Remedy the issue for now by setting "stub_shebang", which was introduced with Bazel 4.2.0, accordingly instead of using its default value. [1] https://blog.bazel.build/2021/08/18/bazel-4.2.html#python
-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"],
+ )
+