git: 2f7cd9d47c11 - main - games/anki: Unbreak after 2cf2d5e3e01fdbd2

Kai Knoblich kai at FreeBSD.org
Fri Aug 20 22:36:13 UTC 2021


The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2f7cd9d47c114d81c057cc93895bd577391617d8

commit 2f7cd9d47c114d81c057cc93895bd577391617d8
Author:     Kai Knoblich <kai at FreeBSD.org>
AuthorDate: 2021-08-20 22:24:11 +0000
Commit:     Kai Knoblich <kai at FreeBSD.org>
CommitDate: 2021-08-20 22:24:11 +0000

    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
---
 games/anki/files/patch-python.bzl | 13 +++++++++++++
 1 file changed, 13 insertions(+)

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"],
+ )
+ 


More information about the dev-commits-ports-main mailing list