Skip to content

Build muvm and fex-emu (FEX-Emu) from source - #2946

Merged
maralcbr merged 3 commits into
masterfrom
asahi-import-04-muvm-fex
Nov 17, 2026
Merged

maralcbr merged 3 commits into
masterfrom
asahi-import-04-muvm-fex

Conversation

@maralcbr

@maralcbr maralcbr commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

omarchy-steam-fex hard-depends on muvm and FEX-Emu. Both come only from the asahi-alarm repository, which Omarchy 4.6 drops. This builds them here from their upstream tags, using asahi-alarm/PKGBUILDs' recipes. It follows the pattern of omarchy-pkgs#2943 and omarchy-pkgs#2944.

 pkgbuilds/
+├── muvm/      # AsahiLinux/muvm muvm-0.7.0, pkgrel 2 (asahi-alarm ships 0.7.0-1)
+└── fex-emu/   # FEX-Emu/FEX FEX-2604 as fex-emu, provides/conflicts/replaces FEX-Emu
 release/mac-inventory.txt       +fex-emu none  +muvm none
 tests/aurora-edge/metadata.py   muvm a same-name import, fex-emu a renamed one; omarchy-steam-fex's depends pinned

These follow the 4.6 import decisions:

  • A same-name package keeps the asahi-alarm pkgver with a higher pkgrel, and [omarchy] is listed first. That holds for muvm.
  • FEX-Emu is the exception: namcap here refuses upper-case package names, and recipe directories must be lower case. It becomes fex-emu with provides=("FEX-Emu=$pkgver") and conflicts/replaces=('FEX-Emu'), the aurora-scripts pattern. omarchy-steam-fex and asahi-alarm's steam depend on FEX-Emu, and the provide satisfies both.
  • Built from source.
  • Qualified on edge.

Every dependency comes from Arch Linux ARM: libkrun, socat, passt, squashfuse, squashfs-tools, erofs-utils, and, for building, libkrun and clang.

Changes from asahi-alarm's recipes:

  • Both: the Apple Silicon group, licences installed at 0644, and sha256sums.
  • muvm: builds with Arch's cargo and --frozen (fetched in prepare()), instead of an unpinned rustup default. libkrun and clang are makedepends, because krun-sys links libkrun and runs bindgen. The licence is the one upstream ships.
  • FEX-Emu: builds out of tree. It keeps the apple-m1 tuning, LTO and the cnth check. The cherry-pick git identity is dropped, since nothing is cherry-picked.
  • FEX-Emu and fmt: FEX-2604's CodeCache.cpp fails against Arch Linux ARM's fmt 12.2, because fmt::join over std::byte is unformattable there. -DCMAKE_DISABLE_FIND_PACKAGE_fmt=ON makes FEX use the External/fmt its tag pins, linked statically, so fmt is no longer a dependency. Upstream main still has the same code.

omarchy-steam-fex is unchanged, and the test now pins its runtime deps, so none can be dropped quietly. Upstream tracking is left for a later PR ("sync": false).

Evidence

  • tests/aurora-edge/metadata.py checks both packages for the Apple Silicon group and sync: false. muvm goes through the same-name import checks: version above asahi-alarm's, no relations. fex-emu goes through the renamed-import checks: provides FEX-Emu=2604, conflicts with and replaces FEX-Emu. It also adds omarchy-steam-fex's exact runtime deps. CI on this PR runs it, along with the aarch64 builds.
  • I checked the asahi-alarm aarch64 release assets: they serve exactly muvm-0.7.0-1 and FEX-Emu-2604-1.

Merge Danger

Door: two-way

Blast Radius: Mac Steam users

  • Edge Macs that have muvm or FEX-Emu installed move to these builds at their next -Syu. FEX-Emu is swapped for fex-emu by pacman's replace prompt, which defaults to yes. Rolling back means an unpublish plus a pkgrel bump.

  • Not covered here: omarchy-steam-fex also depends on asahi-alarm's steam, which pulls in more asahi-alarm-only packages:

    • fex-emu-rootfs-arch, a prebuilt ~1 GB x86 rootfs taken from an asahi-alarm GitHub release
    • mesa-fex-emu-overlay-i386 and mesa-fex-emu-overlay-x86_64

    Steam still needs the asahi-alarm repository until those have a source-built plan.

omarchy-steam-fex depends on both, and they come only from the
asahi-alarm repository, which Omarchy 4.6 drops. Same names and
versions as asahi-alarm with pkgrel 2, so installed Macs take these
builds from [omarchy].
@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable new issue was established.

Summary

Adds source-build recipes for muvm and fex-emu so Omarchy can supply both packages.

  • Omarchy now supplies FEX-Emu as a lowercase package.
  • Omarchy now builds muvm for Apple Silicon Steam.

Reviews (3) · Last reviewed commit: "Build fex-emu with the fmt its tag pins" · Reviewed by Greptile

Recipe directories and package names here are lower case, which namcap
enforces. fex-emu provides, conflicts with and replaces FEX-Emu, so
omarchy-steam-fex and steam still resolve. muvm's krun-sys runs bindgen,
which needs libclang.
@maralcbr maralcbr changed the title Build muvm and FEX-Emu from source Build muvm and fex-emu (FEX-Emu) from source Nov 17, 2026
FEX-2604's CodeCache.cpp does not compile against Arch Linux ARM's fmt
12.2: fmt::join over std::byte is unformattable there. FEX falls back to
External/fmt when no system fmt is found, linking it statically.
@maralcbr
maralcbr merged commit c5db27c into master Nov 17, 2026
11 checks passed
@maralcbr
maralcbr deleted the asahi-import-04-muvm-fex branch November 17, 2026 02:55
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: fex-emu (aarch64, PR artifact); muvm (aarch64, PR artifact)

  • edge/aarch64: fex-emu-2604-1-aarch64, muvm-0.7.0-2-aarch64

Commit c5db27c · run

emirb added a commit that referenced this pull request Nov 17, 2026
Three pull requests merged into master since this branch started add
replaces that the owners check refuses without an approval. Each one
moves users from an older package name to the new one:

- #2911 builds the T2 Mac packages here. apple-t2-audio-config replaces
  its -alt variant, t2fanrd replaces t2fand, and linux-t2 keeps the
  replaces of Arch's linux recipe (virtualbox-guest-modules-arch,
  wireguard-arch) and apple-gmux-t2-dkms-git.
- #2944 renames asahi-fwextract and asahi-scripts to aurora-fwextract
  and aurora-scripts.
- #2946 builds FEX-Emu from source as fex-emu.

With these 8 lines bin/release-owners --check passes on all 343
directories, with 50 approvals.
emirb added a commit that referenced this pull request Nov 17, 2026
#2590)

* Check which directory makes each package name

Nothing stopped a recipe from making, providing or replacing a package
another directory owns. A name that two directories make on one
architecture publishes the same filenames twice, and whichever artifact
is collected last wins: #1878 built linux-omarchy as pkgbase
linux-omarchy-bore and edge kept the 2.6 KB stub. A replaces is worse:
pacman -Syu offers every replacement, and yes is its default.

release/owners.json now lists, for each package directory, the
architectures it publishes to and the names it makes, provides and
replaces, read from its recipe with makepkg --printsrcinfo.
bin/release-owners writes it, and its --check fails when:

- two directories make one name, or one <pkgbase>-debug, on one
  architecture;
- a recipe provides another directory's package, or replaces anything
  but its own names, without a line in "approved";
- a recipe makes, provides or replaces omarchy-keyring, or the
  omarchy-keyring recipe makes anything else;
- an approval is not needed any more.

The approved list is the one part people write. Its 42 lines cover
what the recipes do today: 32 replaces, all migrations such as
omarchy-mac-boot replacing omarchy-apple-boot, and 10 provides, such
as omarchy-dev providing omarchy.

makepkg --printsrcinfo takes about 1.7 s per recipe and architecture,
so the tool reads recipes in parallel: all 286 in 80 to 99 s on 32
CPUs, against 13 min 55 s one at a time. The self-tests read only the
recipes a pull request changes and take the other entries from its
base: 0 to 3 s. Any change outside pkgbuilds/ reads them all. The tool
reads recipes as nobody.

bin/add-package adds a new package's entry. A package PR still merges
itself when release/owners.json changes only in its directories; a
change to "approved" needs a maintainer.

* Tell agents and reviewers about release/owners.json

