LATU: add a generic dual-translator status manager - #369
Merged
LaurenIsACoder merged 3 commits intoAug 4, 2026
Merged
Conversation
LaurenIsACoder
force-pushed
the
lauren/latu-runtime-foundation
branch
from
August 3, 2026 08:24
7387c5c to
a3b6e60
Compare
LaurenIsACoder
force-pushed
the
lauren/latu-runtime-foundation
branch
from
August 4, 2026 05:13
a3b6e60 to
6e4f097
Compare
LaurenIsACoder
force-pushed
the
lauren/latu-runtime-foundation
branch
from
August 4, 2026 05:19
6e4f097 to
00bbd84
Compare
Signed-off-by: Hanlu Li <heuleehanlu@gmail.com>
LaurenIsACoder
force-pushed
the
lauren/latu-runtime-foundation
branch
from
August 4, 2026 05:24
00bbd84 to
fe8189f
Compare
Signed-off-by: Hanlu Li <heuleehanlu@gmail.com>
LaurenIsACoder
force-pushed
the
lauren/latu-runtime-foundation
branch
from
August 4, 2026 05:45
fe8189f to
a27c131
Compare
Signed-off-by: Hanlu Li <heuleehanlu@gmail.com>
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.
Summary
latu-runtime-managercommand; no overlappinglatuwrapper is installedlatx-x86_64andlatx-i386separately through a stable, distribution-neutral status contractBehavior
Each value is
present,missing, orunknown.unknownmeans the selected translator path could not be inspected safely, such as a root escape.statusexits successfully when either translator is absent or unknown because those are query results, not command failures. Invalid arguments or an invalid--rootreturn status 2.--root ROOTexists for inspecting a filesystem tree and tests; normal host use does not require it.In normal host mode, the manager resolves its own final symlink before probing sibling translators, so invocation through
/usr/local/binor an alternatives-style link still inspects the actual installation directory. A translator symlink ispresentwhen its resolved target is a regular executable file.In
--rootmode, translator symlinks are followed only when their resolved targets remain inside the selected root. A symlink that escapes the root or cannot be resolved safely is reported asunknown, notmissingorpresent.The implementation does not read
os-release, branch onIDorID_LIKE, contain a distribution allowlist, or infer runtime readiness from translator presence. Distribution names occur only in the existing CI image matrix, where they identify test environments.Series
PR1 and PR2 can be reviewed and merged in either order. PR3 is now published as a draft for early review; it should not be merged until both foundations are accepted.
Commit structure
runtime: report both LATX translators— command contract and focused source-tree matrixbuild: install and exercise the runtime manager— Meson installation, installed-layout regression, and CI wiringruntime: support symlinked translator installs— alternatives-compatible probing, root containment, and manager-symlink discoveryValidation
missing--rootwas incorrectly reportedpresent4bc4146f89alatx-x86_64andlatx-i386passedlat-pr-fast: x86_64 13/13 and i386 6/6 passedlatucommandlatu-runtime-manager,latx-x86_64, andlatx-i386sh -n runtime/latu-runtime-manager tests/runtime/test-latu-runtime-manager.shgit diff --check