Code: Select all
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shIs it possible to somehow tell Portage that the rust package already is installed so that other things that depends on Rust package can be installed?

Code: Select all
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shIs it possible to somehow tell Portage that the rust package already is installed so that other things that depends on Rust package can be installed?
Code: Select all
/etc/portage/profile/package.providedOops... Never download anything from the internet and execute it without looking at it... Especially not as root... That's the road to hell!Code: Select all
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Indeed. From a purely academic standpoint, I wonder what OP installed with that command. Since he didn't save the text of what was fed to sh, nor run sh with -x, we'll never really know what commands were executed. At best, we can hope that he got a complete copy of whatever that host is serving today, and that such copy is safe. This is why curlpipesh is always the wrong solution, no matter what problem is under discussion. If it had been served with an emulation of something like subresource integrity, there would be a a bit of a trail. For example (not working, since the server doesn't support this, but in principle it could):mike155 wrote:Oops... Never download anything from the internet and execute it without looking at it... Especially not as root... That's the road to hell!EliasJonsson wrote:Code: Select all
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Code: Select all
(expected_sha256sum=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ; set -euo pipefail; local_install_script="$(mktemp --tmpdir curlpipesh-rustup.sh.XXXXXX)"; curl --proto '=https' --tlsv1.2 --silent --show-error --fail https://sh.rustup.rs/curlpipesh/$expected_sha256sum/install.sh -o "$local_install_script"; printf '%s /dev/fd/3\n' "$expected_sha256sum" | sha256sum --quiet --strict --check - 3< "$local_install_script"; /bin/sh < "$local_install_script"; rm "$local_install_script")Code: Select all
0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001