me

/

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

Define the default Vinix desktop package set and resolve named roots

diviocity committed 5 days ago · 75351662c7ea769ac63930fb5281396f8dcfc572 View patch
Unverified signature 4 files changed +26 -1
BOOTSTRAP.md +2 -0

@@ -32,6 +32,8 @@ The worker cross-checked the source plan against the signed x86_64 archives for

3232

3333At ports revision `06d5cb5`, xkeyboard-config supplies the missing check dependency. The source planner placed all 114 recipes in seven stages independently on each architecture. See `foundation/source-order-02`, receipt SHA-256 `813b33eb878851d7c32bae9a9cd2b05ad6365f034e286183d633f1836e09901c`. Signed installation and guest execution have their own receipts.

3434

35+`vinix-release-desktop` selects the source-built base, network utilities, compiler tools and desktop init by name. The architecture-specific recipe adds libuuid for the amd64 userland stage. The existing Vinix image builder also supplies the kernel, compositor and native services. Once the complete signed feed is available, a fresh install of this metapackage must resolve all its dependencies. The November 30 development snapshot placed the metapackage in stage 8, with 153 recipes across 15 stages on both targets including the X11 work. The exact recipe hashes and edges are in `foundation/full-source-order-01`, receipt SHA-256 `86a9b1ae365bfe0cfb79f4a98407caf8d0ac92bea37e96eca7472eadaba11624`. This snapshot includes recipes awaiting their first successful build.

36+

3537The worker resolved all 81 packages in `foundation/xlib-combined-01/repo` into seven stages. For example, BusyBox follows musl and Linux headers, Xlib follows XCB and Xtrans, and the bitmap fonts follow mkfontscale. The order is in `foundation/xlib-order-01/order.tsv` with SHA-256 `51d1464a0a994328c40264105f8b95b7b22a8922cad177daef98e593d4a6930c`. The first signed ARM feed puts both musl and Linux headers in stage zero. Its signed, installed root passed the ownership and ELF audit for 1,165 files and links, including six target ELFs. The worker keeps that receipt in `arm/common/sdk-01-audit.log` with SHA-256 `b315f8d20f2d4c7737fd2e5078c33e12b6183d2ee86a22a9ba6db6852d68c59b`.

3638

3739## Running the shared worker

tests/FEED.md +2 -0

@@ -13,6 +13,8 @@ v -o "$work/feed" tests/feed.v

13

114Each destination must be new. The publisher verifies each package signature, embeds signatures in the signed repository database, verifies both index signatures and records archive SHA-256 values in `repo/packages.tsv`. The installer checks the database and package signatures through vpac while syncing and resolving package names. Its isolated client keeps the root, database, cache, configuration and log under `sdk/`.

215

16+`combined-feed.py` can publish a larger package pool and ask vpac to install specific roots. Pass `--install NAME` once for each requested root. The default installs every package in the selection. On both architectures, the worker published four packages and requested only musl and netbase. The clean clients contained exactly those two validated package records. The receipts are in `foundation/partial-install-01`, SHA-256 `0067690951845492e39732b5bb932a6cbfe619b7f51bbbf6dcf63b9e2a763898`.

17+

318A builder with its own unprivileged service account and private state directory can use `feed install KEY_STATE REPO ARCH NEW_CLIENT --fakeroot PACKAGE_NAME...` when user namespaces are unavailable. This runs vpac under fakeroot and keeps the same signed file repository and new client directory.

419

520Target post-transaction hooks need permission to enter the installed root. For the worker's x86_64 font test, systemd granted the dynamic user `CAP_SYS_CHROOT` within its private user namespace using `PrivateUsers=yes`, `CapabilityBoundingSet=CAP_SYS_CHROOT` and `AmbientCapabilities=CAP_SYS_CHROOT`. The install fixture also checks vpac's transaction log for hook errors. Without that capability, vpac returned zero after a hook failed and the fixture rejected the result.

tests/combined-feed.py +3 -1

@@ -78,7 +78,7 @@ def run(args):

7878 repo, client = args.work / "repo", args.work / "client"

7979 for label, command in [

8080 ("publish", ["feed", "publish", args.keys, repo, args.arch, *[selected[n][2] for n in names]]),

81- ("install", ["feed", "install", args.keys, repo, args.arch, client, "--fakeroot", *names]),

81+ ("install", ["feed", "install", args.keys, repo, args.arch, client, "--fakeroot", *(args.install or names)]),

8282 ("audit", [args.auditor, args.arch, client]),

8383 ]:

8484 with (args.work / (label + ".log")).open("w") as log:

@@ -93,4 +93,6 @@ if __name__ == "__main__":

9393 parser.add_argument(option, type=lambda x: Path(x).resolve())

9494 parser.add_argument("sources", nargs="+", type=lambda x: Path(x).resolve(),

9595 help="artifact directory, individual .sha256 receipt, or signed feed's packages.tsv")

96+ parser.add_argument("--install", metavar="NAME", action="append",

97+ help="install this root and its dependencies; repeat for additional roots (default: every package)")

9698 run(parser.parse_args())

vinix-release-desktop/PKGBUILD.vile new file +19 -0

@@ -0,0 +1,19 @@

1+; Packages needed by the default desktop image during the Alpine replacement.

2+; The Vinix image builder adds the kernel, compositor and native services.

3+selected := get-environment-variable("VPAC_TARGET_ARCH")

4+arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" }

5+common := list("musl>=1.2.6-2", "busybox>=1.38.0-5", "musl-utils", "ssl-client", "netbase",

6+ "vinix-release", "vinix-filesystem>=0.1.0-2", "vinix-accounts", "vinix-keyring",

7+ "ca-certificates", "curl", "git", "openssh-client", "vpac", "xbps",

8+ "zsh", "vim", "build-base", "vinix-desktop-init")

9+

10+defpkgbuild(vinix-release-desktop,

11+ #:pkgname, "vinix-release-desktop",

12+ #:pkgver, "20261128",

13+ #:pkgrel, 1,

14+ #:pkgdesc, "Base, network and toolchain packages for the Vinix desktop release",

15+ #:arch, [#:x86-64, #:aarch64],

16+ #:url, "https://github.com/vlang/vinix",

17+ #:license, "0BSD",

18+ #:depends, if string=?("x86_64", arch) { append(common, list("libuuid")) } else { common },

19+ #:package, fn() {})