Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make; sudo make install leaves files owned by root #13190

Closed
tedhorst opened this issue Mar 29, 2014 · 3 comments
Closed

make; sudo make install leaves files owned by root #13190

tedhorst opened this issue Mar 29, 2014 · 3 comments
Assignees

Comments

@tedhorst
Copy link
Contributor

running:
make
make check
sudo make install

leaves:
./config.tmp
./tmp/dist

owned by root in the build directory.

@thestinger
Copy link
Contributor

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.

MrMEEE/bumblebee-Old-and-abbandoned@a047be8

@brson brson self-assigned this Mar 29, 2014
@tedhorst
Copy link
Contributor Author

Yes, that would be much safer. Will there be any issues with embedded paths?

@thestinger
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants