Skip to content

What is the purpose of sysconfdir in rust installation? #130270

@alitariq4589

Description

@alitariq4589

I am trying to build rust master branch from source on RISC-V architecture. On, execution of ./x.py install, I get the following error:

Building bootstrap
   Compiling bootstrap v0.0.0 (/home/user/Downloads/rust-1.81.0/rust/rust/src/bootstrap)
    Finished `dev` profile [unoptimized] target(s) in 36.42s
WARNING: The `change-id` is missing in the `config.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations.
NOTE: to silence this warning, add `change-id = 129473` at the top of `config.toml`
warning: unable to check if origin/master is old due to error: No such file or directory (os error 2)
warning: origin/master is used to determine if files have been modified
warning: if it is not updated, this may cause files to be needlessly reformatted
DESTDIR is set to: "/etc"
thread 'main' panicked at src/core/build_steps/install.rs:92:9:
User doesn't have write access on `install.sysconfdir` path in `config.toml`.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Build completed unsuccessfully in 0:00:39

The sysconfdir is set to /etc and why does it require the write access? This kills the whole purpose of building from source (i.e. building in specific user space)

Metadata

Metadata

Assignees

No one assigned

    Labels

    D-confusingDiagnostics: Confusing error or lint that should be reworked.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions