bootstrap: sanity check install prefix and sysconfdir #113580
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
In the followup discussion on #110906, we discovered that their original problem was because they had chosen a path under their home directory for
[install] prefix
, but they had not changed the defaultsysconfdir = "/etc"
. So most things installed fine, but they didn't have permission to write/etc/bash_completion.d/cargo
.Bootstrap could sanity check this when starting an install, seeing that
prefix
is writable by the current user but the absolutesysconfdir
is not. (A relativesysconfdir
goes underprefix
, which should be fine.) This should also takeDESTDIR
into account as a further prefix on all installation paths.The text was updated successfully, but these errors were encountered: