Skip to content

release: 2026.11.17.2 -- a home reached by another name is the home it was created as - #720

Merged
Sunrisepeak merged 1 commit into
mainfrom
fix/home-own-name
Nov 17, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
fix/home-own-name

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

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:

  • a test home whose registry was a symbolic link to the shared home installed LLVM through it;
  • the shared home's runtime generation was rewritten with 52 links through the test home's path (abi.gen/3/... -> /tmp/mcpp-e2e-home-51d01a15/registry/data/xpkgs/xim-x-glibc/...), and clang's interpreter named it too;
  • the test home was removed, the 52 links dangled, and no compiler of the shared home started (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_at in .xlings-home), while that path still names the directory. home_identity::own_name answers it; Config uses it for the home of the run and abi::refresh for 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:zlib through the link and removing the link:

runtime link target RUNPATH of libz.so.1 after the link is removed
2026.11.17.1 through the link through the link dangling
this change the home's own path the home's own path reached

Tests

tests/unit/test_home_own_name.cpp (requirement HOME-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.md and its zh mirror, "Choosing the home".

Version 2026.11.17.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant