rust-lang-deprecated/rustup.sh

Is using patchelf reasonable for non-sudo installs?

nugend opened this issue · 0 comments

Patchelf is a project from Nix which modifies the rpath of shared objects and executable binaries to include a static modification of the runtime load path for shared objects. Nix uses this to a great extent to allow for multiple non-conflicting versions of packages to be installed on a single system.

Using patchelf to modify the rust binaries and libraries to set each file's rpath to the $PREFIX/lib location seems to work seamlessly for making rust work with non-sudo installs.

Is anyone aware of an issue with this?

Would it be reasonable to add a flag that checks if patchelf is available and automatically takes care of running it when --prefix has been set?