Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove DIST_SUBDIR, which once made sense when Anki was still a pure Python port. Anki now needs a lot of Rust crates that are also used by other ports. Therefore, these crates should be placed in the usual place and not in an additional subdirectory to save bandwidth and disk space. [1] Reported by: se [1] MFH: 2021Q3
- Loading branch information
Showing
22 changed files
with
1,185 additions
and
898 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
exports_files(["bin/esbuild"]) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Handles the further processing of "strings.json" within bazel | ||
|
||
load("@bazel_skylib//rules:copy_file.bzl", "copy_file") | ||
|
||
copy_file( | ||
name = "strings_json", | ||
src = "//local_repos/rust_output/strings_json", | ||
out = "strings.json", | ||
visibility = ["//visibility:public"], | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Expose "strings.json" to bazel | ||
|
||
filegroup( | ||
name = "strings_json", | ||
srcs = ["strings.json"], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- WORKSPACE.orig 2021-08-03 06:38:55 UTC | ||
+++ WORKSPACE | ||
@@ -13,6 +13,3 @@ load(":defs.bzl", "setup_deps") | ||
|
||
setup_deps() | ||
|
||
-load(":late_deps.bzl", "setup_late_deps") | ||
- | ||
-setup_late_deps() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
games/anki/files/patch-local__repos_esbuild__toolchain_esbuild__repo.bzl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Define a local repository to use "devel/esbuild" from the Ports tree. | ||
|
||
--- local_repos/esbuild_toolchain/esbuild_repo.bzl.orig 2021-08-03 12:18:17 UTC | ||
+++ local_repos/esbuild_toolchain/esbuild_repo.bzl | ||
@@ -51,4 +51,9 @@ def esbuild_dependencies(): | ||
sha256 = "60af935fc3c29d6defd6e3822d9a00220dc631f4aba5cf5af3ce12d2d0d268e6", | ||
) | ||
|
||
+ native.local_repository( | ||
+ name = "esbuild_freebsd", | ||
+ path = "%%_MY_LOCALREPO%%/local_esbuild", | ||
+ ) | ||
+ | ||
register_default_toolchains() |
12 changes: 12 additions & 0 deletions
12
games/anki/files/patch-local__repos_esbuild__toolchain_toolchain.bzl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Set a custom repository for FreeBSD to use "devel/esbuild" from the Ports tree. | ||
|
||
--- local_repos/esbuild_toolchain/toolchain.bzl.orig 2021-08-03 10:59:28 UTC | ||
+++ local_repos/esbuild_toolchain/toolchain.bzl | ||
@@ -14,6 +14,7 @@ TOOLCHAIN = "@esbuild_toolchain//:toolchain_type" | ||
|
||
_default_toolchains = [ | ||
["@esbuild_darwin//:bin/esbuild", "macos"], | ||
+ ["@esbuild_freebsd//:bin/esbuild", "freebsd"], | ||
["@esbuild_linux//:bin/esbuild", "linux"], | ||
["@esbuild_linux_arm64//:bin/esbuild", "linux_arm64"], | ||
["@esbuild_windows//:esbuild.exe", "windows"], |
12 changes: 6 additions & 6 deletions
12
games/anki/files/patch-local__repos_rules__nodejs_internal_node_node__patches.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
Avoid hardcoded paths and Use "shells/bash" from the Ports tree. | ||
|
||
--- local_repos/rules_nodejs/internal/node/node_patches.js.orig 2021-02-20 14:13:32 UTC | ||
--- local_repos/rules_nodejs/internal/node/node_patches.js.orig 2021-08-02 17:17:08 UTC | ||
+++ local_repos/rules_nodejs/internal/node/node_patches.js | ||
@@ -579,7 +579,7 @@ set Path=${nodeDir};%Path% | ||
@@ -560,7 +560,7 @@ set Path=${nodeDir};%Path% | ||
else { | ||
const nodeEntry = path.join(nodeDir, 'node'); | ||
if (!fs$1.existsSync(nodeEntry)) { | ||
- fs$1.writeFileSync(nodeEntry, `#!/bin/bash | ||
+ fs$1.writeFileSync(nodeEntry, `#!%%LOCALBASE%%/bin/bash | ||
const nodeEntry = path__default['default'].join(nodeDir, 'node'); | ||
if (!fs__default['default'].existsSync(nodeEntry)) { | ||
- fs__default['default'].writeFileSync(nodeEntry, `#!/bin/bash | ||
+ fs__default['default'].writeFileSync(nodeEntry, `#!%%LOCALBASE%%/bin/bash | ||
export NP_SUBPROCESS_NODE_DIR="${nodeDir}" | ||
export PATH="${nodeDir}":\$PATH | ||
if [[ ! "\${@}" =~ "${file}" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
Avoid loading of "requirements.bzl" because it requires "pip_import" which | ||
is already disabled in "defs.bzl". | ||
|
||
--- pylib/anki/_backend/BUILD.bazel.orig 2021-05-04 05:04:50 UTC | ||
--- pylib/anki/_backend/BUILD.bazel.orig 2021-07-30 08:30:37 UTC | ||
+++ pylib/anki/_backend/BUILD.bazel | ||
@@ -1,5 +1,4 @@ | ||
load("@rules_python//python:defs.bzl", "py_binary") | ||
-load("@py_deps//:requirements.bzl", "requirement") | ||
load("//pylib:protobuf.bzl", "py_proto_library_typed") | ||
load("@bazel_skylib//rules:copy_file.bzl", "copy_file") | ||
load("@bazel_skylib//lib:selects.bzl", "selects") | ||
@@ -27,9 +26,6 @@ py_binary( | ||
|
||
@@ -9,9 +8,6 @@ py_binary( | ||
"genbackend.py", | ||
], | ||
deps = [ | ||
- requirement("black"), | ||
- requirement("stringcase"), | ||
- requirement("protobuf"), | ||
"//pylib/anki:proto", | ||
], | ||
) | ||
@@ -29,8 +25,6 @@ py_binary( | ||
"genfluent.py", | ||
], | ||
deps = [ | ||
- requirement("black"), | ||
- requirement("stringcase"), | ||
], | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.