Lines 18-24
Link Here
|
18 |
SLOT="stable/${ABI_VER}" |
18 |
SLOT="stable/${ABI_VER}" |
19 |
MY_P="rustc-${PV}" |
19 |
MY_P="rustc-${PV}" |
20 |
SRC="${MY_P}-src.tar.xz" |
20 |
SRC="${MY_P}-src.tar.xz" |
21 |
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
21 |
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~x86" |
22 |
fi |
22 |
fi |
23 |
|
23 |
|
24 |
RUST_STAGE0_VERSION="1.$(($(ver_cut 2) - 1)).1" |
24 |
RUST_STAGE0_VERSION="1.$(($(ver_cut 2) - 1)).1" |
Lines 322-327
Link Here
|
322 |
|
322 |
|
323 |
dodoc COPYRIGHT |
323 |
dodoc COPYRIGHT |
324 |
|
324 |
|
|
|
325 |
cat <<-EOF > "${T}"/50${P} |
326 |
RUST_SRC_PATH="/usr/lib/rustlib/src/rust/src/" |
327 |
CARGO_TARGET_DIR_PREFIX="/tmp/rust-build-artifacts/" |
328 |
EOF |
329 |
doenvd "${T}"/50${P} |
330 |
|
331 |
# We want gdb to automatically find the correct Rust sources |
332 |
# (as installed by this ebuild). Note that automatical sourcing of |
333 |
# this file requires a patched gdb. |
334 |
# TODO: We should be able to use rust-gdb's |
335 |
# GDB_PYTHON_MODULE_DIRECTORY instead! It's cleaner and does |
336 |
# not rely on a patched gdb. |
337 |
cat <<-EOF > "${T}/rust.gdb" |
338 |
set substitute-path ${S}/src/ /usr/lib/rustlib/src/rust/src/ |
339 |
EOF |
340 |
insinto /usr/share/gdb/ |
341 |
doins "${T}/rust.gdb" |
342 |
|
325 |
# note: eselect-rust adds EROOT to all paths below |
343 |
# note: eselect-rust adds EROOT to all paths below |
326 |
cat <<-EOF > "${T}/provider-${P}" |
344 |
cat <<-EOF > "${T}/provider-${P}" |
327 |
/usr/bin/rustdoc |
345 |
/usr/bin/rustdoc |
Lines 376-381
Link Here
|
376 |
ewarn "error: cannot produce proc-macro for serde_derive v1.0.98 as the target " |
394 |
ewarn "error: cannot produce proc-macro for serde_derive v1.0.98 as the target " |
377 |
ewarn "x86_64-unknown-linux-musl does not support these crate types" |
395 |
ewarn "x86_64-unknown-linux-musl does not support these crate types" |
378 |
fi |
396 |
fi |
|
|
397 |
|
398 |
elog |
399 |
elog "In order for CARGO_TARGET_DIR_PREFIX to be set properly, please run" |
400 |
elog "env-update && source /etc/profile" |
401 |
elog |
379 |
} |
402 |
} |
380 |
|
403 |
|
381 |
pkg_postrm() { |
404 |
pkg_postrm() { |