summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-12-22 19:40:11 +0000
committerSam James <sam@gentoo.org>2024-12-22 19:40:59 +0000
commit438a09957f5e4d6885fee7982814b2071282e861 (patch)
tree7a2314395398340e49fdc6dc6ac11d7ad1785e4a /eclass
parentx11-misc/xvfb-run: 21.1.15.2 (diff)
downloadgentoo-438a09957f5e4d6885fee7982814b2071282e861.tar.gz
gentoo-438a09957f5e4d6885fee7982814b2071282e861.tar.bz2
gentoo-438a09957f5e4d6885fee7982814b2071282e861.zip
rust.eclass: update get_rust_path for recent change
Speculative fix based on description in bug. Closes: https://bugs.gentoo.org/946824 Fixes: d393753de4be9164251344e887e97adfcc0f0bce Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/rust.eclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/eclass/rust.eclass b/eclass/rust.eclass
index a7199f984af8..30b6468d2a9b 100644
--- a/eclass/rust.eclass
+++ b/eclass/rust.eclass
@@ -471,9 +471,8 @@ get_rust_prefix() {
local prefix=${BROOT}
[[ ${1} == -d ]] && prefix=${ESYSROOT}
- local slot rust_type
- read -r slot rust_type <<< $(_get_rust_slot "$@")
- get_rust_path "${prefix}" "${slot}" "${rust_type}"
+ _get_rust_slot "$@"
+ get_rust_path "${prefix}" "${RUST_SLOT}" "${RUST_TYPE}"
}
# @FUNCTION: rust_prepend_path