me

/

vinix-ports Public
382 commits 0 issues 0 pull requests 1 contributor Discussions Projects Snippets LOC history Platform CI

Verify moved Zsh completions and native ownership of release defaults

diviocity committed 5 days ago · 03ea1f3a4af219fc6750fbe29c0fd11755013546 View patch
Unverified signature 3 files changed +16 -1
PROFILES.md +2 -0

@@ -104,6 +104,8 @@ The next clean x86_64 install resolved 129 signed packages in ten dependency sta

104104

105105The x86_64 path fixture booted the published kernel with a 19-package signed root. It loaded Zsh's attribute, line-editor and completion modules, initialized completion, read the linux, alacritty and xterm-256color terminfo entries, found the indexed Misc Fixed bitmap font, and executed the target-prefixed GNU assembler and linker. The serial transcript is in `foundation/relocated-guest-x86-01`, receipt SHA-256 `c6b8615194003d7ee9490682127a0b2d477b35bac8d37282f97ac94e8bb4eeab`. A separate audit of the 129-package root ran the installed musl loader over all 158 dynamic executable paths on the x86_64 build worker. See `foundation/abi-desktop-129-01`, receipt SHA-256 `9b07bc02aa03c6c5a30411ec760865648f39297d6c270cd8f0e973165a37337b`.

106106

107+Two more Zsh 5.9 completions have verified replacements in 5.9.2. The release kernel ran `compinit` and checked that `pmap` selected `_pmap` from the Unix directory and `chcon` selected `_selinux`, bringing the x86_64 relocation count to 1,362. Both signed SDKs' public `unistd.h` produced the original LP64/OFF64 feature macros. The x86_64 owner table records the CA updater for the generated certificate bundle and hash links and the desktop PID 1 for default startup. See `foundation/relocated-guest-x86-02` and `foundation/release-native-owners-03`, receipt manifests `f6df0b88ba418f246874810377330ee7f1c72878b213b053f5c1c0f21bcbfee5` and `15ad4349545783af2425379d57b4ade68fdc4cbdcd268455d8e7613dff3773d8`.

108+

107109The x86_64 first-boot registration screen ran with a clean, 15-package vpac root and its packaged release PID 1. The test added the five native Vinix programs from the checksum-pinned release initramfs and checked their hashes inside the guest. The guest observed both the graphical session and the registration process, then sampled at least 24 colors from the 1024×768 framebuffer. Reproduce this with `tests/desktop-guest.py`. The worker retains the manifest and serial transcript in `foundation/desktop-registration-x86-01`, receipt SHA-256 `0f0a3bc88bbb2b4921df92510163a43afbaaf8f683b05fe8bf180a62f9888129`.

108110

109111The arm64 desktop init uses the Vinix V generator and freestanding syscall implementation at revision `c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75`. Clang's builtin headers supply the integer types. The worker checked the generated executable's entry point, syscall symbol, static linkage and four 16 KiB load segments. See `foundation/desktop-init-arm-probe-06/receipts.sha256`, SHA-256 `42ef835ad6544be6fbe87f6ee8bc7f068ba6b4ac99a10449ec6a674b69807907`. The signed arm64 desktop installation and its first-boot test are subsequent checks.

tests/userland/paths.sh +1 -0

@@ -14,6 +14,7 @@ cd /tmp

1414 zmodload zsh/attr && zmodload zsh/zle && zmodload zsh/complete || exit 1

1515 autoload -Uz compinit && compinit -i -D || exit 1

1616 (( $+functions[_main_complete] )) || exit 1

17+ [[ ${_comps[pmap]} == _pmap && ${_comps[chcon]} == _selinux ]] || exit 1

1718 print -r -- "Zsh $ZSH_VERSION loaded modules and completions"

1819'

1920phase=terminfo

tools/release-owners.py +13 -1

@@ -90,7 +90,13 @@ def relocated(row, path, arch, versions):

9090 for base in ("usr/share/zsh", "usr/lib/zsh"):

9191 prefix = f"{base}/{old}/"

9292 if path.startswith(prefix):

93- return f"{base}/{new}/" + path.removeprefix(prefix)

93+ suffix = path.removeprefix(prefix)

94+ if base == "usr/share/zsh" and old == "5.9" and new == "5.9.2":

95+ suffix = {

96+ "functions/Completion/Linux/_pmap": "functions/Completion/Unix/_pmap",

97+ "functions/Completion/Linux/_chcon": "functions/Completion/Linux/_selinux",

98+ }.get(suffix, suffix)

99+ return f"{base}/{new}/{suffix}"

94100 if origin in ("font-misc-misc", "font-cursor-misc", "font-alias") and path.startswith("usr/share/fonts/misc/"):

95101 return "usr/share/fonts/X11/misc/" + path.removeprefix("usr/share/fonts/misc/")

96102 if origin == "ncurses" and path.startswith("etc/terminfo/"):

@@ -108,6 +114,12 @@ def replacement(row, path):

108114 return "etc/os-release", "vinix-release", "operating system identity"

109115 if row["binary"] == "apk-tools" and path == "sbin/apk":

110116 return "usr/bin/vpac", "vpac", "package management"

117+ if row["binary"] == "musl-dev" and path == "usr/include/bits/posix.h":

118+ return "usr/include/unistd.h", "musl", "POSIX LP64/OFF64 feature macros"

119+ if row["binary"] == "ca-certificates" and path == "etc/apk/protected_paths.d/ca-certificates.list":

120+ return "usr/sbin/update-ca-certificates", "ca-certificates", "regeneration of CA bundle and hash links"

121+ if row["binary"] == "alpine-baselayout-data" and path == "etc/inittab":

122+ return "sbin/init", "vinix-desktop-init", "default desktop startup"

111123 return None

112124

113125