Skip to content

Install bootstrap fails to use configured prefix due to Tarball add_renamed_file #111653

Closed
@okeuday

Description

@okeuday

I tried this code, due to installing from source:

tarball.add_renamed_file(etc.join("cargo.bashcomp.sh"), "etc/bash_completion.d", "cargo");

with the installation commands:

./configure --prefix=/path/to/installation/using/a/non/root/user/rust-1.69.0 --enable-extended
python3 ./x.py build
python3 ./x.py install

I expected to see the installation succeed.

Instead, the installation failed when processing the cargo installation. Only the cargo installation uses the Tarball add_renamed_file function, so the problem appears isolated to that single function call, due to the implementation of add_renamed_file.

Meta

rustc --version --verbose:

rustc 1.69.0-dev (84c898d65 2023-04-16) (built from a source tarball)
binary: rustc
commit-hash: 84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc
commit-date: 2023-04-16
host: x86_64-unknown-linux-gnu
release: 1.69.0-dev
LLVM version: 15.0.7
Backtrace

The output only describes the installation failing with only cargo installed.  I didn't save the output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.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