Diff bazel-4.2.2 with a bazel-5.0.0
/usr/portage/dev-util/bazel/bazel-5.0.0.ebuild 2023-10-09 14:52:30.936368387 +0300 | ||
---|---|---|
17 | 17 |
# strip corrupts the bazel binary |
18 | 18 |
# test fails with network-sandbox: An error occurred during the fetch of repository 'io_bazel_skydoc' (bug 690794) |
19 | 19 |
RESTRICT="strip test" |
20 |
RDEPEND=">=virtual/jre-1.8:*" |
|
20 |
RDEPEND=">=virtual/jre-11:*" |
|
21 | 21 |
DEPEND=" |
22 |
|| ( |
|
23 |
virtual/jdk:1.8 |
|
24 |
virtual/jdk:11 |
|
25 |
) |
|
22 |
virtual/jdk:11 |
|
26 | 23 |
app-arch/unzip |
27 | 24 |
app-arch/zip" |
28 | 25 | |
29 | 26 |
S="${WORKDIR}" |
30 |
PATCHES=( |
|
31 |
"${FILESDIR}/${PN}-3.2.0-include-limits-for-gcc-11.patch" |
|
32 |
"${FILESDIR}/${PN}-4.2.2-absl_numeric_limits.patch" |
|
33 |
) |
|
34 | 27 | |
35 | 28 |
pkg_setup() { |
36 | 29 |
if has ccache ${FEATURES}; then |
... | ... | |
57 | 50 |
} |
58 | 51 | |
59 | 52 |
src_compile() { |
60 |
export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel_get_flags) --host_javabase=@local_jdk//:jdk" |
|
61 |
VERBOSE=yes ./compile.sh || die |
|
53 |
export JAVA_HOME=$(java-config --jre-home) # so keepwork works |
|
54 |
export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel_get_flags) |
|
55 |
--java_runtime_version=local_jdk |
|
56 |
--tool_java_runtime_version=local_jdk" |
|
57 |
VERBOSE=yes ./compile.sh || die "Failed compiling bazel" |
|
62 | 58 | |
63 | 59 |
./scripts/generate_bash_completion.sh \ |
64 | 60 |
--bazel=output/bazel \ |
65 | 61 |
--output=bazel-complete.bash \ |
66 | 62 |
--prepend=scripts/bazel-complete-header.bash \ |
67 |
--prepend=scripts/bazel-complete-template.bash |
|
63 |
--prepend=scripts/bazel-complete-template.bash || die "Failed to generate bash completions" |
|
68 | 64 |
} |
69 | 65 | |
70 | 66 |
src_test() { |