Skip to content

Meson re-builds with system rustc on sudo ninja install #14416

Open
@gfxstrand

Description

@gfxstrand

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

  1. Install rust via rustup
  2. Clone Mesa
  3. Configure with -Dvulkan-drivers=nouveau
  4. ninja -C _build
  5. sudo ninja -C _build install

Expected behavior
The install shouldn't build anything and should just install

Actual behavior
Something goes searching for rustc, finds the one in /usr/bin, detects that it's different, and tries to re-build some of the rust components. This has two ill effects:

  1. Your build directory has now been touched by root and you have to chown -R the whole thing if you want to touch it as a regular user again
  2. The Rust build fails because the system rustc is not the same as the one you installed via rustup which is what the first build used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-infowaiting information from user. May close if no response for long time.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions