You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
make; sudo make install leaves files owned by root #13190
It's best to run make install as non-root with DESTDIR and then install that globally - ideally with a package manager, but with cp -a if you must. This issue can be fixed, but the Makefile is a scary beast and this issue will keep coming back. I wouldn't trust it to be run as root, since one typo is enough to wipe the system out.
There are embedded runpaths but the ones that will be incorrect with this intermediate step are still incorrect without it. I recommend compiling with ./configure --disable-rpath if you want to install globally, as they're not required unless you're running out of the build directory. A rustc compiled with --disable-rpath will still use runpaths for the binaries it compiles, so it won't break anything.
Activity
thestinger commentedon Mar 29, 2014
It's best to run
make installas non-root with DESTDIR and then install that globally - ideally with a package manager, but withcp -aif you must. This issue can be fixed, but theMakefileis a scary beast and this issue will keep coming back. I wouldn't trust it to be run as root, since one typo is enough to wipe the system out.MrMEEE/bumblebee-Old-and-abbandoned@a047be8
tedhorst commentedon Mar 29, 2014
Yes, that would be much safer. Will there be any issues with embedded paths?
thestinger commentedon Mar 29, 2014
There are embedded runpaths but the ones that will be incorrect with this intermediate step are still incorrect without it. I recommend compiling with
./configure --disable-rpathif you want to install globally, as they're not required unless you're running out of the build directory. Arustccompiled with--disable-rpathwill still use runpaths for the binaries it compiles, so it won't break anything.mk: Don't touch config.tmp or tmp/dist as root. Closes rust-lang#13190