Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/rust-std/
Date: Sat, 29 Jan 2022 17:07:58
Message-Id: 1643475947.7e51e1255a559bb11b72416a98c4a6422f5d2871.gyakovlev@gentoo
1 commit: 7e51e1255a559bb11b72416a98c4a6422f5d2871
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 29 17:01:28 2022 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 29 17:05:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e51e125
7
8 sys-devel/rust-std: drop 1.53.0, 1.54.0, 1.55.0, 1.56.1, 1.58.0
9
10 Bug: https://bugs.gentoo.org/821157
11 Bug: https://bugs.gentoo.org/831638
12 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
13
14 sys-devel/rust-std/Manifest | 5 -
15 sys-devel/rust-std/rust-std-1.53.0.ebuild | 154 -----------------------------
16 sys-devel/rust-std/rust-std-1.54.0.ebuild | 154 -----------------------------
17 sys-devel/rust-std/rust-std-1.55.0.ebuild | 154 -----------------------------
18 sys-devel/rust-std/rust-std-1.56.1.ebuild | 154 -----------------------------
19 sys-devel/rust-std/rust-std-1.58.0.ebuild | 155 ------------------------------
20 6 files changed, 776 deletions(-)
21
22 diff --git a/sys-devel/rust-std/Manifest b/sys-devel/rust-std/Manifest
23 index bb93701440ed..8a08fb30efdc 100644
24 --- a/sys-devel/rust-std/Manifest
25 +++ b/sys-devel/rust-std/Manifest
26 @@ -1,6 +1 @@
27 -DIST rustc-1.53.0-src.tar.xz 115686332 BLAKE2B fa068f89d42f927fdc79ee31aad1386eaf2aa596a060e059c5a1a73fe48c48d008fc952cd6c7912b743e41d77a94b205639eed0f728b2539b62f18a772cabfe3 SHA512 70485cf7a0f7fc36ee31644e546374079dc387a85b44e5e793707fd0a4d7ca05d311291e78b86db955485d8f21c47ff9e1908acc4da68ba04929287213a40c24
28 -DIST rustc-1.54.0-src.tar.xz 116286856 BLAKE2B 5ac47822646a0b6205f09282168b4d4ddcace9f6bc8f242c890327ca4074626f129514f8bcae5c5556015745f718990cce490658076f5cd3526623439540416b SHA512 5162f85b43ca2c5af93fdbfb2597d75df8a838f7fcc025a5298499ce1043db50f1ea2fbba753e47ce5daad3d80d4b612acf6527ef902c34117763e687fdbbcfa
29 -DIST rustc-1.55.0-src.tar.xz 117197580 BLAKE2B 8d9739ce7571146aee0e07c6287de9a8c4f1a914606cd47819eb1ef118b15772ecf22d0d43d7732f03c234a013fa54a4a7f0578a3f136af518f71bf64a03305d SHA512 7522f2fa95d5af92472404ecc97d7d9e745e88c933196a83fa373ce1efff6db3c295e0e2afdbfa1ff00644554efa0c3c7f6c11f9119ecf9010cb440b3f27c2da
30 -DIST rustc-1.56.1-src.tar.xz 121798264 BLAKE2B 09677b0332022f28a0d80949a6735929dbf64276f7eb57195d8c33e6c80f13c903432ff77d8834093ab551677618fb1d385f2300e2b1b4c064f9c245c696be32 SHA512 193468e211cde9ebc5f6e30b8e3733b79bd8710fe6dd45c7ed8d4392f91010d30466787afd4d0b2041cd7dd994924fee8ad111048824e248bd994959e55bf15f
31 -DIST rustc-1.58.0-src.tar.xz 124348768 BLAKE2B e5a0d919a1ca1202e218cec3da93fc69cba163069b1f2b4051778a49184715579c14cd6b03baa0225b10a8f1adf758aca427c910d95dfa2e647bbf8b7d133785 SHA512 70104f4d3b474dcb9935200ef0503f29cb15f10d38ba8630e1dadbb384924dd9137fced647794699efe83ac88083e4ae5f45712f0e1c8bc0a6f8c23eecdb0aeb
32 DIST rustc-1.58.1-src.tar.xz 124353160 BLAKE2B 686c7272db544ad46f7fb01b4e05f24f4e08ff959a000cadfaef5d8fc413b93f5ed839077bc9715defc7a0a179af091f65c7a5d7104b0b3153f0654c237c094b SHA512 eff3279d2e519343cea542a9ae2daab592e44f35af344e33ff43ed55fc7c824511790d1991dd36a603d12465de8c3688e7194c2b9557f288c587ffa04738c2ce
33
34 diff --git a/sys-devel/rust-std/rust-std-1.53.0.ebuild b/sys-devel/rust-std/rust-std-1.53.0.ebuild
35 deleted file mode 100644
36 index 7ca481644a6a..000000000000
37 --- a/sys-devel/rust-std/rust-std-1.53.0.ebuild
38 +++ /dev/null
39 @@ -1,154 +0,0 @@
40 -# Copyright 2020-2021 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=7
44 -
45 -PYTHON_COMPAT=( python3_{7,8,9} )
46 -
47 -inherit flag-o-matic multiprocessing python-any-r1 rust-toolchain toolchain-funcs
48 -
49 -DESCRIPTION="Rust standard library, standalone (for crossdev)"
50 -HOMEPAGE="https://www.rust-lang.org"
51 -SRC_URI="https://static.rust-lang.org/dist/rustc-${PV}-src.tar.xz"
52 -
53 -LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
54 -SLOT="stable/$(ver_cut 1-2)"
55 -# please do not keyword
56 -#KEYWORDS="" #nowarn
57 -IUSE="debug"
58 -
59 -BDEPEND="
60 - ${PYTHON_DEPS}
61 - ~dev-lang/rust-${PV}:=
62 -"
63 -
64 -DEPEND="||
65 - (
66 - >="${CATEGORY}"/gcc-4.7:*
67 - >="${CATEGORY}"/clang-3.5:*
68 - )
69 -"
70 -
71 -RDEPEND="${DEPEND}"
72 -
73 -# need full compiler to run tests
74 -RESTRICT="test"
75 -
76 -QA_FLAGS_IGNORED="usr/lib/rust/${PV}/rustlib/.*/lib/lib.*.so"
77 -
78 -S="${WORKDIR}/${P/-std/c}-src"
79 -
80 -#
81 -# The cross magic
82 -#
83 -export CTARGET=${CTARGET:-${CHOST}}
84 -if [[ ${CTARGET} == ${CHOST} ]] ; then
85 - if [[ ${CATEGORY} == cross-* ]] ; then
86 - export CTARGET=${CATEGORY#cross-}
87 - fi
88 -fi
89 -
90 -is_cross() {
91 - [[ ${CHOST} != ${CTARGET} ]]
92 -}
93 -
94 -toml_usex() {
95 - usex "$1" true false
96 -}
97 -
98 -pkg_pretend() {
99 - is_cross || die "${PN} should only be used for cross"
100 -}
101 -
102 -pkg_setup() {
103 - python-any-r1_pkg_setup
104 -}
105 -
106 -src_prepare() {
107 - default
108 -}
109 -
110 -src_configure() {
111 - # do the great cleanup
112 - strip-flags
113 - filter-flags '-mcpu=*' '-march=*' '-mtune=*' '-m32' '-m64'
114 - strip-unsupported-flags
115 -
116 - local rust_root x
117 - rust_root="$(rustc --print sysroot)"
118 - rtarget="$(rust_abi ${CTARGET})"
119 - rtarget="${ERUST_STD_RTARGET:-${rtarget}}" # some targets need to be custom.
120 - rbuild="$(rust_abi ${CBUILD})"
121 - rhost="$(rust_abi ${CHOST})"
122 -
123 - echo
124 - for x in CATEGORY rust_root rbuild rhost rtarget RUSTFLAGS CFLAGS CXXFLAGS LDFLAGS; do
125 - einfo "$(printf '%10s' ${x^^}:) ${!x}"
126 - done
127 -
128 - cat <<- EOF > "${S}"/config.toml
129 - [build]
130 - build = "${rbuild}"
131 - host = ["${rhost}"]
132 - target = ["${rtarget}"]
133 - cargo = "${rust_root}/bin/cargo"
134 - rustc = "${rust_root}/bin/rustc"
135 - submodules = false
136 - python = "${EPYTHON}"
137 - locked-deps = true
138 - vendor = true
139 - extended = true
140 - verbose = 2
141 - cargo-native-static = false
142 - [install]
143 - prefix = "${EPREFIX}/usr/lib/${PN}/${PV}"
144 - sysconfdir = "etc"
145 - docdir = "share/doc/rust"
146 - bindir = "bin"
147 - libdir = "lib"
148 - mandir = "share/man"
149 - [rust]
150 - # https://github.com/rust-lang/rust/issues/54872
151 - codegen-units-std = 1
152 - optimize = true
153 - debug = $(toml_usex debug)
154 - debug-assertions = $(toml_usex debug)
155 - debuginfo-level-rustc = 0
156 - backtrace = true
157 - incremental = false
158 - default-linker = "$(tc-getCC)"
159 - rpath = false
160 - dist-src = false
161 - remap-debuginfo = true
162 - jemalloc = false
163 - [dist]
164 - src-tarball = false
165 - [target.${rtarget}]
166 - cc = "$(tc-getCC ${CTARGET})"
167 - cxx = "$(tc-getCXX ${CTARGET})"
168 - linker = "$(tc-getCC ${CTARGET})"
169 - ar = "$(tc-getAR ${CTARGET})"
170 - $(usex elibc_musl 'crt-static = false' '')
171 - EOF
172 -
173 - einfo "${PN^} configured with the following settings:"
174 - cat "${S}"/config.toml || die
175 -}
176 -
177 -src_compile() {
178 - env RUST_BACKTRACE=1 \
179 - "${EPYTHON}" ./x.py build -vv --config="${S}"/config.toml -j$(makeopts_jobs) \
180 - library/std --stage 0 || die
181 -}
182 -
183 -src_test() {
184 - ewarn "${PN} can't run tests"
185 -}
186 -
187 -src_install() {
188 - local rustlib="lib/rust/${PV}/lib/rustlib"
189 - dodir "/usr/${rustlib}"
190 - pushd "build/${rhost}/stage0-sysroot/lib/rustlib" > /dev/null || die
191 - cp -pPRv "${rtarget}" "${ED}/usr/${rustlib}" || die
192 - popd > /dev/null || die
193 -}
194
195 diff --git a/sys-devel/rust-std/rust-std-1.54.0.ebuild b/sys-devel/rust-std/rust-std-1.54.0.ebuild
196 deleted file mode 100644
197 index 7ca481644a6a..000000000000
198 --- a/sys-devel/rust-std/rust-std-1.54.0.ebuild
199 +++ /dev/null
200 @@ -1,154 +0,0 @@
201 -# Copyright 2020-2021 Gentoo Authors
202 -# Distributed under the terms of the GNU General Public License v2
203 -
204 -EAPI=7
205 -
206 -PYTHON_COMPAT=( python3_{7,8,9} )
207 -
208 -inherit flag-o-matic multiprocessing python-any-r1 rust-toolchain toolchain-funcs
209 -
210 -DESCRIPTION="Rust standard library, standalone (for crossdev)"
211 -HOMEPAGE="https://www.rust-lang.org"
212 -SRC_URI="https://static.rust-lang.org/dist/rustc-${PV}-src.tar.xz"
213 -
214 -LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
215 -SLOT="stable/$(ver_cut 1-2)"
216 -# please do not keyword
217 -#KEYWORDS="" #nowarn
218 -IUSE="debug"
219 -
220 -BDEPEND="
221 - ${PYTHON_DEPS}
222 - ~dev-lang/rust-${PV}:=
223 -"
224 -
225 -DEPEND="||
226 - (
227 - >="${CATEGORY}"/gcc-4.7:*
228 - >="${CATEGORY}"/clang-3.5:*
229 - )
230 -"
231 -
232 -RDEPEND="${DEPEND}"
233 -
234 -# need full compiler to run tests
235 -RESTRICT="test"
236 -
237 -QA_FLAGS_IGNORED="usr/lib/rust/${PV}/rustlib/.*/lib/lib.*.so"
238 -
239 -S="${WORKDIR}/${P/-std/c}-src"
240 -
241 -#
242 -# The cross magic
243 -#
244 -export CTARGET=${CTARGET:-${CHOST}}
245 -if [[ ${CTARGET} == ${CHOST} ]] ; then
246 - if [[ ${CATEGORY} == cross-* ]] ; then
247 - export CTARGET=${CATEGORY#cross-}
248 - fi
249 -fi
250 -
251 -is_cross() {
252 - [[ ${CHOST} != ${CTARGET} ]]
253 -}
254 -
255 -toml_usex() {
256 - usex "$1" true false
257 -}
258 -
259 -pkg_pretend() {
260 - is_cross || die "${PN} should only be used for cross"
261 -}
262 -
263 -pkg_setup() {
264 - python-any-r1_pkg_setup
265 -}
266 -
267 -src_prepare() {
268 - default
269 -}
270 -
271 -src_configure() {
272 - # do the great cleanup
273 - strip-flags
274 - filter-flags '-mcpu=*' '-march=*' '-mtune=*' '-m32' '-m64'
275 - strip-unsupported-flags
276 -
277 - local rust_root x
278 - rust_root="$(rustc --print sysroot)"
279 - rtarget="$(rust_abi ${CTARGET})"
280 - rtarget="${ERUST_STD_RTARGET:-${rtarget}}" # some targets need to be custom.
281 - rbuild="$(rust_abi ${CBUILD})"
282 - rhost="$(rust_abi ${CHOST})"
283 -
284 - echo
285 - for x in CATEGORY rust_root rbuild rhost rtarget RUSTFLAGS CFLAGS CXXFLAGS LDFLAGS; do
286 - einfo "$(printf '%10s' ${x^^}:) ${!x}"
287 - done
288 -
289 - cat <<- EOF > "${S}"/config.toml
290 - [build]
291 - build = "${rbuild}"
292 - host = ["${rhost}"]
293 - target = ["${rtarget}"]
294 - cargo = "${rust_root}/bin/cargo"
295 - rustc = "${rust_root}/bin/rustc"
296 - submodules = false
297 - python = "${EPYTHON}"
298 - locked-deps = true
299 - vendor = true
300 - extended = true
301 - verbose = 2
302 - cargo-native-static = false
303 - [install]
304 - prefix = "${EPREFIX}/usr/lib/${PN}/${PV}"
305 - sysconfdir = "etc"
306 - docdir = "share/doc/rust"
307 - bindir = "bin"
308 - libdir = "lib"
309 - mandir = "share/man"
310 - [rust]
311 - # https://github.com/rust-lang/rust/issues/54872
312 - codegen-units-std = 1
313 - optimize = true
314 - debug = $(toml_usex debug)
315 - debug-assertions = $(toml_usex debug)
316 - debuginfo-level-rustc = 0
317 - backtrace = true
318 - incremental = false
319 - default-linker = "$(tc-getCC)"
320 - rpath = false
321 - dist-src = false
322 - remap-debuginfo = true
323 - jemalloc = false
324 - [dist]
325 - src-tarball = false
326 - [target.${rtarget}]
327 - cc = "$(tc-getCC ${CTARGET})"
328 - cxx = "$(tc-getCXX ${CTARGET})"
329 - linker = "$(tc-getCC ${CTARGET})"
330 - ar = "$(tc-getAR ${CTARGET})"
331 - $(usex elibc_musl 'crt-static = false' '')
332 - EOF
333 -
334 - einfo "${PN^} configured with the following settings:"
335 - cat "${S}"/config.toml || die
336 -}
337 -
338 -src_compile() {
339 - env RUST_BACKTRACE=1 \
340 - "${EPYTHON}" ./x.py build -vv --config="${S}"/config.toml -j$(makeopts_jobs) \
341 - library/std --stage 0 || die
342 -}
343 -
344 -src_test() {
345 - ewarn "${PN} can't run tests"
346 -}
347 -
348 -src_install() {
349 - local rustlib="lib/rust/${PV}/lib/rustlib"
350 - dodir "/usr/${rustlib}"
351 - pushd "build/${rhost}/stage0-sysroot/lib/rustlib" > /dev/null || die
352 - cp -pPRv "${rtarget}" "${ED}/usr/${rustlib}" || die
353 - popd > /dev/null || die
354 -}
355
356 diff --git a/sys-devel/rust-std/rust-std-1.55.0.ebuild b/sys-devel/rust-std/rust-std-1.55.0.ebuild
357 deleted file mode 100644
358 index 7ca481644a6a..000000000000
359 --- a/sys-devel/rust-std/rust-std-1.55.0.ebuild
360 +++ /dev/null
361 @@ -1,154 +0,0 @@
362 -# Copyright 2020-2021 Gentoo Authors
363 -# Distributed under the terms of the GNU General Public License v2
364 -
365 -EAPI=7
366 -
367 -PYTHON_COMPAT=( python3_{7,8,9} )
368 -
369 -inherit flag-o-matic multiprocessing python-any-r1 rust-toolchain toolchain-funcs
370 -
371 -DESCRIPTION="Rust standard library, standalone (for crossdev)"
372 -HOMEPAGE="https://www.rust-lang.org"
373 -SRC_URI="https://static.rust-lang.org/dist/rustc-${PV}-src.tar.xz"
374 -
375 -LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
376 -SLOT="stable/$(ver_cut 1-2)"
377 -# please do not keyword
378 -#KEYWORDS="" #nowarn
379 -IUSE="debug"
380 -
381 -BDEPEND="
382 - ${PYTHON_DEPS}
383 - ~dev-lang/rust-${PV}:=
384 -"
385 -
386 -DEPEND="||
387 - (
388 - >="${CATEGORY}"/gcc-4.7:*
389 - >="${CATEGORY}"/clang-3.5:*
390 - )
391 -"
392 -
393 -RDEPEND="${DEPEND}"
394 -
395 -# need full compiler to run tests
396 -RESTRICT="test"
397 -
398 -QA_FLAGS_IGNORED="usr/lib/rust/${PV}/rustlib/.*/lib/lib.*.so"
399 -
400 -S="${WORKDIR}/${P/-std/c}-src"
401 -
402 -#
403 -# The cross magic
404 -#
405 -export CTARGET=${CTARGET:-${CHOST}}
406 -if [[ ${CTARGET} == ${CHOST} ]] ; then
407 - if [[ ${CATEGORY} == cross-* ]] ; then
408 - export CTARGET=${CATEGORY#cross-}
409 - fi
410 -fi
411 -
412 -is_cross() {
413 - [[ ${CHOST} != ${CTARGET} ]]
414 -}
415 -
416 -toml_usex() {
417 - usex "$1" true false
418 -}
419 -
420 -pkg_pretend() {
421 - is_cross || die "${PN} should only be used for cross"
422 -}
423 -
424 -pkg_setup() {
425 - python-any-r1_pkg_setup
426 -}
427 -
428 -src_prepare() {
429 - default
430 -}
431 -
432 -src_configure() {
433 - # do the great cleanup
434 - strip-flags
435 - filter-flags '-mcpu=*' '-march=*' '-mtune=*' '-m32' '-m64'
436 - strip-unsupported-flags
437 -
438 - local rust_root x
439 - rust_root="$(rustc --print sysroot)"
440 - rtarget="$(rust_abi ${CTARGET})"
441 - rtarget="${ERUST_STD_RTARGET:-${rtarget}}" # some targets need to be custom.
442 - rbuild="$(rust_abi ${CBUILD})"
443 - rhost="$(rust_abi ${CHOST})"
444 -
445 - echo
446 - for x in CATEGORY rust_root rbuild rhost rtarget RUSTFLAGS CFLAGS CXXFLAGS LDFLAGS; do
447 - einfo "$(printf '%10s' ${x^^}:) ${!x}"
448 - done
449 -
450 - cat <<- EOF > "${S}"/config.toml
451 - [build]
452 - build = "${rbuild}"
453 - host = ["${rhost}"]
454 - target = ["${rtarget}"]
455 - cargo = "${rust_root}/bin/cargo"
456 - rustc = "${rust_root}/bin/rustc"
457 - submodules = false
458 - python = "${EPYTHON}"
459 - locked-deps = true
460 - vendor = true
461 - extended = true
462 - verbose = 2
463 - cargo-native-static = false
464 - [install]
465 - prefix = "${EPREFIX}/usr/lib/${PN}/${PV}"
466 - sysconfdir = "etc"
467 - docdir = "share/doc/rust"
468 - bindir = "bin"
469 - libdir = "lib"
470 - mandir = "share/man"
471 - [rust]
472 - # https://github.com/rust-lang/rust/issues/54872
473 - codegen-units-std = 1
474 - optimize = true
475 - debug = $(toml_usex debug)
476 - debug-assertions = $(toml_usex debug)
477 - debuginfo-level-rustc = 0
478 - backtrace = true
479 - incremental = false
480 - default-linker = "$(tc-getCC)"
481 - rpath = false
482 - dist-src = false
483 - remap-debuginfo = true
484 - jemalloc = false
485 - [dist]
486 - src-tarball = false
487 - [target.${rtarget}]
488 - cc = "$(tc-getCC ${CTARGET})"
489 - cxx = "$(tc-getCXX ${CTARGET})"
490 - linker = "$(tc-getCC ${CTARGET})"
491 - ar = "$(tc-getAR ${CTARGET})"
492 - $(usex elibc_musl 'crt-static = false' '')
493 - EOF
494 -
495 - einfo "${PN^} configured with the following settings:"
496 - cat "${S}"/config.toml || die
497 -}
498 -
499 -src_compile() {
500 - env RUST_BACKTRACE=1 \
501 - "${EPYTHON}" ./x.py build -vv --config="${S}"/config.toml -j$(makeopts_jobs) \
502 - library/std --stage 0 || die
503 -}
504 -
505 -src_test() {
506 - ewarn "${PN} can't run tests"
507 -}
508 -
509 -src_install() {
510 - local rustlib="lib/rust/${PV}/lib/rustlib"
511 - dodir "/usr/${rustlib}"
512 - pushd "build/${rhost}/stage0-sysroot/lib/rustlib" > /dev/null || die
513 - cp -pPRv "${rtarget}" "${ED}/usr/${rustlib}" || die
514 - popd > /dev/null || die
515 -}
516
517 diff --git a/sys-devel/rust-std/rust-std-1.56.1.ebuild b/sys-devel/rust-std/rust-std-1.56.1.ebuild
518 deleted file mode 100644
519 index 7ca481644a6a..000000000000
520 --- a/sys-devel/rust-std/rust-std-1.56.1.ebuild
521 +++ /dev/null
522 @@ -1,154 +0,0 @@
523 -# Copyright 2020-2021 Gentoo Authors
524 -# Distributed under the terms of the GNU General Public License v2
525 -
526 -EAPI=7
527 -
528 -PYTHON_COMPAT=( python3_{7,8,9} )
529 -
530 -inherit flag-o-matic multiprocessing python-any-r1 rust-toolchain toolchain-funcs
531 -
532 -DESCRIPTION="Rust standard library, standalone (for crossdev)"
533 -HOMEPAGE="https://www.rust-lang.org"
534 -SRC_URI="https://static.rust-lang.org/dist/rustc-${PV}-src.tar.xz"
535 -
536 -LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
537 -SLOT="stable/$(ver_cut 1-2)"
538 -# please do not keyword
539 -#KEYWORDS="" #nowarn
540 -IUSE="debug"
541 -
542 -BDEPEND="
543 - ${PYTHON_DEPS}
544 - ~dev-lang/rust-${PV}:=
545 -"
546 -
547 -DEPEND="||
548 - (
549 - >="${CATEGORY}"/gcc-4.7:*
550 - >="${CATEGORY}"/clang-3.5:*
551 - )
552 -"
553 -
554 -RDEPEND="${DEPEND}"
555 -
556 -# need full compiler to run tests
557 -RESTRICT="test"
558 -
559 -QA_FLAGS_IGNORED="usr/lib/rust/${PV}/rustlib/.*/lib/lib.*.so"
560 -
561 -S="${WORKDIR}/${P/-std/c}-src"
562 -
563 -#
564 -# The cross magic
565 -#
566 -export CTARGET=${CTARGET:-${CHOST}}
567 -if [[ ${CTARGET} == ${CHOST} ]] ; then
568 - if [[ ${CATEGORY} == cross-* ]] ; then
569 - export CTARGET=${CATEGORY#cross-}
570 - fi
571 -fi
572 -
573 -is_cross() {
574 - [[ ${CHOST} != ${CTARGET} ]]
575 -}
576 -
577 -toml_usex() {
578 - usex "$1" true false
579 -}
580 -
581 -pkg_pretend() {
582 - is_cross || die "${PN} should only be used for cross"
583 -}
584 -
585 -pkg_setup() {
586 - python-any-r1_pkg_setup
587 -}
588 -
589 -src_prepare() {
590 - default
591 -}
592 -
593 -src_configure() {
594 - # do the great cleanup
595 - strip-flags
596 - filter-flags '-mcpu=*' '-march=*' '-mtune=*' '-m32' '-m64'
597 - strip-unsupported-flags
598 -
599 - local rust_root x
600 - rust_root="$(rustc --print sysroot)"
601 - rtarget="$(rust_abi ${CTARGET})"
602 - rtarget="${ERUST_STD_RTARGET:-${rtarget}}" # some targets need to be custom.
603 - rbuild="$(rust_abi ${CBUILD})"
604 - rhost="$(rust_abi ${CHOST})"
605 -
606 - echo
607 - for x in CATEGORY rust_root rbuild rhost rtarget RUSTFLAGS CFLAGS CXXFLAGS LDFLAGS; do
608 - einfo "$(printf '%10s' ${x^^}:) ${!x}"
609 - done
610 -
611 - cat <<- EOF > "${S}"/config.toml
612 - [build]
613 - build = "${rbuild}"
614 - host = ["${rhost}"]
615 - target = ["${rtarget}"]
616 - cargo = "${rust_root}/bin/cargo"
617 - rustc = "${rust_root}/bin/rustc"
618 - submodules = false
619 - python = "${EPYTHON}"
620 - locked-deps = true
621 - vendor = true
622 - extended = true
623 - verbose = 2
624 - cargo-native-static = false
625 - [install]
626 - prefix = "${EPREFIX}/usr/lib/${PN}/${PV}"
627 - sysconfdir = "etc"
628 - docdir = "share/doc/rust"
629 - bindir = "bin"
630 - libdir = "lib"
631 - mandir = "share/man"
632 - [rust]
633 - # https://github.com/rust-lang/rust/issues/54872
634 - codegen-units-std = 1
635 - optimize = true
636 - debug = $(toml_usex debug)
637 - debug-assertions = $(toml_usex debug)
638 - debuginfo-level-rustc = 0
639 - backtrace = true
640 - incremental = false
641 - default-linker = "$(tc-getCC)"
642 - rpath = false
643 - dist-src = false
644 - remap-debuginfo = true
645 - jemalloc = false
646 - [dist]
647 - src-tarball = false
648 - [target.${rtarget}]
649 - cc = "$(tc-getCC ${CTARGET})"
650 - cxx = "$(tc-getCXX ${CTARGET})"
651 - linker = "$(tc-getCC ${CTARGET})"
652 - ar = "$(tc-getAR ${CTARGET})"
653 - $(usex elibc_musl 'crt-static = false' '')
654 - EOF
655 -
656 - einfo "${PN^} configured with the following settings:"
657 - cat "${S}"/config.toml || die
658 -}
659 -
660 -src_compile() {
661 - env RUST_BACKTRACE=1 \
662 - "${EPYTHON}" ./x.py build -vv --config="${S}"/config.toml -j$(makeopts_jobs) \
663 - library/std --stage 0 || die
664 -}
665 -
666 -src_test() {
667 - ewarn "${PN} can't run tests"
668 -}
669 -
670 -src_install() {
671 - local rustlib="lib/rust/${PV}/lib/rustlib"
672 - dodir "/usr/${rustlib}"
673 - pushd "build/${rhost}/stage0-sysroot/lib/rustlib" > /dev/null || die
674 - cp -pPRv "${rtarget}" "${ED}/usr/${rustlib}" || die
675 - popd > /dev/null || die
676 -}
677
678 diff --git a/sys-devel/rust-std/rust-std-1.58.0.ebuild b/sys-devel/rust-std/rust-std-1.58.0.ebuild
679 deleted file mode 100644
680 index b3528f3325e7..000000000000
681 --- a/sys-devel/rust-std/rust-std-1.58.0.ebuild
682 +++ /dev/null
683 @@ -1,155 +0,0 @@
684 -# Copyright 2020-2022 Gentoo Authors
685 -# Distributed under the terms of the GNU General Public License v2
686 -
687 -EAPI=8
688 -
689 -PYTHON_COMPAT=( python3_{8..10} )
690 -
691 -inherit flag-o-matic multiprocessing python-any-r1 rust-toolchain toolchain-funcs
692 -
693 -DESCRIPTION="Rust standard library, standalone (for crossdev)"
694 -HOMEPAGE="https://www.rust-lang.org"
695 -SRC_URI="https://static.rust-lang.org/dist/rustc-${PV}-src.tar.xz"
696 -
697 -LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
698 -SLOT="stable/$(ver_cut 1-2)"
699 -# please do not keyword
700 -#KEYWORDS="" #nowarn
701 -IUSE="debug"
702 -
703 -BDEPEND="
704 - ${PYTHON_DEPS}
705 - ~dev-lang/rust-${PV}:=
706 -"
707 -
708 -DEPEND="||
709 - (
710 - >="${CATEGORY}"/gcc-4.7:*
711 - >="${CATEGORY}"/clang-3.5:*
712 - )
713 -"
714 -
715 -RDEPEND="${DEPEND}"
716 -
717 -# need full compiler to run tests
718 -RESTRICT="test"
719 -
720 -QA_FLAGS_IGNORED="usr/lib/rust/${PV}/rustlib/.*/lib/lib.*.so"
721 -
722 -S="${WORKDIR}/${P/-std/c}-src"
723 -
724 -#
725 -# The cross magic
726 -#
727 -export CTARGET=${CTARGET:-${CHOST}}
728 -if [[ ${CTARGET} == ${CHOST} ]] ; then
729 - if [[ ${CATEGORY} == cross-* ]] ; then
730 - export CTARGET=${CATEGORY#cross-}
731 - fi
732 -fi
733 -
734 -is_cross() {
735 - [[ ${CHOST} != ${CTARGET} ]]
736 -}
737 -
738 -toml_usex() {
739 - usex "$1" true false
740 -}
741 -
742 -pkg_pretend() {
743 - is_cross || die "${PN} should only be used for cross"
744 -}
745 -
746 -pkg_setup() {
747 - python-any-r1_pkg_setup
748 -}
749 -
750 -src_prepare() {
751 - default
752 -}
753 -
754 -src_configure() {
755 - # do the great cleanup
756 - strip-flags
757 - filter-flags '-mcpu=*' '-march=*' '-mtune=*' '-m32' '-m64'
758 - strip-unsupported-flags
759 -
760 - local rust_root x
761 - rust_root="$(rustc --print sysroot)"
762 - rtarget="$(rust_abi ${CTARGET})"
763 - rtarget="${ERUST_STD_RTARGET:-${rtarget}}" # some targets need to be custom.
764 - rbuild="$(rust_abi ${CBUILD})"
765 - rhost="$(rust_abi ${CHOST})"
766 -
767 - echo
768 - for x in CATEGORY rust_root rbuild rhost rtarget RUSTFLAGS CFLAGS CXXFLAGS LDFLAGS; do
769 - einfo "$(printf '%10s' ${x^^}:) ${!x}"
770 - done
771 -
772 - cat <<- EOF > "${S}"/config.toml
773 - [build]
774 - build = "${rbuild}"
775 - host = ["${rhost}"]
776 - target = ["${rtarget}"]
777 - cargo = "${rust_root}/bin/cargo"
778 - rustc = "${rust_root}/bin/rustc"
779 - submodules = false
780 - python = "${EPYTHON}"
781 - locked-deps = true
782 - vendor = true
783 - extended = true
784 - verbose = 2
785 - cargo-native-static = false
786 - [install]
787 - prefix = "${EPREFIX}/usr/lib/${PN}/${PV}"
788 - sysconfdir = "etc"
789 - docdir = "share/doc/rust"
790 - bindir = "bin"
791 - libdir = "lib"
792 - mandir = "share/man"
793 - [rust]
794 - # https://github.com/rust-lang/rust/issues/54872
795 - codegen-units-std = 1
796 - optimize = true
797 - debug = $(toml_usex debug)
798 - debug-assertions = $(toml_usex debug)
799 - debuginfo-level-rustc = 0
800 - backtrace = true
801 - incremental = false
802 - default-linker = "$(tc-getCC)"
803 - rpath = false
804 - dist-src = false
805 - remap-debuginfo = true
806 - jemalloc = false
807 - [dist]
808 - src-tarball = false
809 - [target.${rtarget}]
810 - ar = "$(tc-getAR ${CTARGET})"
811 - cc = "$(tc-getCC ${CTARGET})"
812 - cxx = "$(tc-getCXX ${CTARGET})"
813 - linker = "$(tc-getCC ${CTARGET})"
814 - ranlib = "$(tc-getRANLIB ${CTARGET})"
815 - $(usev elibc_musl 'crt-static = false')
816 - EOF
817 -
818 - einfo "${PN^} configured with the following settings:"
819 - cat "${S}"/config.toml || die
820 -}
821 -
822 -src_compile() {
823 - env RUST_BACKTRACE=1 \
824 - "${EPYTHON}" ./x.py build -vv --config="${S}"/config.toml -j$(makeopts_jobs) \
825 - library/std --stage 0 || die
826 -}
827 -
828 -src_test() {
829 - ewarn "${PN} can't run tests"
830 -}
831 -
832 -src_install() {
833 - local rustlib="lib/rust/${PV}/lib/rustlib"
834 - dodir "/usr/${rustlib}"
835 - pushd "build/${rhost}/stage0-sysroot/lib/rustlib" > /dev/null || die
836 - cp -pPRv "${rtarget}" "${ED}/usr/${rustlib}" || die
837 - popd > /dev/null || die
838 -}