summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2019-12-06 11:51:34 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-12-06 12:04:00 -0800
commit2ee4123a38e4a84f0f74530054477b4336b1fcb0 (patch)
treed42450993678e62903853b8e7aba18f73276881d /eclass/cargo.eclass
parentprofiles/*/package.use.mask: enable USE=parse-clocks on more arches (diff)
downloadgentoo-2ee4123a38e4a84f0f74530054477b4336b1fcb0.tar.gz
gentoo-2ee4123a38e4a84f0f74530054477b4336b1fcb0.tar.bz2
gentoo-2ee4123a38e4a84f0f74530054477b4336b1fcb0.zip
cargo.eclass: fix cargo_src_install() on prefix
Closes: https://bugs.gentoo.org/702168 Closes: https://bugs.gentoo.org/702042 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'eclass/cargo.eclass')
-rw-r--r--eclass/cargo.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 44d11cdb8380..5b6d1f050f17 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -156,9 +156,9 @@ cargo_src_compile() {
cargo_src_install() {
debug-print-function ${FUNCNAME} "$@"
- cargo install -j $(makeopts_jobs) --root="${D}/usr" $(usex debug --debug "") "$@" \
+ cargo install -j $(makeopts_jobs) --root="${ED}/usr" $(usex debug --debug "") "$@" \
|| die "cargo install failed"
- rm -f "${D}/usr/.crates.toml"
+ rm -f "${ED}/usr/.crates.toml"
[ -d "${S}/man" ] && doman "${S}/man" || return 0
}