Skip to content

Add static QEMU packages for aarch64 - #614

Merged
maralcbr merged 3 commits into
omacom:masterfrom
scottjones:add/qemu-static-aarch64
Sep 24, 2026
Merged

maralcbr merged 3 commits into
omacom:masterfrom
scottjones:add/qemu-static-aarch64

Conversation

@scottjones

@scottjones scottjones commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Provide aarch64 qemu-user-static and qemu-user-static-binfmt for Omarchy’s default package list. Repackages Debian 13 static ARM64 binaries from a checksum-verified immutable snapshot. No x86 packaging or build-worker emulation changes.

Preserves Marcelo’s recipe from maralcbr/omarchy-pkgs@8397390 through omarchy-mac/omarchy-pkgs-aarch64#61, including Debian copyright and upstream licensing.

Completed update tracking

A package-local hook checks trixie, trixie-updates and trixie-security and compares full Debian versions, including epochs, security revisions and binary rebuilds. It resolves the selected ARM64 binary through snapshot.debian.org and verifies size, SHA256 and content-addressed SHA1 before returning an update. Feed or snapshot failures are fatal; no fallback to older releases.

The shared hook interface gains an optional, narrowly validated map of existing underscore-prefixed release scalars. These values are read back and applied atomically with pkgver and checksum arrays. Existing hooks remain unchanged. QEMU uses this for _debver and _snapshot. Automatic sync is enabled and participates in the normal upstream-update PR workflow.

A one-time Arch epoch of 1 moves from the original upstream-only version to Debian epoch.upstream.revision in pkgver. Both Debian and pacman ordering must advance. Unfamiliar prerelease conventions fail for manual review rather than silently misordering versions. Distribution upgrades beyond Debian 13 remain explicit.

Live discovery selected Debian 1:10.0.13+ds-0+deb13u1; the recipe now packages that revision. A repeat live check reports no update.

Validation of current revision

  • Native upstream ARM builder successfully built both split packages with verified source checksums.
  • All 40 emulator executables are static AArch64 ELF. All 32 binfmt rules reference packaged interpreters, retain persistent/preserve-argv0 flags, omit credential escalation, and exclude native little-endian AArch64.
  • A minimal x86_64 ELF executed through the new packaged emulator returned its expected exit status 42.
  • Seven new fixture tests cover version/epoch/security/binNMU changes, security feed selection, idempotence, malformed metadata, missing/corrupt snapshots, atomic application and invalid scalar rejection; wired into CI.
  • All 26 existing upstream-watch tests, sync self-tests, shell syntax and diff checks passed locally. Fixture Git signing was disabled to isolate tests from personal signing configuration.

Earlier 10.0.11 CI artifacts passed disposable ARM-container installation/removal and separate ARM VM direct/binfmt execution, persistent-interpreter and unregister checks. That prior VM evidence is not a full VM qualification of the refreshed 10.0.13 binary; the new binary has native build and direct-execution validation above. No host binfmt handlers were registered or packages installed.

The update-tracking draft blocker is resolved. Current-head CI must pass before merge. Nothing merged or published.

@scottjones
scottjones marked this pull request as ready for review September 24, 2026 03:27
qemu-binfmt-conf.sh groups arm with aarch64 and skipped it; Apple Silicon has
no AArch32 execution, so --ignore-family is needed for ARM32 programs. The
bin/sync-upstream extension, its tests and the Tests workflow edit are
reverted; QEMU updates become reviewed pins.
@maralcbr
maralcbr merged commit 93b1d62 into omacom:master Sep 24, 2026
6 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: qemu-user-static (aarch64, PR artifact)

  • edge/aarch64: qemu-user-static-1:1.10.0.13+ds.0+deb13u1-1-aarch64, qemu-user-static-binfmt-1:1.10.0.13+ds.0+deb13u1-1-aarch64

Commit 93b1d62 · run

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.

2 participants