mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
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:
parent
4d4517bfa6
commit
e32fcad724
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user