dev-lang/rust: restore old behaviour for betas

In 1ed80ee338b1a315a8f31dca05b004d39cf2fb10, I changed from PV->RUST_PV
but in doing so, I changed the behaviour for betas. Restore that.

Fixes: 1ed80ee338b1a315a8f31dca05b004d39cf2fb10
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-12-18 03:25:16 +00:00
parent 4d4517bfa6
commit e32fcad724
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 2 additions and 2 deletions

View File

@ -782,7 +782,7 @@ src_install() {
# we need realpath on /usr/bin/* symlink return version-appended binary path.
# so /usr/bin/rustc should point to /usr/lib/rust/<ver>/bin/rustc-<ver>
# need to fix eselect-rust to remove this hack.
local ver_i="${i}-${RUST_PV}"
local ver_i="${i}-${RUST_PV%%_*}"
if [[ -f "${ED}/usr/lib/${PN}/${SLOT}/bin/${i}" ]]; then
einfo "Installing ${i} symlink"
ln -v "${ED}/usr/lib/${PN}/${SLOT}/bin/${i}" "${ED}/usr/lib/${PN}/${SLOT}/bin/${ver_i}" || die

View File

@ -782,7 +782,7 @@ src_install() {
# we need realpath on /usr/bin/* symlink return version-appended binary path.
# so /usr/bin/rustc should point to /usr/lib/rust/<ver>/bin/rustc-<ver>
# need to fix eselect-rust to remove this hack.
local ver_i="${i}-${RUST_PV}"
local ver_i="${i}-${RUST_PV%%_*}"
if [[ -f "${ED}/usr/lib/${PN}/${SLOT}/bin/${i}" ]]; then
einfo "Installing ${i} symlink"
ln -v "${ED}/usr/lib/${PN}/${SLOT}/bin/${i}" "${ED}/usr/lib/${PN}/${SLOT}/bin/${ver_i}" || die