Repository navigation
release: 2026.11.17.2 -- a home reached by another name is the home it was created as - #720
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The defect
A home may be reached by a name other than its own: a symbolic link to it. What a run writes for later then went through that name. Measured in mcpp#949 (2026-11-17), on a CI runner with no cache:
registrywas a symbolic link to the shared home installed LLVM through it;abi.gen/3/... -> /tmp/mcpp-e2e-home-51d01a15/registry/data/xpkgs/xim-x-glibc/...), and clang's interpreter named it too;No such file or directory) until another install rewrote the generation; clang's interpreter stayed dangling.The same holds for a user who reaches one home through a link and later removes the link.
The rule
A home has one name: the path it was created at (
created_atin.xlings-home), while that path still names the directory.home_identity::own_nameanswers it;Configuses it for the home of the run andabi::refreshfor the links of a generation. A home that was moved or copied has the name it is reached by.Compared on a new home with a link to it, installing
xim:zlibthrough the link and removing the link:libz.so.1Tests
tests/unit/test_home_own_name.cpp(requirementHOME-OWN-NAME): the rule (a link, a copy, a move, no marker); a runtime generation made through another name outlives it and is not made twice; a command given another name reports the home by its own.Documents
docs/06-self-management.mdand its zh mirror, "Choosing the home".Version 2026.11.17.2.