Repository navigation
Build muvm and fex-emu (FEX-Emu) from source - #2946
Merged
Merged
Conversation
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].
[Medium impact] The PR appears safe to merge; no actionable new issue was established. SummaryAdds source-build recipes for
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.
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.
Contributor
This was referenced Nov 17, 2026
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.
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
omarchy-steam-fexhard-depends onmuvmandFEX-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.These follow the 4.6 import decisions:
pkgverwith a higherpkgrel, and[omarchy]is listed first. That holds for muvm.fex-emuwithprovides=("FEX-Emu=$pkgver")andconflicts/replaces=('FEX-Emu'), the aurora-scripts pattern.omarchy-steam-fexand asahi-alarm'ssteamdepend onFEX-Emu, and the provide satisfies both.Every dependency comes from Arch Linux ARM:
libkrun,socat,passt,squashfuse,squashfs-tools,erofs-utils, and, for building,libkrunandclang.Changes from asahi-alarm's recipes:
cargoand--frozen(fetched inprepare()), instead of an unpinned rustup default.libkrunandclangare makedepends, becausekrun-syslinks libkrun and runs bindgen. The licence is the one upstream ships.apple-m1tuning, LTO and thecnthcheck. The cherry-pick git identity is dropped, since nothing is cherry-picked.CodeCache.cppfails against Arch Linux ARM's fmt 12.2, becausefmt::joinoverstd::byteis unformattable there.-DCMAKE_DISABLE_FIND_PACKAGE_fmt=ONmakes FEX use theExternal/fmtits tag pins, linked statically, sofmtis no longer a dependency. Upstream main still has the same code.omarchy-steam-fexis 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.pychecks both packages for the Apple Silicon group andsync: false. muvm goes through the same-name import checks: version above asahi-alarm's, no relations. fex-emu goes through the renamed-import checks: providesFEX-Emu=2604, conflicts with and replacesFEX-Emu. It also addsomarchy-steam-fex's exact runtime deps. CI on this PR runs it, along with the aarch64 builds.muvm-0.7.0-1andFEX-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-fexalso depends on asahi-alarm'ssteam, which pulls in more asahi-alarm-only packages:fex-emu-rootfs-arch, a prebuilt ~1 GB x86 rootfs taken from an asahi-alarm GitHub releasemesa-fex-emu-overlay-i386andmesa-fex-emu-overlay-x86_64Steam still needs the asahi-alarm repository until those have a source-built plan.