-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Nightly installation fails for non-root user #42102
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@mattgodbolt |
@crumblingstatue - I'm not installing via source here (I don't think?). I'm running CE installs to a shared NFS drive that all the various instances all mount. If |
Sorry, I misunderstood.
Interesting. I'm not really knowledgeable on rustup and environments like this.
|
Probably related to |
@crumblingstatue rustup doesn't use @mattgodbolt you can use |
Or more precisely, rust-lang/rust-installer#59 defines cc @Keruspe |
Actually, I think it should use
|
When using x.py it respects DESTDIR just like all the others (libdir, bindir, etc). |
|
@Keruspe I think it should just be like this to be prefixed by default: diff --git a/install-template.sh b/install-template.sh
index 02070c35dcd4..fc8aa7985256 100644
--- a/install-template.sh
+++ b/install-template.sh
@@ -866,7 +866,7 @@ fi
valopt without "" "comma-separated list of components to not install"
valopt components "" "comma-separated list of components to install"
flag list-components "list available components"
-valopt sysconfdir "/etc" "install system configuration files"
+valopt sysconfdir "$CFG_DESTDIR_PREFIX/etc" "install system configuration files"
valopt bindir "$CFG_DESTDIR_PREFIX/bin" "install binaries"
valopt libdir "$CFG_DESTDIR_PREFIX/lib" "install libraries"
valopt mandir "$CFG_DESTDIR_PREFIX/share/man" "install man pages in PATH" (i.e. don't assume that we really want the global |
See rust-lang/rust-installer#64 |
update rust-installer This fixes the default value for sysconfdir Closes #42102 Closes rust-lang/cargo#4070
The nightly builds are currrently failing as the cargo install as part of the nightly want to unconditionally place stuff in
/etc
:the log file above says:
The text was updated successfully, but these errors were encountered: