From a9f748e0a05d3b56b7a93548fe3f2fed9fd14e1e Mon Sep 17 00:00:00 2001 From: mid-kid Date: Thu, 29 Feb 2024 18:46:52 +0100 Subject: [PATCH] rust: Fix install_gentoo instructions --- rust/install_gentoo.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/install_gentoo.txt b/rust/install_gentoo.txt index 7f0d9bf..c428e17 100644 --- a/rust/install_gentoo.txt +++ b/rust/install_gentoo.txt @@ -2,7 +2,8 @@ ver= sudo rsync -rvP build/install-rustc-$ver/ /opt/rust-bin-$ver sudo emerge -1 app-eselect/eselect-rust -sudo ln -s /opt/rust-bin-$ver/bin/rustc /usr/bin/rustc-bin-$ver +sudo cp /opt/rust-bin-$ver/bin/rustc /opt/rust-bin-$ver/bin/rustc-bin-$ver +sudo ln -s /opt/rust-bin-$ver/bin/rustc-bin-$ver /usr/bin/rustc-bin-$ver sudo mkdir -p /etc/env.d/rust sudo touch /etc/env.d/rust/provider-rust-bin-$ver sudo eselect rust set rust-bin-$ver @@ -10,7 +11,6 @@ sudo mkdir -p /var/db/pkg/dev-lang/rust-bin-$ver echo 0 | sudo tee /var/db/pkg/dev-lang/rust-bin-$ver/SLOT > /dev/null sudo emerge dev-lang/rust -(might need to set CC=clang and CXX=clang++ for initial build...) sudo rm -rf /opt/rust-bin-$ver /usr/bin/rustc-bin-$ver sudo rm -rf /etc/env.d/rust/provider-rust-bin-$ver