gentoo-ebuilds/app-i18n/mozc/files/mozc-2.31.5851.102-bazel_patch-fix_shebang.patch
Nicolas PARLANT ff6b08e448
app-i18n/mozc: add 2.31.5851.102, bazel build system
use bazel build system instead of gyp, deprecated.

bazel with prebuilt binary from upstream (amd64, arm64)

all deps except ibus/glib/qt/fcitx5 are fetched by bazel from bazel_dist,
unpacked/prepared in bazel_cache and then built statically.

to push a new release, update versions according to MODULE.bazel or failures
of the fetch's phase of bazel.

patches :
fix path for mozc_tool to preserve compatibility with versions in tree
fix shebang, one patch for rules_python, oneother for MODULE.bazel to apply the
first one. This is the only way to patch deps unpacked/prepared in bazel_cache.

Closes: https://bugs.gentoo.org/943518
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43597
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-09 22:47:12 +01:00

13 lines
397 B
Diff

patch rules_python package to set shebang
this patch is applied by bazel, not portage
--- python/private/py_runtime_info.bzl
+++ python/private/py_runtime_info.bzl
@@ -15,7 +15,7 @@
load(":util.bzl", "define_bazel_6_provider")
-DEFAULT_STUB_SHEBANG = "#!/usr/bin/env python3"
+DEFAULT_STUB_SHEBANG = "#!@PYTHON@"
DEFAULT_BOOTSTRAP_TEMPLATE = Label("//python/private:bootstrap_template")