commit:     e8c57984feff807b2020f6f17f69190b9b80b332
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 18 09:11:37 2021 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Fri Jun 18 09:14:04 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8c57984

dev-lang/rust: omit dist target in src_compile

it generates tarballs for all components and take
considerable time and disk space. Disabling this
should reduce disk space requrements.

Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 dev-lang/rust/rust-1.53.0.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-lang/rust/rust-1.53.0.ebuild b/dev-lang/rust/rust-1.53.0.ebuild
index c48d00bb2a6..cb50814975f 100644
--- a/dev-lang/rust/rust-1.53.0.ebuild
+++ b/dev-lang/rust/rust-1.53.0.ebuild
@@ -294,6 +294,7 @@ src_configure() {
        rust_target="$(rust_abi)"
 
        cat <<- _EOF_ > "${S}"/config.toml
+               changelog-seen = 2
                [llvm]
                download-ci-llvm = false
                optimize = $(toml_usex !debug)
@@ -499,7 +500,8 @@ src_compile() {
        (
        IFS=$'\n'
        env $(cat "${S}"/config.env) RUST_BACKTRACE=1\
-               "${EPYTHON}" ./x.py dist -vv --config="${S}"/config.toml 
-j$(makeopts_jobs) || die
+               "${EPYTHON}" ./x.py build --stage 2 \
+                       -vv --config="${S}"/config.toml -j$(makeopts_jobs) || 
die
        )
 }
 
@@ -563,7 +565,8 @@ src_install() {
        (
        IFS=$'\n'
        env $(cat "${S}"/config.env) DESTDIR="${D}" \
-               "${EPYTHON}" ./x.py install -vv --config="${S}"/config.toml 
-j$(makeopts_jobs) || die
+               "${EPYTHON}" ./x.py install --keep-stage 2 \
+                       -vv --config="${S}"/config.toml -j$(makeopts_jobs) || 
die
        )
 
        # bug #689562, #689160

Reply via email to