1 |
commit: 516974baff9c20cb8acafc956f9bcb8b1ccc3cdb |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 22 15:08:17 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 22 15:08:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=516974ba |
7 |
|
8 |
dev-util/bazel: drop versions |
9 |
|
10 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
11 |
|
12 |
dev-util/bazel/Manifest | 8 -- |
13 |
dev-util/bazel/bazel-0.22.0.ebuild | 125 --------------------- |
14 |
dev-util/bazel/bazel-0.24.1.ebuild | 125 --------------------- |
15 |
dev-util/bazel/bazel-0.27.2.ebuild | 113 ------------------- |
16 |
dev-util/bazel/bazel-0.29.1.ebuild | 113 ------------------- |
17 |
dev-util/bazel/bazel-1.0.1.ebuild | 113 ------------------- |
18 |
dev-util/bazel/bazel-1.2.1.ebuild | 113 ------------------- |
19 |
dev-util/bazel/bazel-2.0.1.ebuild | 112 ------------------ |
20 |
dev-util/bazel/bazel-3.2.0.ebuild | 116 ------------------- |
21 |
.../bazel-0.22.0-include-limits-for-gcc-11.patch | 125 --------------------- |
22 |
.../bazel-0.22.0-rename-gettid-functions.patch | 44 -------- |
23 |
.../bazel-0.24.1-rename-gettid-functions.patch | 66 ----------- |
24 |
dev-util/bazel/metadata.xml | 1 - |
25 |
13 files changed, 1174 deletions(-) |
26 |
|
27 |
diff --git a/dev-util/bazel/Manifest b/dev-util/bazel/Manifest |
28 |
index b43555c562d3..a8c02affdac3 100644 |
29 |
--- a/dev-util/bazel/Manifest |
30 |
+++ b/dev-util/bazel/Manifest |
31 |
@@ -1,9 +1 @@ |
32 |
-DIST bazel-0.22.0-dist.zip 88633015 BLAKE2B 7cb7ef53c9acb4089b92d82679ad82739fd3c1fd3af7147e13b1474353fdf4cba1f58deed6d1880ec85fe5a07940b8df14af2701361d86e638b5c0e6924300c1 SHA512 b93cd21f0f164c118b90efba761a9492eb9894e24f13ff468defd12b86c7e67f16e51060ac2fc4c2f8dbf51b1c833d41b255fdd8107988e5babf093cfc5b3254 |
33 |
-DIST bazel-0.24.1-dist.zip 174691842 BLAKE2B 56d42421ac6f5513f019f3b71ca0c5e7b499c199dd8d9f22ca4fdca832527a1974afffccd6bff6b1d29dc3156ee28ba7f91a9a37f2f8524da5c5f30645be97aa SHA512 a78c871eb517ec53a0d1d9592887288fa54e5e9f44b0b7dba44792a74a1ba0c98e38ff2f6094ab6e8b3add3ec4a0188de3b2489d94d419373e210d16db641774 |
34 |
-DIST bazel-0.27.2-dist.zip 247948037 BLAKE2B ee3dafbb104f434080ad803cb40585e36a8c816eddac3d1a680752dd4ac65d588f1d5f4bb759dad0f59e9f6d7aad0ea5b54cd050d75a5434ee6ef079d8127641 SHA512 5fd7c2af2123424d3e5e4c9216de10d12ce604798f4831800c8d68cfd9bcf1133f4db9a947f0ee16db1a1513be17340ab8e36fba994a016d98c74ad5e026b4ab |
35 |
-DIST bazel-0.29.1-dist.zip 265744999 BLAKE2B 8495ab96947b02ec827cc2b5f542454e0d631eb077514c740d8be813495644f0be1020e706e2dbd321fa6f39af3060c4a7b2e68499201eaffc197704c1ecf760 SHA512 4da49e3f1ba681003afc2536d55954ed5a2c29de4a68e5a07f2627f3573d97bd6e244bc8a4f43c8951ecddd221041d87270ca9b7dd59ab16676306c9716f003d |
36 |
-DIST bazel-1.0.1-dist.zip 267211562 BLAKE2B ade5fcc2a799df4da24ce23a3f2f23d3f38aeec832ef2504a1a8ca7f23acafe3d5b5d94302f101ddadb366d7144624559c96c1c343fa465a976ca2c9b258c083 SHA512 94d81697d2f181659c2d386de23dae2655c4131633f8ce6d10c60373222756e8c0330ed3fe5ed20f81a8648bcb3acfc8b4762e96eb7950b58a4a5c94c715159f |
37 |
-DIST bazel-1.2.1-dist.zip 267514406 BLAKE2B f9d316ac096f503a2c7fe101b103b88e7f0247f767a8dc28eb8c9d2cd0b6df6fa785f3b187e1a3963e2f9f0ae742a3330e5104e7a8aea75cb9b9e100366a5aca SHA512 bc0e6526bfbb8725a4f2ae95fc88b22229301b64559325fca3bcf5a9bc642cec2b2284eb9a6ce0699f1f910378b89ee23657dbea7928a92cc1900f1f2f405ff3 |
38 |
-DIST bazel-2.0.1-dist.zip 259627931 BLAKE2B d535554aa989027e5ea16ccdaf3c966bd8d5c75282b0e13082efd0af9d6fba12b212a088dc2b83a57dfb873b479a8eae8864c36b2829ca81eaf6b7890c3f6aba SHA512 fec0d73af3a1d341cf1f6b14da98accdd3f1731ea23a41c921eed06040f2647b0e06a8ec58a51fb755fa932cdbba9e53216153f859be3944cf7b1d3a44629185 |
39 |
-DIST bazel-3.2.0-dist.zip 269368916 BLAKE2B 1eb54c42e22432d2c836a87179094563b797744de423468bf9bce1b7b4dbcdce20e033ed03c4cd7ea5026c9e0d971e16202aff09f9c45d91c9fc53af6f0f8802 SHA512 fd8191188ecb49087b2b474bc383b2bb5d131460952be64b8930dc7e573fd14f99f231c4270b88fb4c9537fb94a04588fb580891519d20c7b90d705238f17f81 |
40 |
DIST bazel-3.7.2-dist.zip 313677756 BLAKE2B cd6363762c68d25739a6bf6c13f10e191302a10b6fb7d97455effbc678d4f0b644c76115cad478aad7c09f703d9e594f4bdb8669ed6ab97d6a559a27723c510c SHA512 e8746ef5ec22feb95e9dbbddb3fb56cf8f49c80f326fc2a4e0ce2619607826fac22f46bfb995daee55bf9ffabb9d646b8454be2bce7b479da5cf2a7e5b3be62b |
41 |
|
42 |
diff --git a/dev-util/bazel/bazel-0.22.0.ebuild b/dev-util/bazel/bazel-0.22.0.ebuild |
43 |
deleted file mode 100644 |
44 |
index c412ab10f061..000000000000 |
45 |
--- a/dev-util/bazel/bazel-0.22.0.ebuild |
46 |
+++ /dev/null |
47 |
@@ -1,125 +0,0 @@ |
48 |
-# Copyright 1999-2021 Gentoo Authors |
49 |
-# Distributed under the terms of the GNU General Public License v2 |
50 |
- |
51 |
-EAPI=6 |
52 |
- |
53 |
-inherit bash-completion-r1 java-pkg-2 multiprocessing |
54 |
- |
55 |
-DESCRIPTION="Fast and correct automated build system" |
56 |
-HOMEPAGE="https://bazel.build/" |
57 |
- |
58 |
-SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip" |
59 |
- |
60 |
-LICENSE="Apache-2.0" |
61 |
-SLOT="0" |
62 |
-KEYWORDS="amd64" |
63 |
-IUSE="examples tools" |
64 |
-# strip corrupts the bazel binary |
65 |
-RESTRICT="strip" |
66 |
-RDEPEND="virtual/jdk:1.8" |
67 |
-DEPEND="${RDEPEND} |
68 |
- app-arch/unzip |
69 |
- app-arch/zip" |
70 |
- |
71 |
-S="${WORKDIR}" |
72 |
-QA_FLAGS_IGNORED="usr/bin/bazel" |
73 |
- |
74 |
-bazel-get-flags() { |
75 |
- local i fs=() |
76 |
- for i in ${CFLAGS}; do |
77 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
78 |
- done |
79 |
- for i in ${CXXFLAGS}; do |
80 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
81 |
- done |
82 |
- for i in ${CPPFLAGS}; do |
83 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
84 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
85 |
- done |
86 |
- for i in ${LDFLAGS}; do |
87 |
- fs+=( "--linkopt=${i}" "--host_linkopt=${i}" ) |
88 |
- done |
89 |
- echo "${fs[*]}" |
90 |
-} |
91 |
- |
92 |
-pkg_setup() { |
93 |
- if has ccache ${FEATURES}; then |
94 |
- ewarn "${PN} usually fails to compile with ccache, you have been warned" |
95 |
- fi |
96 |
- java-pkg-2_pkg_setup |
97 |
-} |
98 |
- |
99 |
-src_unpack() { |
100 |
- # Only unpack the main distfile |
101 |
- unpack ${P}-dist.zip |
102 |
-} |
103 |
- |
104 |
-src_prepare() { |
105 |
- default |
106 |
- |
107 |
- # F: fopen_wr |
108 |
- # S: deny |
109 |
- # P: /proc/self/setgroups |
110 |
- # A: /proc/self/setgroups |
111 |
- # R: /proc/24939/setgroups |
112 |
- # C: /usr/lib/systemd/systemd |
113 |
- addpredict /proc |
114 |
- |
115 |
- # Use standalone strategy to deactivate the bazel sandbox, since it |
116 |
- # conflicts with FEATURES=sandbox. |
117 |
- cat > "${T}/bazelrc" <<-EOF || die |
118 |
- build --verbose_failures |
119 |
- build --spawn_strategy=standalone --genrule_strategy=standalone |
120 |
- |
121 |
- build --distdir="${S}/derived/distdir/" |
122 |
- build --jobs=$(makeopts_jobs) $(bazel-get-flags) |
123 |
- |
124 |
- test --verbose_failures --verbose_test_summary |
125 |
- test --spawn_strategy=standalone --genrule_strategy=standalone |
126 |
- EOF |
127 |
- |
128 |
- eapply "${FILESDIR}/${P}-rename-gettid-functions.patch" |
129 |
- eapply "${FILESDIR}/${P}-include-limits-for-gcc-11.patch" |
130 |
-} |
131 |
- |
132 |
-src_compile() { |
133 |
- export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) --host_javabase=@local_jdk//:jdk" |
134 |
- VERBOSE=yes ./compile.sh || die |
135 |
- |
136 |
- ./scripts/generate_bash_completion.sh \ |
137 |
- --bazel=output/bazel \ |
138 |
- --output=bazel-complete.bash \ |
139 |
- --prepend=scripts/bazel-complete-header.bash \ |
140 |
- --prepend=scripts/bazel-complete-template.bash |
141 |
-} |
142 |
- |
143 |
-src_test() { |
144 |
- output/bazel test \ |
145 |
- --verbose_failures \ |
146 |
- --spawn_strategy=standalone \ |
147 |
- --genrule_strategy=standalone \ |
148 |
- --verbose_test_summary \ |
149 |
- examples/cpp:hello-success_test || die |
150 |
- output/bazel shutdown |
151 |
-} |
152 |
- |
153 |
-src_install() { |
154 |
- dobin output/bazel |
155 |
- newbashcomp bazel-complete.bash ${PN} |
156 |
- bashcomp_alias ${PN} ibazel |
157 |
- insinto /usr/share/zsh/site-functions |
158 |
- doins scripts/zsh_completion/_bazel |
159 |
- |
160 |
- if use examples; then |
161 |
- docinto examples |
162 |
- dodoc -r examples/* |
163 |
- docompress -x /usr/share/doc/${PF}/examples |
164 |
- fi |
165 |
- # could really build tools but I don't know which ones |
166 |
- # are actually used |
167 |
- if use tools; then |
168 |
- docinto tools |
169 |
- dodoc -r tools/* |
170 |
- docompress -x /usr/share/doc/${PF}/tools |
171 |
- fi |
172 |
-} |
173 |
|
174 |
diff --git a/dev-util/bazel/bazel-0.24.1.ebuild b/dev-util/bazel/bazel-0.24.1.ebuild |
175 |
deleted file mode 100644 |
176 |
index b81e83d2dc79..000000000000 |
177 |
--- a/dev-util/bazel/bazel-0.24.1.ebuild |
178 |
+++ /dev/null |
179 |
@@ -1,125 +0,0 @@ |
180 |
-# Copyright 1999-2021 Gentoo Authors |
181 |
-# Distributed under the terms of the GNU General Public License v2 |
182 |
- |
183 |
-EAPI=6 |
184 |
- |
185 |
-inherit bash-completion-r1 java-pkg-2 multiprocessing |
186 |
- |
187 |
-DESCRIPTION="Fast and correct automated build system" |
188 |
-HOMEPAGE="https://bazel.build/" |
189 |
- |
190 |
-SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip" |
191 |
- |
192 |
-LICENSE="Apache-2.0" |
193 |
-SLOT="0" |
194 |
-KEYWORDS="amd64" |
195 |
-IUSE="examples tools" |
196 |
-# strip corrupts the bazel binary |
197 |
-RESTRICT="strip" |
198 |
-RDEPEND="virtual/jdk:1.8" |
199 |
-DEPEND="${RDEPEND} |
200 |
- app-arch/unzip |
201 |
- app-arch/zip" |
202 |
- |
203 |
-S="${WORKDIR}" |
204 |
-QA_FLAGS_IGNORED="usr/bin/bazel" |
205 |
- |
206 |
-bazel-get-flags() { |
207 |
- local i fs=() |
208 |
- for i in ${CFLAGS}; do |
209 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
210 |
- done |
211 |
- for i in ${CXXFLAGS}; do |
212 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
213 |
- done |
214 |
- for i in ${CPPFLAGS}; do |
215 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
216 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
217 |
- done |
218 |
- for i in ${LDFLAGS}; do |
219 |
- fs+=( "--linkopt=${i}" "--host_linkopt=${i}" ) |
220 |
- done |
221 |
- echo "${fs[*]}" |
222 |
-} |
223 |
- |
224 |
-pkg_setup() { |
225 |
- if has ccache ${FEATURES}; then |
226 |
- ewarn "${PN} usually fails to compile with ccache, you have been warned" |
227 |
- fi |
228 |
- java-pkg-2_pkg_setup |
229 |
-} |
230 |
- |
231 |
-src_unpack() { |
232 |
- # Only unpack the main distfile |
233 |
- unpack ${P}-dist.zip |
234 |
-} |
235 |
- |
236 |
-src_prepare() { |
237 |
- default |
238 |
- |
239 |
- # F: fopen_wr |
240 |
- # S: deny |
241 |
- # P: /proc/self/setgroups |
242 |
- # A: /proc/self/setgroups |
243 |
- # R: /proc/24939/setgroups |
244 |
- # C: /usr/lib/systemd/systemd |
245 |
- addpredict /proc |
246 |
- |
247 |
- # Use standalone strategy to deactivate the bazel sandbox, since it |
248 |
- # conflicts with FEATURES=sandbox. |
249 |
- cat > "${T}/bazelrc" <<-EOF || die |
250 |
- build --verbose_failures |
251 |
- build --spawn_strategy=standalone --genrule_strategy=standalone |
252 |
- |
253 |
- build --distdir="${S}/derived/distdir/" |
254 |
- build --jobs=$(makeopts_jobs) $(bazel-get-flags) |
255 |
- |
256 |
- test --verbose_failures --verbose_test_summary |
257 |
- test --spawn_strategy=standalone --genrule_strategy=standalone |
258 |
- EOF |
259 |
- |
260 |
- eapply "${FILESDIR}/${P}-rename-gettid-functions.patch" |
261 |
- eapply "${FILESDIR}/${PN}-0.22.0-include-limits-for-gcc-11.patch" |
262 |
-} |
263 |
- |
264 |
-src_compile() { |
265 |
- export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) --host_javabase=@local_jdk//:jdk" |
266 |
- VERBOSE=yes ./compile.sh || die |
267 |
- |
268 |
- ./scripts/generate_bash_completion.sh \ |
269 |
- --bazel=output/bazel \ |
270 |
- --output=bazel-complete.bash \ |
271 |
- --prepend=scripts/bazel-complete-header.bash \ |
272 |
- --prepend=scripts/bazel-complete-template.bash |
273 |
-} |
274 |
- |
275 |
-src_test() { |
276 |
- output/bazel test \ |
277 |
- --verbose_failures \ |
278 |
- --spawn_strategy=standalone \ |
279 |
- --genrule_strategy=standalone \ |
280 |
- --verbose_test_summary \ |
281 |
- examples/cpp:hello-success_test || die |
282 |
- output/bazel shutdown |
283 |
-} |
284 |
- |
285 |
-src_install() { |
286 |
- dobin output/bazel |
287 |
- newbashcomp bazel-complete.bash ${PN} |
288 |
- bashcomp_alias ${PN} ibazel |
289 |
- insinto /usr/share/zsh/site-functions |
290 |
- doins scripts/zsh_completion/_bazel |
291 |
- |
292 |
- if use examples; then |
293 |
- docinto examples |
294 |
- dodoc -r examples/* |
295 |
- docompress -x /usr/share/doc/${PF}/examples |
296 |
- fi |
297 |
- # could really build tools but I don't know which ones |
298 |
- # are actually used |
299 |
- if use tools; then |
300 |
- docinto tools |
301 |
- dodoc -r tools/* |
302 |
- docompress -x /usr/share/doc/${PF}/tools |
303 |
- fi |
304 |
-} |
305 |
|
306 |
diff --git a/dev-util/bazel/bazel-0.27.2.ebuild b/dev-util/bazel/bazel-0.27.2.ebuild |
307 |
deleted file mode 100644 |
308 |
index 95740e9606ea..000000000000 |
309 |
--- a/dev-util/bazel/bazel-0.27.2.ebuild |
310 |
+++ /dev/null |
311 |
@@ -1,113 +0,0 @@ |
312 |
-# Copyright 1999-2021 Gentoo Authors |
313 |
-# Distributed under the terms of the GNU General Public License v2 |
314 |
- |
315 |
-EAPI=7 |
316 |
- |
317 |
-inherit bash-completion-r1 java-pkg-2 multiprocessing |
318 |
- |
319 |
-DESCRIPTION="Fast and correct automated build system" |
320 |
-HOMEPAGE="https://bazel.build/" |
321 |
- |
322 |
-SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip" |
323 |
- |
324 |
-LICENSE="Apache-2.0" |
325 |
-SLOT="0" |
326 |
-KEYWORDS="amd64" |
327 |
-IUSE="examples tools" |
328 |
-# strip corrupts the bazel binary |
329 |
-# test fails with network-sandbox: An error occurred during the fetch of repository 'io_bazel_skydoc' (bug 690794) |
330 |
-RESTRICT="strip test" |
331 |
-RDEPEND=">=virtual/jdk-1.8:*" |
332 |
-DEPEND="${RDEPEND} |
333 |
- app-arch/unzip |
334 |
- app-arch/zip" |
335 |
- |
336 |
-S="${WORKDIR}" |
337 |
- |
338 |
-bazel-get-flags() { |
339 |
- local i fs=() |
340 |
- for i in ${CFLAGS}; do |
341 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
342 |
- done |
343 |
- for i in ${CXXFLAGS}; do |
344 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
345 |
- done |
346 |
- for i in ${CPPFLAGS}; do |
347 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
348 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
349 |
- done |
350 |
- for i in ${LDFLAGS}; do |
351 |
- fs+=( "--linkopt=${i}" "--host_linkopt=${i}" ) |
352 |
- done |
353 |
- echo "${fs[*]}" |
354 |
-} |
355 |
- |
356 |
-pkg_setup() { |
357 |
- if has ccache ${FEATURES}; then |
358 |
- ewarn "${PN} usually fails to compile with ccache, you have been warned" |
359 |
- fi |
360 |
- java-pkg-2_pkg_setup |
361 |
-} |
362 |
- |
363 |
-src_unpack() { |
364 |
- # Only unpack the main distfile |
365 |
- unpack ${P}-dist.zip |
366 |
-} |
367 |
- |
368 |
-src_prepare() { |
369 |
- default |
370 |
- |
371 |
- # F: fopen_wr |
372 |
- # S: deny |
373 |
- # P: /proc/self/setgroups |
374 |
- # A: /proc/self/setgroups |
375 |
- # R: /proc/24939/setgroups |
376 |
- # C: /usr/lib/systemd/systemd |
377 |
- addpredict /proc |
378 |
- |
379 |
- eapply "${FILESDIR}/${PN}-0.24.1-rename-gettid-functions.patch" |
380 |
- eapply "${FILESDIR}/${PN}-0.22.0-include-limits-for-gcc-11.patch" |
381 |
-} |
382 |
- |
383 |
-src_compile() { |
384 |
- export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel-get-flags) --host_javabase=@local_jdk//:jdk" |
385 |
- VERBOSE=yes ./compile.sh || die |
386 |
- |
387 |
- ./scripts/generate_bash_completion.sh \ |
388 |
- --bazel=output/bazel \ |
389 |
- --output=bazel-complete.bash \ |
390 |
- --prepend=scripts/bazel-complete-header.bash \ |
391 |
- --prepend=scripts/bazel-complete-template.bash |
392 |
-} |
393 |
- |
394 |
-src_test() { |
395 |
- output/bazel test \ |
396 |
- --verbose_failures \ |
397 |
- --spawn_strategy=standalone \ |
398 |
- --genrule_strategy=standalone \ |
399 |
- --verbose_test_summary \ |
400 |
- examples/cpp:hello-success_test || die |
401 |
- output/bazel shutdown |
402 |
-} |
403 |
- |
404 |
-src_install() { |
405 |
- dobin output/bazel |
406 |
- newbashcomp bazel-complete.bash ${PN} |
407 |
- bashcomp_alias ${PN} ibazel |
408 |
- insinto /usr/share/zsh/site-functions |
409 |
- doins scripts/zsh_completion/_bazel |
410 |
- |
411 |
- if use examples; then |
412 |
- docinto examples |
413 |
- dodoc -r examples/* |
414 |
- docompress -x /usr/share/doc/${PF}/examples |
415 |
- fi |
416 |
- # could really build tools but I don't know which ones |
417 |
- # are actually used |
418 |
- if use tools; then |
419 |
- docinto tools |
420 |
- dodoc -r tools/* |
421 |
- docompress -x /usr/share/doc/${PF}/tools |
422 |
- docompress -x /usr/share/doc/${PF}/tools/build_defs/pkg/testdata |
423 |
- fi |
424 |
-} |
425 |
|
426 |
diff --git a/dev-util/bazel/bazel-0.29.1.ebuild b/dev-util/bazel/bazel-0.29.1.ebuild |
427 |
deleted file mode 100644 |
428 |
index 95740e9606ea..000000000000 |
429 |
--- a/dev-util/bazel/bazel-0.29.1.ebuild |
430 |
+++ /dev/null |
431 |
@@ -1,113 +0,0 @@ |
432 |
-# Copyright 1999-2021 Gentoo Authors |
433 |
-# Distributed under the terms of the GNU General Public License v2 |
434 |
- |
435 |
-EAPI=7 |
436 |
- |
437 |
-inherit bash-completion-r1 java-pkg-2 multiprocessing |
438 |
- |
439 |
-DESCRIPTION="Fast and correct automated build system" |
440 |
-HOMEPAGE="https://bazel.build/" |
441 |
- |
442 |
-SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip" |
443 |
- |
444 |
-LICENSE="Apache-2.0" |
445 |
-SLOT="0" |
446 |
-KEYWORDS="amd64" |
447 |
-IUSE="examples tools" |
448 |
-# strip corrupts the bazel binary |
449 |
-# test fails with network-sandbox: An error occurred during the fetch of repository 'io_bazel_skydoc' (bug 690794) |
450 |
-RESTRICT="strip test" |
451 |
-RDEPEND=">=virtual/jdk-1.8:*" |
452 |
-DEPEND="${RDEPEND} |
453 |
- app-arch/unzip |
454 |
- app-arch/zip" |
455 |
- |
456 |
-S="${WORKDIR}" |
457 |
- |
458 |
-bazel-get-flags() { |
459 |
- local i fs=() |
460 |
- for i in ${CFLAGS}; do |
461 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
462 |
- done |
463 |
- for i in ${CXXFLAGS}; do |
464 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
465 |
- done |
466 |
- for i in ${CPPFLAGS}; do |
467 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
468 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
469 |
- done |
470 |
- for i in ${LDFLAGS}; do |
471 |
- fs+=( "--linkopt=${i}" "--host_linkopt=${i}" ) |
472 |
- done |
473 |
- echo "${fs[*]}" |
474 |
-} |
475 |
- |
476 |
-pkg_setup() { |
477 |
- if has ccache ${FEATURES}; then |
478 |
- ewarn "${PN} usually fails to compile with ccache, you have been warned" |
479 |
- fi |
480 |
- java-pkg-2_pkg_setup |
481 |
-} |
482 |
- |
483 |
-src_unpack() { |
484 |
- # Only unpack the main distfile |
485 |
- unpack ${P}-dist.zip |
486 |
-} |
487 |
- |
488 |
-src_prepare() { |
489 |
- default |
490 |
- |
491 |
- # F: fopen_wr |
492 |
- # S: deny |
493 |
- # P: /proc/self/setgroups |
494 |
- # A: /proc/self/setgroups |
495 |
- # R: /proc/24939/setgroups |
496 |
- # C: /usr/lib/systemd/systemd |
497 |
- addpredict /proc |
498 |
- |
499 |
- eapply "${FILESDIR}/${PN}-0.24.1-rename-gettid-functions.patch" |
500 |
- eapply "${FILESDIR}/${PN}-0.22.0-include-limits-for-gcc-11.patch" |
501 |
-} |
502 |
- |
503 |
-src_compile() { |
504 |
- export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel-get-flags) --host_javabase=@local_jdk//:jdk" |
505 |
- VERBOSE=yes ./compile.sh || die |
506 |
- |
507 |
- ./scripts/generate_bash_completion.sh \ |
508 |
- --bazel=output/bazel \ |
509 |
- --output=bazel-complete.bash \ |
510 |
- --prepend=scripts/bazel-complete-header.bash \ |
511 |
- --prepend=scripts/bazel-complete-template.bash |
512 |
-} |
513 |
- |
514 |
-src_test() { |
515 |
- output/bazel test \ |
516 |
- --verbose_failures \ |
517 |
- --spawn_strategy=standalone \ |
518 |
- --genrule_strategy=standalone \ |
519 |
- --verbose_test_summary \ |
520 |
- examples/cpp:hello-success_test || die |
521 |
- output/bazel shutdown |
522 |
-} |
523 |
- |
524 |
-src_install() { |
525 |
- dobin output/bazel |
526 |
- newbashcomp bazel-complete.bash ${PN} |
527 |
- bashcomp_alias ${PN} ibazel |
528 |
- insinto /usr/share/zsh/site-functions |
529 |
- doins scripts/zsh_completion/_bazel |
530 |
- |
531 |
- if use examples; then |
532 |
- docinto examples |
533 |
- dodoc -r examples/* |
534 |
- docompress -x /usr/share/doc/${PF}/examples |
535 |
- fi |
536 |
- # could really build tools but I don't know which ones |
537 |
- # are actually used |
538 |
- if use tools; then |
539 |
- docinto tools |
540 |
- dodoc -r tools/* |
541 |
- docompress -x /usr/share/doc/${PF}/tools |
542 |
- docompress -x /usr/share/doc/${PF}/tools/build_defs/pkg/testdata |
543 |
- fi |
544 |
-} |
545 |
|
546 |
diff --git a/dev-util/bazel/bazel-1.0.1.ebuild b/dev-util/bazel/bazel-1.0.1.ebuild |
547 |
deleted file mode 100644 |
548 |
index 25dd653392af..000000000000 |
549 |
--- a/dev-util/bazel/bazel-1.0.1.ebuild |
550 |
+++ /dev/null |
551 |
@@ -1,113 +0,0 @@ |
552 |
-# Copyright 1999-2021 Gentoo Authors |
553 |
-# Distributed under the terms of the GNU General Public License v2 |
554 |
- |
555 |
-EAPI=7 |
556 |
- |
557 |
-inherit bash-completion-r1 java-pkg-2 multiprocessing |
558 |
- |
559 |
-DESCRIPTION="Fast and correct automated build system" |
560 |
-HOMEPAGE="https://bazel.build/" |
561 |
- |
562 |
-SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip" |
563 |
- |
564 |
-LICENSE="Apache-2.0" |
565 |
-SLOT="0" |
566 |
-KEYWORDS="~amd64" |
567 |
-IUSE="examples tools" |
568 |
-# strip corrupts the bazel binary |
569 |
-# test fails with network-sandbox: An error occurred during the fetch of repository 'io_bazel_skydoc' (bug 690794) |
570 |
-RESTRICT="strip test" |
571 |
-RDEPEND=">=virtual/jdk-1.8:*" |
572 |
-DEPEND="${RDEPEND} |
573 |
- app-arch/unzip |
574 |
- app-arch/zip" |
575 |
- |
576 |
-S="${WORKDIR}" |
577 |
- |
578 |
-bazel-get-flags() { |
579 |
- local i fs=() |
580 |
- for i in ${CFLAGS}; do |
581 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
582 |
- done |
583 |
- for i in ${CXXFLAGS}; do |
584 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
585 |
- done |
586 |
- for i in ${CPPFLAGS}; do |
587 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
588 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
589 |
- done |
590 |
- for i in ${LDFLAGS}; do |
591 |
- fs+=( "--linkopt=${i}" "--host_linkopt=${i}" ) |
592 |
- done |
593 |
- echo "${fs[*]}" |
594 |
-} |
595 |
- |
596 |
-pkg_setup() { |
597 |
- if has ccache ${FEATURES}; then |
598 |
- ewarn "${PN} usually fails to compile with ccache, you have been warned" |
599 |
- fi |
600 |
- java-pkg-2_pkg_setup |
601 |
-} |
602 |
- |
603 |
-src_unpack() { |
604 |
- # Only unpack the main distfile |
605 |
- unpack ${P}-dist.zip |
606 |
-} |
607 |
- |
608 |
-src_prepare() { |
609 |
- default |
610 |
- |
611 |
- # F: fopen_wr |
612 |
- # S: deny |
613 |
- # P: /proc/self/setgroups |
614 |
- # A: /proc/self/setgroups |
615 |
- # R: /proc/24939/setgroups |
616 |
- # C: /usr/lib/systemd/systemd |
617 |
- addpredict /proc |
618 |
- |
619 |
- eapply "${FILESDIR}/${PN}-0.24.1-rename-gettid-functions.patch" |
620 |
- eapply "${FILESDIR}/${PN}-0.22.0-include-limits-for-gcc-11.patch" |
621 |
-} |
622 |
- |
623 |
-src_compile() { |
624 |
- export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel-get-flags) --host_javabase=@local_jdk//:jdk" |
625 |
- VERBOSE=yes ./compile.sh || die |
626 |
- |
627 |
- ./scripts/generate_bash_completion.sh \ |
628 |
- --bazel=output/bazel \ |
629 |
- --output=bazel-complete.bash \ |
630 |
- --prepend=scripts/bazel-complete-header.bash \ |
631 |
- --prepend=scripts/bazel-complete-template.bash |
632 |
-} |
633 |
- |
634 |
-src_test() { |
635 |
- output/bazel test \ |
636 |
- --verbose_failures \ |
637 |
- --spawn_strategy=standalone \ |
638 |
- --genrule_strategy=standalone \ |
639 |
- --verbose_test_summary \ |
640 |
- examples/cpp:hello-success_test || die |
641 |
- output/bazel shutdown |
642 |
-} |
643 |
- |
644 |
-src_install() { |
645 |
- dobin output/bazel |
646 |
- newbashcomp bazel-complete.bash ${PN} |
647 |
- bashcomp_alias ${PN} ibazel |
648 |
- insinto /usr/share/zsh/site-functions |
649 |
- doins scripts/zsh_completion/_bazel |
650 |
- |
651 |
- if use examples; then |
652 |
- docinto examples |
653 |
- dodoc -r examples/* |
654 |
- docompress -x /usr/share/doc/${PF}/examples |
655 |
- fi |
656 |
- # could really build tools but I don't know which ones |
657 |
- # are actually used |
658 |
- if use tools; then |
659 |
- docinto tools |
660 |
- dodoc -r tools/* |
661 |
- docompress -x /usr/share/doc/${PF}/tools |
662 |
- docompress -x /usr/share/doc/${PF}/tools/build_defs/pkg/testdata |
663 |
- fi |
664 |
-} |
665 |
|
666 |
diff --git a/dev-util/bazel/bazel-1.2.1.ebuild b/dev-util/bazel/bazel-1.2.1.ebuild |
667 |
deleted file mode 100644 |
668 |
index 95740e9606ea..000000000000 |
669 |
--- a/dev-util/bazel/bazel-1.2.1.ebuild |
670 |
+++ /dev/null |
671 |
@@ -1,113 +0,0 @@ |
672 |
-# Copyright 1999-2021 Gentoo Authors |
673 |
-# Distributed under the terms of the GNU General Public License v2 |
674 |
- |
675 |
-EAPI=7 |
676 |
- |
677 |
-inherit bash-completion-r1 java-pkg-2 multiprocessing |
678 |
- |
679 |
-DESCRIPTION="Fast and correct automated build system" |
680 |
-HOMEPAGE="https://bazel.build/" |
681 |
- |
682 |
-SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip" |
683 |
- |
684 |
-LICENSE="Apache-2.0" |
685 |
-SLOT="0" |
686 |
-KEYWORDS="amd64" |
687 |
-IUSE="examples tools" |
688 |
-# strip corrupts the bazel binary |
689 |
-# test fails with network-sandbox: An error occurred during the fetch of repository 'io_bazel_skydoc' (bug 690794) |
690 |
-RESTRICT="strip test" |
691 |
-RDEPEND=">=virtual/jdk-1.8:*" |
692 |
-DEPEND="${RDEPEND} |
693 |
- app-arch/unzip |
694 |
- app-arch/zip" |
695 |
- |
696 |
-S="${WORKDIR}" |
697 |
- |
698 |
-bazel-get-flags() { |
699 |
- local i fs=() |
700 |
- for i in ${CFLAGS}; do |
701 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
702 |
- done |
703 |
- for i in ${CXXFLAGS}; do |
704 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
705 |
- done |
706 |
- for i in ${CPPFLAGS}; do |
707 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
708 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
709 |
- done |
710 |
- for i in ${LDFLAGS}; do |
711 |
- fs+=( "--linkopt=${i}" "--host_linkopt=${i}" ) |
712 |
- done |
713 |
- echo "${fs[*]}" |
714 |
-} |
715 |
- |
716 |
-pkg_setup() { |
717 |
- if has ccache ${FEATURES}; then |
718 |
- ewarn "${PN} usually fails to compile with ccache, you have been warned" |
719 |
- fi |
720 |
- java-pkg-2_pkg_setup |
721 |
-} |
722 |
- |
723 |
-src_unpack() { |
724 |
- # Only unpack the main distfile |
725 |
- unpack ${P}-dist.zip |
726 |
-} |
727 |
- |
728 |
-src_prepare() { |
729 |
- default |
730 |
- |
731 |
- # F: fopen_wr |
732 |
- # S: deny |
733 |
- # P: /proc/self/setgroups |
734 |
- # A: /proc/self/setgroups |
735 |
- # R: /proc/24939/setgroups |
736 |
- # C: /usr/lib/systemd/systemd |
737 |
- addpredict /proc |
738 |
- |
739 |
- eapply "${FILESDIR}/${PN}-0.24.1-rename-gettid-functions.patch" |
740 |
- eapply "${FILESDIR}/${PN}-0.22.0-include-limits-for-gcc-11.patch" |
741 |
-} |
742 |
- |
743 |
-src_compile() { |
744 |
- export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel-get-flags) --host_javabase=@local_jdk//:jdk" |
745 |
- VERBOSE=yes ./compile.sh || die |
746 |
- |
747 |
- ./scripts/generate_bash_completion.sh \ |
748 |
- --bazel=output/bazel \ |
749 |
- --output=bazel-complete.bash \ |
750 |
- --prepend=scripts/bazel-complete-header.bash \ |
751 |
- --prepend=scripts/bazel-complete-template.bash |
752 |
-} |
753 |
- |
754 |
-src_test() { |
755 |
- output/bazel test \ |
756 |
- --verbose_failures \ |
757 |
- --spawn_strategy=standalone \ |
758 |
- --genrule_strategy=standalone \ |
759 |
- --verbose_test_summary \ |
760 |
- examples/cpp:hello-success_test || die |
761 |
- output/bazel shutdown |
762 |
-} |
763 |
- |
764 |
-src_install() { |
765 |
- dobin output/bazel |
766 |
- newbashcomp bazel-complete.bash ${PN} |
767 |
- bashcomp_alias ${PN} ibazel |
768 |
- insinto /usr/share/zsh/site-functions |
769 |
- doins scripts/zsh_completion/_bazel |
770 |
- |
771 |
- if use examples; then |
772 |
- docinto examples |
773 |
- dodoc -r examples/* |
774 |
- docompress -x /usr/share/doc/${PF}/examples |
775 |
- fi |
776 |
- # could really build tools but I don't know which ones |
777 |
- # are actually used |
778 |
- if use tools; then |
779 |
- docinto tools |
780 |
- dodoc -r tools/* |
781 |
- docompress -x /usr/share/doc/${PF}/tools |
782 |
- docompress -x /usr/share/doc/${PF}/tools/build_defs/pkg/testdata |
783 |
- fi |
784 |
-} |
785 |
|
786 |
diff --git a/dev-util/bazel/bazel-2.0.1.ebuild b/dev-util/bazel/bazel-2.0.1.ebuild |
787 |
deleted file mode 100644 |
788 |
index 426d7485ab0d..000000000000 |
789 |
--- a/dev-util/bazel/bazel-2.0.1.ebuild |
790 |
+++ /dev/null |
791 |
@@ -1,112 +0,0 @@ |
792 |
-# Copyright 1999-2021 Gentoo Authors |
793 |
-# Distributed under the terms of the GNU General Public License v2 |
794 |
- |
795 |
-EAPI=7 |
796 |
- |
797 |
-inherit bash-completion-r1 java-pkg-2 multiprocessing |
798 |
- |
799 |
-DESCRIPTION="Fast and correct automated build system" |
800 |
-HOMEPAGE="https://bazel.build/" |
801 |
- |
802 |
-SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip" |
803 |
- |
804 |
-LICENSE="Apache-2.0" |
805 |
-SLOT="0" |
806 |
-KEYWORDS="~amd64" |
807 |
-IUSE="examples tools" |
808 |
-# strip corrupts the bazel binary |
809 |
-# test fails with network-sandbox: An error occurred during the fetch of repository 'io_bazel_skydoc' (bug 690794) |
810 |
-RESTRICT="strip test" |
811 |
-RDEPEND=">=virtual/jdk-1.8:*" |
812 |
-DEPEND="${RDEPEND} |
813 |
- app-arch/unzip |
814 |
- app-arch/zip" |
815 |
- |
816 |
-S="${WORKDIR}" |
817 |
- |
818 |
-bazel-get-flags() { |
819 |
- local i fs=() |
820 |
- for i in ${CFLAGS}; do |
821 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
822 |
- done |
823 |
- for i in ${CXXFLAGS}; do |
824 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
825 |
- done |
826 |
- for i in ${CPPFLAGS}; do |
827 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
828 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
829 |
- done |
830 |
- for i in ${LDFLAGS}; do |
831 |
- fs+=( "--linkopt=${i}" "--host_linkopt=${i}" ) |
832 |
- done |
833 |
- echo "${fs[*]}" |
834 |
-} |
835 |
- |
836 |
-pkg_setup() { |
837 |
- if has ccache ${FEATURES}; then |
838 |
- ewarn "${PN} usually fails to compile with ccache, you have been warned" |
839 |
- fi |
840 |
- java-pkg-2_pkg_setup |
841 |
-} |
842 |
- |
843 |
-src_unpack() { |
844 |
- # Only unpack the main distfile |
845 |
- unpack ${P}-dist.zip |
846 |
-} |
847 |
- |
848 |
-src_prepare() { |
849 |
- default |
850 |
- |
851 |
- # F: fopen_wr |
852 |
- # S: deny |
853 |
- # P: /proc/self/setgroups |
854 |
- # A: /proc/self/setgroups |
855 |
- # R: /proc/24939/setgroups |
856 |
- # C: /usr/lib/systemd/systemd |
857 |
- addpredict /proc |
858 |
- |
859 |
- eapply "${FILESDIR}/${PN}-0.22.0-include-limits-for-gcc-11.patch" |
860 |
-} |
861 |
- |
862 |
-src_compile() { |
863 |
- export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel-get-flags) --host_javabase=@local_jdk//:jdk" |
864 |
- VERBOSE=yes ./compile.sh || die |
865 |
- |
866 |
- ./scripts/generate_bash_completion.sh \ |
867 |
- --bazel=output/bazel \ |
868 |
- --output=bazel-complete.bash \ |
869 |
- --prepend=scripts/bazel-complete-header.bash \ |
870 |
- --prepend=scripts/bazel-complete-template.bash |
871 |
-} |
872 |
- |
873 |
-src_test() { |
874 |
- output/bazel test \ |
875 |
- --verbose_failures \ |
876 |
- --spawn_strategy=standalone \ |
877 |
- --genrule_strategy=standalone \ |
878 |
- --verbose_test_summary \ |
879 |
- examples/cpp:hello-success_test || die |
880 |
- output/bazel shutdown |
881 |
-} |
882 |
- |
883 |
-src_install() { |
884 |
- dobin output/bazel |
885 |
- newbashcomp bazel-complete.bash ${PN} |
886 |
- bashcomp_alias ${PN} ibazel |
887 |
- insinto /usr/share/zsh/site-functions |
888 |
- doins scripts/zsh_completion/_bazel |
889 |
- |
890 |
- if use examples; then |
891 |
- docinto examples |
892 |
- dodoc -r examples/* |
893 |
- docompress -x /usr/share/doc/${PF}/examples |
894 |
- fi |
895 |
- # could really build tools but I don't know which ones |
896 |
- # are actually used |
897 |
- if use tools; then |
898 |
- docinto tools |
899 |
- dodoc -r tools/* |
900 |
- docompress -x /usr/share/doc/${PF}/tools |
901 |
- docompress -x /usr/share/doc/${PF}/tools/build_defs/pkg/testdata |
902 |
- fi |
903 |
-} |
904 |
|
905 |
diff --git a/dev-util/bazel/bazel-3.2.0.ebuild b/dev-util/bazel/bazel-3.2.0.ebuild |
906 |
deleted file mode 100644 |
907 |
index ba0583025946..000000000000 |
908 |
--- a/dev-util/bazel/bazel-3.2.0.ebuild |
909 |
+++ /dev/null |
910 |
@@ -1,116 +0,0 @@ |
911 |
-# Copyright 1999-2021 Gentoo Authors |
912 |
-# Distributed under the terms of the GNU General Public License v2 |
913 |
- |
914 |
-EAPI=7 |
915 |
- |
916 |
-inherit bash-completion-r1 java-pkg-2 multiprocessing |
917 |
- |
918 |
-DESCRIPTION="Fast and correct automated build system" |
919 |
-HOMEPAGE="https://bazel.build/" |
920 |
- |
921 |
-SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip" |
922 |
- |
923 |
-LICENSE="Apache-2.0" |
924 |
-SLOT="0" |
925 |
-KEYWORDS="~amd64" |
926 |
-IUSE="examples tools prefix static-libs" |
927 |
-REQUIRED_USE="prefix? ( static-libs )" |
928 |
-# strip corrupts the bazel binary |
929 |
-# test fails with network-sandbox: An error occurred during the fetch of repository 'io_bazel_skydoc' (bug 690794) |
930 |
-RESTRICT="strip test" |
931 |
-RDEPEND=">=virtual/jdk-1.8:*" |
932 |
-DEPEND="${RDEPEND} |
933 |
- app-arch/unzip |
934 |
- app-arch/zip" |
935 |
- |
936 |
-S="${WORKDIR}" |
937 |
- |
938 |
-bazel-get-flags() { |
939 |
- local i fs=() |
940 |
- for i in ${CFLAGS}; do |
941 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
942 |
- done |
943 |
- for i in ${CXXFLAGS}; do |
944 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
945 |
- done |
946 |
- for i in ${CPPFLAGS}; do |
947 |
- fs+=( "--copt=${i}" "--host_copt=${i}" ) |
948 |
- fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) |
949 |
- done |
950 |
- for i in ${LDFLAGS}; do |
951 |
- fs+=( "--linkopt=${i}" "--host_linkopt=${i}" ) |
952 |
- done |
953 |
- echo "${fs[*]}" |
954 |
-} |
955 |
- |
956 |
-pkg_setup() { |
957 |
- if has ccache ${FEATURES}; then |
958 |
- ewarn "${PN} usually fails to compile with ccache, you have been warned" |
959 |
- fi |
960 |
- java-pkg-2_pkg_setup |
961 |
-} |
962 |
- |
963 |
-src_unpack() { |
964 |
- # Only unpack the main distfile |
965 |
- unpack ${P}-dist.zip |
966 |
-} |
967 |
- |
968 |
-src_prepare() { |
969 |
- default |
970 |
- |
971 |
- # F: fopen_wr |
972 |
- # S: deny |
973 |
- # P: /proc/self/setgroups |
974 |
- # A: /proc/self/setgroups |
975 |
- # R: /proc/24939/setgroups |
976 |
- # C: /usr/lib/systemd/systemd |
977 |
- addpredict /proc |
978 |
- |
979 |
- eapply "${FILESDIR}/${P}-include-limits-for-gcc-11.patch" |
980 |
-} |
981 |
- |
982 |
-src_compile() { |
983 |
- export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel-get-flags) --host_javabase=@local_jdk//:jdk" |
984 |
- if use static-libs; then |
985 |
- export BAZEL_LINKOPTS=-static-libs:-static-libgcc BAZEL_LINKLIBS=-l%:libstdc++.a:-lm |
986 |
- fi |
987 |
- VERBOSE=yes ./compile.sh || die |
988 |
- |
989 |
- ./scripts/generate_bash_completion.sh \ |
990 |
- --bazel=output/bazel \ |
991 |
- --output=bazel-complete.bash \ |
992 |
- --prepend=scripts/bazel-complete-header.bash \ |
993 |
- --prepend=scripts/bazel-complete-template.bash |
994 |
-} |
995 |
- |
996 |
-src_test() { |
997 |
- output/bazel test \ |
998 |
- --verbose_failures \ |
999 |
- --spawn_strategy=standalone \ |
1000 |
- --genrule_strategy=standalone \ |
1001 |
- --verbose_test_summary \ |
1002 |
- examples/cpp:hello-success_test || die |
1003 |
- output/bazel shutdown |
1004 |
-} |
1005 |
- |
1006 |
-src_install() { |
1007 |
- dobin output/bazel |
1008 |
- newbashcomp bazel-complete.bash ${PN} |
1009 |
- bashcomp_alias ${PN} ibazel |
1010 |
- insinto /usr/share/zsh/site-functions |
1011 |
- doins scripts/zsh_completion/_bazel |
1012 |
- |
1013 |
- if use examples; then |
1014 |
- docinto examples |
1015 |
- dodoc -r examples/* |
1016 |
- docompress -x /usr/share/doc/${PF}/examples |
1017 |
- fi |
1018 |
- # could really build tools but I don't know which ones |
1019 |
- # are actually used |
1020 |
- if use tools; then |
1021 |
- docinto tools |
1022 |
- dodoc -r tools/* |
1023 |
- docompress -x /usr/share/doc/${PF}/tools |
1024 |
- docompress -x /usr/share/doc/${PF}/tools/build_defs/pkg/testdata |
1025 |
- fi |
1026 |
-} |
1027 |
|
1028 |
diff --git a/dev-util/bazel/files/bazel-0.22.0-include-limits-for-gcc-11.patch b/dev-util/bazel/files/bazel-0.22.0-include-limits-for-gcc-11.patch |
1029 |
deleted file mode 100644 |
1030 |
index e05c2263de06..000000000000 |
1031 |
--- a/dev-util/bazel/files/bazel-0.22.0-include-limits-for-gcc-11.patch |
1032 |
+++ /dev/null |
1033 |
@@ -1,125 +0,0 @@ |
1034 |
-diff --git a/third_party/ijar/mapped_file_unix.cc b/third_party/ijar/mapped_file_unix.cc |
1035 |
-index fbfca42723..a105ee89a7 100644 |
1036 |
---- a/third_party/ijar/mapped_file_unix.cc |
1037 |
-+++ b/third_party/ijar/mapped_file_unix.cc |
1038 |
-@@ -19,6 +19,7 @@ |
1039 |
- #include <sys/mman.h> |
1040 |
- |
1041 |
- #include <algorithm> |
1042 |
-+#include <limits> |
1043 |
- |
1044 |
- #include "third_party/ijar/mapped_file.h" |
1045 |
- |
1046 |
-diff --git a/third_party/ijar/zlib_client.h b/third_party/ijar/zlib_client.h |
1047 |
-index ed6616362f..da0848852b 100644 |
1048 |
---- a/third_party/ijar/zlib_client.h |
1049 |
-+++ b/third_party/ijar/zlib_client.h |
1050 |
-@@ -19,6 +19,8 @@ |
1051 |
- |
1052 |
- #include "third_party/ijar/common.h" |
1053 |
- |
1054 |
-+#include <limits> |
1055 |
-+ |
1056 |
- namespace devtools_ijar { |
1057 |
- // Try to compress a file entry in memory using the deflate algorithm. |
1058 |
- // It will compress buf (of size length) unless the compressed size is bigger |
1059 |
-diff --git a/third_party/protobuf/3.6.1/python/google/protobuf/pyext/message.cc b/third_party/protobuf/3.6.1/python/google/protobuf/pyext/message.cc |
1060 |
-index 5893533adf..78d964266d 100644 |
1061 |
---- a/third_party/protobuf/3.6.1/python/google/protobuf/pyext/message.cc |
1062 |
-+++ b/third_party/protobuf/3.6.1/python/google/protobuf/pyext/message.cc |
1063 |
-@@ -33,6 +33,7 @@ |
1064 |
- |
1065 |
- #include <google/protobuf/pyext/message.h> |
1066 |
- |
1067 |
-+#include <limits> |
1068 |
- #include <map> |
1069 |
- #include <memory> |
1070 |
- #include <string> |
1071 |
-diff --git a/third_party/protobuf/3.6.1/src/google/protobuf/repeated_field.cc b/third_party/protobuf/3.6.1/src/google/protobuf/repeated_field.cc |
1072 |
-index 310000aabb..f95803d4f2 100644 |
1073 |
---- a/third_party/protobuf/3.6.1/src/google/protobuf/repeated_field.cc |
1074 |
-+++ b/third_party/protobuf/3.6.1/src/google/protobuf/repeated_field.cc |
1075 |
-@@ -33,6 +33,7 @@ |
1076 |
- // Sanjay Ghemawat, Jeff Dean, and others. |
1077 |
- |
1078 |
- #include <algorithm> |
1079 |
-+#include <limits> |
1080 |
- |
1081 |
- #include <google/protobuf/repeated_field.h> |
1082 |
- #include <google/protobuf/stubs/logging.h> |
1083 |
-diff --git a/third_party/protobuf/3.6.1/src/google/protobuf/stubs/bytestream.cc b/third_party/protobuf/3.6.1/src/google/protobuf/stubs/bytestream.cc |
1084 |
-index f4af6a50ab..c3af6b7310 100644 |
1085 |
---- a/third_party/protobuf/3.6.1/src/google/protobuf/stubs/bytestream.cc |
1086 |
-+++ b/third_party/protobuf/3.6.1/src/google/protobuf/stubs/bytestream.cc |
1087 |
-@@ -32,6 +32,7 @@ |
1088 |
- |
1089 |
- #include <string.h> |
1090 |
- #include <algorithm> |
1091 |
-+#include <limits> |
1092 |
- |
1093 |
- namespace google { |
1094 |
- namespace protobuf { |
1095 |
-diff --git a/third_party/protobuf/3.6.1/src/google/protobuf/util/field_comparator_test.cc b/third_party/protobuf/3.6.1/src/google/protobuf/util/field_comparator_test.cc |
1096 |
-index 249b8d5463..d5363c7784 100644 |
1097 |
---- a/third_party/protobuf/3.6.1/src/google/protobuf/util/field_comparator_test.cc |
1098 |
-+++ b/third_party/protobuf/3.6.1/src/google/protobuf/util/field_comparator_test.cc |
1099 |
-@@ -42,6 +42,8 @@ |
1100 |
- // and the opensource version gtest.h header includes cmath transitively |
1101 |
- // somehow. |
1102 |
- #include <gtest/gtest.h> |
1103 |
-+#include <limits> |
1104 |
-+ |
1105 |
- namespace google { |
1106 |
- namespace protobuf { |
1107 |
- namespace util { |
1108 |
-diff --git a/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/datapiece.cc b/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/datapiece.cc |
1109 |
-index 59bc28ae71..914fe18913 100644 |
1110 |
---- a/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/datapiece.cc |
1111 |
-+++ b/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/datapiece.cc |
1112 |
-@@ -38,6 +38,8 @@ |
1113 |
- #include <google/protobuf/stubs/mathlimits.h> |
1114 |
- #include <google/protobuf/stubs/mathutil.h> |
1115 |
- |
1116 |
-+#include <limits> |
1117 |
-+ |
1118 |
- namespace google { |
1119 |
- namespace protobuf { |
1120 |
- namespace util { |
1121 |
-diff --git a/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/json_objectwriter_test.cc b/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/json_objectwriter_test.cc |
1122 |
-index 0dc710c7fe..aedf26bb12 100644 |
1123 |
---- a/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/json_objectwriter_test.cc |
1124 |
-+++ b/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/json_objectwriter_test.cc |
1125 |
-@@ -34,6 +34,8 @@ |
1126 |
- #include <google/protobuf/util/internal/utility.h> |
1127 |
- #include <gtest/gtest.h> |
1128 |
- |
1129 |
-+#include <limits> |
1130 |
-+ |
1131 |
- namespace google { |
1132 |
- namespace protobuf { |
1133 |
- namespace util { |
1134 |
-diff --git a/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/protostream_objectwriter_test.cc b/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/protostream_objectwriter_test.cc |
1135 |
-index 7f0df5677e..7d19608928 100644 |
1136 |
---- a/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/protostream_objectwriter_test.cc |
1137 |
-+++ b/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/protostream_objectwriter_test.cc |
1138 |
-@@ -58,6 +58,8 @@ |
1139 |
- #include <gtest/gtest.h> |
1140 |
- |
1141 |
- |
1142 |
-+#include <limits> |
1143 |
-+ |
1144 |
- namespace google { |
1145 |
- namespace protobuf { |
1146 |
- namespace util { |
1147 |
-diff --git a/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/utility.cc b/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/utility.cc |
1148 |
-index b8d917ce28..5b1694503b 100644 |
1149 |
---- a/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/utility.cc |
1150 |
-+++ b/third_party/protobuf/3.6.1/src/google/protobuf/util/internal/utility.cc |
1151 |
-@@ -31,6 +31,7 @@ |
1152 |
- #include <google/protobuf/util/internal/utility.h> |
1153 |
- |
1154 |
- #include <algorithm> |
1155 |
-+#include <limits> |
1156 |
- |
1157 |
- #include <google/protobuf/stubs/callback.h> |
1158 |
- #include <google/protobuf/stubs/common.h> |
1159 |
|
1160 |
diff --git a/dev-util/bazel/files/bazel-0.22.0-rename-gettid-functions.patch b/dev-util/bazel/files/bazel-0.22.0-rename-gettid-functions.patch |
1161 |
deleted file mode 100644 |
1162 |
index 0450300c2c90..000000000000 |
1163 |
--- a/dev-util/bazel/files/bazel-0.22.0-rename-gettid-functions.patch |
1164 |
+++ /dev/null |
1165 |
@@ -1,44 +0,0 @@ |
1166 |
-diff --git a/third_party/grpc/src/core/support/log_linux.c b/third_party/grpc/src/core/support/log_linux.c |
1167 |
-index 93a0c1b4c6..367c92118e 100644 |
1168 |
---- a/third_party/grpc/src/core/support/log_linux.c |
1169 |
-+++ b/third_party/grpc/src/core/support/log_linux.c |
1170 |
-@@ -54,7 +54,7 @@ |
1171 |
- #include <sys/syscall.h> |
1172 |
- #include <unistd.h> |
1173 |
- |
1174 |
--static long gettid(void) { return syscall(__NR_gettid); } |
1175 |
-+static long sys_gettid(void) { return syscall(__NR_gettid); } |
1176 |
- |
1177 |
- void gpr_log(const char *file, int line, gpr_log_severity severity, |
1178 |
- const char *format, ...) { |
1179 |
-@@ -95,7 +95,7 @@ void gpr_default_log(gpr_log_func_args *args) { |
1180 |
- |
1181 |
- gpr_asprintf(&prefix, "%s%s.%09d %7tu %s:%d]", |
1182 |
- gpr_log_severity_string(args->severity), time_buffer, |
1183 |
-- (int)(now.tv_nsec), gettid(), display_file, args->line); |
1184 |
-+ (int)(now.tv_nsec), sys_gettid(), display_file, args->line); |
1185 |
- |
1186 |
- fprintf(stderr, "%-60s %s\n", prefix, args->message); |
1187 |
- gpr_free(prefix); |
1188 |
-diff --git a/third_party/grpc/src/core/support/log_posix.c b/third_party/grpc/src/core/support/log_posix.c |
1189 |
-index 3ff171f99c..f0420a7b3b 100644 |
1190 |
---- a/third_party/grpc/src/core/support/log_posix.c |
1191 |
-+++ b/third_party/grpc/src/core/support/log_posix.c |
1192 |
-@@ -45,7 +45,7 @@ |
1193 |
- #include <time.h> |
1194 |
- #include <pthread.h> |
1195 |
- |
1196 |
--static intptr_t gettid(void) { return (intptr_t)pthread_self(); } |
1197 |
-+static intptr_t sys_gettid(void) { return (intptr_t)pthread_self(); } |
1198 |
- |
1199 |
- void gpr_log(const char *file, int line, gpr_log_severity severity, |
1200 |
- const char *format, ...) { |
1201 |
-@@ -95,7 +95,7 @@ void gpr_default_log(gpr_log_func_args *args) { |
1202 |
- |
1203 |
- fprintf(stderr, "%s%s.%09d %7tu %s:%d] %s\n", |
1204 |
- gpr_log_severity_string(args->severity), time_buffer, |
1205 |
-- (int)(now.tv_nsec), gettid(), display_file, args->line, |
1206 |
-+ (int)(now.tv_nsec), sys_gettid(), display_file, args->line, |
1207 |
- args->message); |
1208 |
- } |
1209 |
- |
1210 |
|
1211 |
diff --git a/dev-util/bazel/files/bazel-0.24.1-rename-gettid-functions.patch b/dev-util/bazel/files/bazel-0.24.1-rename-gettid-functions.patch |
1212 |
deleted file mode 100644 |
1213 |
index 39cf94d94695..000000000000 |
1214 |
--- a/dev-util/bazel/files/bazel-0.24.1-rename-gettid-functions.patch |
1215 |
+++ /dev/null |
1216 |
@@ -1,66 +0,0 @@ |
1217 |
-diff --git a/third_party/grpc/src/core/lib/gpr/log_linux.cc b/third_party/grpc/src/core/lib/gpr/log_linux.cc |
1218 |
-index 561276f0c2..8b597b4cf2 100644 |
1219 |
---- a/third_party/grpc/src/core/lib/gpr/log_linux.cc |
1220 |
-+++ b/third_party/grpc/src/core/lib/gpr/log_linux.cc |
1221 |
-@@ -40,7 +40,7 @@ |
1222 |
- #include <time.h> |
1223 |
- #include <unistd.h> |
1224 |
- |
1225 |
--static long gettid(void) { return syscall(__NR_gettid); } |
1226 |
-+static long sys_gettid(void) { return syscall(__NR_gettid); } |
1227 |
- |
1228 |
- void gpr_log(const char* file, int line, gpr_log_severity severity, |
1229 |
- const char* format, ...) { |
1230 |
-@@ -70,7 +70,7 @@ void gpr_default_log(gpr_log_func_args* args) { |
1231 |
- gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME); |
1232 |
- struct tm tm; |
1233 |
- static __thread long tid = 0; |
1234 |
-- if (tid == 0) tid = gettid(); |
1235 |
-+ if (tid == 0) tid = sys_gettid(); |
1236 |
- |
1237 |
- timer = static_cast<time_t>(now.tv_sec); |
1238 |
- final_slash = strrchr(args->file, '/'); |
1239 |
-diff --git a/third_party/grpc/src/core/lib/gpr/log_posix.cc b/third_party/grpc/src/core/lib/gpr/log_posix.cc |
1240 |
-index 0acb225572..cd0b702b94 100644 |
1241 |
---- a/third_party/grpc/src/core/lib/gpr/log_posix.cc |
1242 |
-+++ b/third_party/grpc/src/core/lib/gpr/log_posix.cc |
1243 |
-@@ -30,7 +30,7 @@ |
1244 |
- #include <string.h> |
1245 |
- #include <time.h> |
1246 |
- |
1247 |
--static intptr_t gettid(void) { return (intptr_t)pthread_self(); } |
1248 |
-+static intptr_t sys_gettid(void) { return (intptr_t)pthread_self(); } |
1249 |
- |
1250 |
- void gpr_log(const char* file, int line, gpr_log_severity severity, |
1251 |
- const char* format, ...) { |
1252 |
-@@ -85,7 +85,7 @@ void gpr_default_log(gpr_log_func_args* args) { |
1253 |
- char* prefix; |
1254 |
- gpr_asprintf(&prefix, "%s%s.%09d %7tu %s:%d]", |
1255 |
- gpr_log_severity_string(args->severity), time_buffer, |
1256 |
-- (int)(now.tv_nsec), gettid(), display_file, args->line); |
1257 |
-+ (int)(now.tv_nsec), sys_gettid(), display_file, args->line); |
1258 |
- |
1259 |
- fprintf(stderr, "%-70s %s\n", prefix, args->message); |
1260 |
- gpr_free(prefix); |
1261 |
-diff --git a/third_party/grpc/src/core/lib/iomgr/ev_epollex_linux.cc b/third_party/grpc/src/core/lib/iomgr/ev_epollex_linux.cc |
1262 |
-index 7a4870db78..4258ded8a0 100644 |
1263 |
---- a/third_party/grpc/src/core/lib/iomgr/ev_epollex_linux.cc |
1264 |
-+++ b/third_party/grpc/src/core/lib/iomgr/ev_epollex_linux.cc |
1265 |
-@@ -1150,7 +1150,7 @@ static void end_worker(grpc_pollset* pollset, grpc_pollset_worker* worker, |
1266 |
- } |
1267 |
- |
1268 |
- #ifndef NDEBUG |
1269 |
--static long gettid(void) { return syscall(__NR_gettid); } |
1270 |
-+static long sys_gettid(void) { return syscall(__NR_gettid); } |
1271 |
- #endif |
1272 |
- |
1273 |
- /* pollset->mu lock must be held by the caller before calling this. |
1274 |
-@@ -1170,7 +1170,7 @@ static grpc_error* pollset_work(grpc_pollset* pollset, |
1275 |
- #define WORKER_PTR (&worker) |
1276 |
- #endif |
1277 |
- #ifndef NDEBUG |
1278 |
-- WORKER_PTR->originator = gettid(); |
1279 |
-+ WORKER_PTR->originator = sys_gettid(); |
1280 |
- #endif |
1281 |
- if (grpc_polling_trace.enabled()) { |
1282 |
- gpr_log(GPR_INFO, |
1283 |
|
1284 |
diff --git a/dev-util/bazel/metadata.xml b/dev-util/bazel/metadata.xml |
1285 |
index d29756de7565..b97c681d1155 100644 |
1286 |
--- a/dev-util/bazel/metadata.xml |
1287 |
+++ b/dev-util/bazel/metadata.xml |
1288 |
@@ -19,6 +19,5 @@ |
1289 |
</longdescription> |
1290 |
<use> |
1291 |
<flag name="tools">Install extra bazel tools to build from sources</flag> |
1292 |
- <flag name="static-libs">Link libstdc++ statically</flag> |
1293 |
</use> |
1294 |
</pkgmetadata> |