Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Aug 2021 22:36:12 GMT
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2f7cd9d47c11 - main - games/anki: Unbreak after 2cf2d5e3e01fdbd2
Message-ID:  <202108202236.17KMaCxN062094@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kai:

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

commit 2f7cd9d47c114d81c057cc93895bd577391617d8
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2021-08-20 22:24:11 +0000
Commit:     Kai Knoblich <kai@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"],
+ )
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108202236.17KMaCxN062094>