Skip to content

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

Closed

Description

@tedhorst

running:
make
make check
sudo make install

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

owned by root in the build directory.

Activity

  1. thestinger commented on Mar 29, 2014

    @thestinger
    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

  2. self-assigned this
    on Mar 29, 2014
  3. tedhorst commented on Mar 29, 2014

    @tedhorst
    ContributorAuthor

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

  4. thestinger commented on Mar 29, 2014

    @thestinger
    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.

  5. added a commit that references this issue on Mar 31, 2014
    cfb52a5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions