Gentoo Archives: gentoo-dev

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-dev@l.g.o
Cc: Georgy Yakovlev <gyakovlev@g.o>
Subject: [gentoo-dev] [PATCH 2/7] cargo.eclass: pass --no-track to cargo install
Date: Thu, 09 Feb 2023 20:49:51
Message-Id: 20230209204847.3270114-3-gyakovlev@gentoo.org
In Reply to: [gentoo-dev] cargo.eclass improvements by Georgy Yakovlev
1 and drop file removal hack.
2 with --no-track those files are never created.
3
4 Signed-off-by: Georgy Yakovlev <gyakovlev@g.o>
5 ---
6 eclass/cargo.eclass | 4 +---
7 1 file changed, 1 insertion(+), 3 deletions(-)
8
9 diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
10 index d37293ada136..1a8d665fdad2 100644
11 --- a/eclass/cargo.eclass
12 +++ b/eclass/cargo.eclass
13 @@ -516,6 +516,7 @@ cargo_src_install() {
14 die "FATAL: please call cargo_gen_config before using ${FUNCNAME}"
15
16 set -- cargo install $(has --path ${@} || echo --path ./) \
17 + --no-track \
18 --root "${ED}/usr" \
19 ${GIT_CRATES[@]:+--frozen} \
20 $(usex debug --debug "") \
21 @@ -523,9 +524,6 @@ cargo_src_install() {
22 einfo "${@}"
23 "${@}" || die "cargo install failed"
24
25 - rm -f "${ED}/usr/.crates.toml" || die
26 - rm -f "${ED}/usr/.crates2.json" || die
27 -
28 # it turned out to be non-standard dir, so get rid of it future EAPI
29 # and only run for EAPI=7
30 # https://bugs.gentoo.org/715890
31 --
32 2.39.1