AGENTS.md now says how a recipe that changes its names gets its line
in release/owners.json, and that an approval is a maintainer's call.
Two Greptile rules flag every change to the approved list and recipes
that start to replace or claim another package's name.

* Check release/owners.json in the self-tests container

The check ran in an Arch container of its own, so every pull request
started a second container and ran pacman -Syu twice. On this branch's
first run that setup took 21 s of the step's 6 min 25 s; the rest read
every recipe, since the branch changes bin/. On a pull request that
changes only recipes the read takes seconds, so the setup was most of
the cost. The check now runs first in the existing self-tests
container.

* Withdraw auto-merge when a later push no longer qualifies

GitHub keeps auto-merge through later pushes by anyone with write
access. auto-merge-pr.yml withdrew it only when build-approved was
removed, so a PR that qualified and then pushed a change outside its
packages, or a new line in the approved list of release/owners.json,
still merged by itself. It now withdraws on any event whose decision is
no, a push included. A failed author lookup gives no decision and
withdraws nothing.

* Upload each built package as an artifact of its own

A build's packages reach publish.yml inside one packages.tar artifact,
so GitHub records a digest for the tar, never for a package. Each
build now also uploads every package as its own unzipped artifact,
whose digest is the package file's SHA-256, and an index that lists
them: index-<dir>-<arch>-<tree>.json, with each file's name, SHA-256
and size. An artifact name cannot hold ':', so an epoch's ':' is
written %3A in the artifact's name; the index keeps the real name.

.github/actions/upload-packages does it for build-pr.yml and for
publish.yml's rebuild job, beside the packages.tar upload, which stays.
The upload action takes one unzipped file per call, so the action has
16 upload slots; the largest build today makes 11 files
(libretro-vice-git), and a build with more fails instead of leaving
one out. The index is uploaded last, so it names only uploaded files.

A run on a throwaway branch on 12 November 2026 uploaded a 3,000,000
byte package with an epoch, a debug package and the index. For each,
the artifact's digest equalled the SHA-256 of its download, the size
matched, and the download was the raw file, not a zip. The index named
each artifact by its %3A name with the same SHA-256 and size.

* Upload packages.tar after each package and the index

A rerun takes a build's packages.tar artifact as proof the build is
done and skips it. packages.tar was uploaded first, so if a package's
own upload or the index failed after it, a rerun skipped the build and
left them missing. packages.tar now goes last, in build-pr.yml and in
publish.yml's rebuild job.

* Regenerate release/owners.json after merging master

Master gained 58 package directories since this branch started and
removed ffmpeg. bin/release-owners writes their lines from the recipes,
as for every other directory.

* Approve the replaces that the T2 and Aurora packages added

Three pull requests merged into master since this branch started add
replaces that the owners check refuses without an approval. Each one
moves users from an older package name to the new one:

- #2911 builds the T2 Mac packages here. apple-t2-audio-config replaces
  its -alt variant, t2fanrd replaces t2fand, and linux-t2 keeps the
  replaces of Arch's linux recipe (virtualbox-guest-modules-arch,
  wireguard-arch) and apple-gmux-t2-dkms-git.
- #2944 renames asahi-fwextract and asahi-scripts to aurora-fwextract
  and aurora-scripts.
- #2946 builds FEX-Emu from source as fex-emu.

With these 8 lines bin/release-owners --check passes on all 343
directories, with 50 approvals.

* Let a build pass when a per-package upload fails

Nothing reads the per-package artifacts or their index yet. So a
failed or timed-out upload of them should not fail a package PR's
build or a publish rebuild, which still deliver packages.tar.

The release job that reads them will make the step required again.

* Withdraw auto-merge when the files disqualify, even if the lookup fails

A failed author lookup withdrew nothing, so a push that added a change
outside packages to an armed PR kept auto-merge while the lookup was
down. GitHub keeps auto-merge through pushes by anyone with write
access, so that PR could merge by itself.

The workflow now also decides the same PR as if a trusted author had
opened it. When even that is no, the files disqualify the PR, and
auto-merge is withdrawn whatever the lookup said.

The workflow comment said a maintainer keeps auto-merge they enabled
by hand on another PR. Any event on a PR outside the rule withdraws
it, so the comment now says that.

tests/pr-workflow-approval.cjs fails on the previous rule and passes
on this one, 47 of 47.
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