Сравнение bazel-3.7.2-r1 с bazel-4.2.2
/usr/portage/dev-util/bazel/bazel-4.2.2.ebuild 2023-10-09 14:52:30.936368387 +0300 | ||
---|---|---|
1 | 1 |
# Copyright 1999-2022 Gentoo Authors |
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | 5 | |
6 |
inherit bash-completion-r1 java-pkg-2 multiprocessing |
|
6 |
inherit bash-completion-r1 bazel java-pkg-2 multiprocessing |
|
7 | 7 | |
8 | 8 |
DESCRIPTION="Fast and correct automated build system" |
9 | 9 |
HOMEPAGE="https://bazel.build/" |
... | ... | |
27 | 27 |
app-arch/zip" |
28 | 28 | |
29 | 29 |
S="${WORKDIR}" |
30 | ||
31 |
bazel-get-flags() { |
|
32 |
local i fs=() |
|
33 |
for i in ${CFLAGS}; do |
|
34 |
fs+=( "--copt=${i}" "--host_copt=${i}" ) |
|
35 |
done |
|
36 |
for i in ${CXXFLAGS}; do |
|
37 |
fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
|
38 |
done |
|
39 |
for i in ${CPPFLAGS}; do |
|
40 |
fs+=( "--copt=${i}" "--host_copt=${i}" ) |
|
41 |
fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
|
42 |
done |
|
43 |
for i in ${LDFLAGS}; do |
|
44 |
fs+=( "--linkopt=${i}" "--host_linkopt=${i}" ) |
|
45 |
done |
|
46 |
echo "${fs[*]}" |
|
47 |
} |
|
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 |
) |
|
48 | 34 | |
49 | 35 |
pkg_setup() { |
50 | 36 |
if has ccache ${FEATURES}; then |
... | ... | |
68 | 54 |
# R: /proc/24939/setgroups |
69 | 55 |
# C: /usr/lib/systemd/systemd |
70 | 56 |
addpredict /proc |
71 | ||
72 |
eapply "${FILESDIR}/${PN}-3.2.0-include-limits-for-gcc-11.patch" |
|
73 |
eapply "${FILESDIR}/${PN}-3.7.2-musl-temp-failure-retry.patch" |
|
74 | 57 |
} |
75 | 58 | |
76 | 59 |
src_compile() { |
77 |
export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel-get-flags) --host_javabase=@local_jdk//:jdk" |
|
60 |
export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel_get_flags) --host_javabase=@local_jdk//:jdk" |
|
78 | 61 |
VERBOSE=yes ./compile.sh || die |
79 | 62 | |
80 | 63 |
./scripts/generate_bash_completion.sh \ |