Repository navigation
Build the T2 Mac packages in Omarchy's repository - #2911
Merged
Merged
Conversation
T2 Macs get their kernel from a third-party repository today. Build it here instead, so it is signed with Omarchy's key and moves through the edge, rc and stable channels like every other package. The recipe is Arch's linux 7.3.4.arch1-2 with the t2linux patch set pinned at dd9b845 and its extra_config appended. The config is byte-identical to Arch's for that release. All 35 patches apply with --fuzz=0. pkgrel 3 sorts above the installed 7.3.4.arch1-2, so a plain -Syu takes this build. provides, conflicts and replaces match the package it replaces. The docs package and its htmldocs build are dropped, as in linux-omarchy; Omarchy never installs linux-t2-docs.
Same UCM files as the package T2 Macs have now, from deqrocks/t2bce pinned at a973d53. pkgrel 2 sorts above the installed 0.4.r21.ga973d53-1.
GnomedDev/t2fanrd pinned at 48baf96, the commit T2 Macs run now. The unit starts with multi-user.target, where fix-t2.sh enables it. pkgrel 2 sorts above the installed r16.48baf96-1.
The t2linux firmware.sh (method 4, MIT), byte-identical to the script T2 Macs have now, with its license. It copies the Wi-Fi and Bluetooth firmware from the on-disk macOS volume, read-only. pkgrel 2 sorts above the installed 1-1.
ryanrhughes
enabled auto-merge (squash)
November 16, 2026 15:53
emirb
marked this pull request as draft
November 16, 2026 15:54
auto-merge was automatically disabled
November 16, 2026 15:54
Pull request was converted to draft
[Medium impact] The reviewed changes appear safe to merge, with no new actionable issues established. SummaryAdds recipes for the five packages used by T2 Macs so Omarchy can build and sign them.
No new actionable issues were established. Build and hardware behavior were not independently tested. Reviews (3) · Last reviewed commit: "linux-t2: leave out the 5300 SMU patch u..." · Reviewed by Greptile |
Like the other kernel recipes, linux-t2 now builds only when asked for by name or touched by a PR. An unscoped local bin/build no longer compiles it. CI ignores skip_build, so publishing is unchanged.
Omarchy 4.5.0 shipped linux-t2 7.2.11 with the t2linux patches at e167207, the last commit of that patch set for 7.2; later commits target 7.3, which has not been through an Omarchy release on T2 Macs. Build 7.2.15, the kernel linux-omarchy runs, with that same patch set. All 26 patches apply with --fuzz=0, and the config is Arch's for 7.2.15.arch1-1. epoch=1 puts this build above any 7.3 build a T2 Mac already has, so the next update moves every T2 Mac to it.
The original t2bce repository is archived. Its author's KaiT2en repository holds the same files byte-identical at 0ee536b, published there under MIT, so the package keeps its content and gains a license.
t2linux dropped 6001 (e57fa40) after measuring on 7.2.7 that it pins the iMac20,1's Radeon Pro 5300 at 300 MHz, while 7003 alone boots cleanly and the clock scales to 1250 MHz. The 7.2 patch set predates that fix, so skip the patch here.
Contributor
Publish succeeded → livePackages: apple-bcm-firmware-fetcher (x86_64, PR artifact); apple-t2-audio-config (x86_64, PR artifact); linux-t2 (x86_64, PR artifact); t2fanrd (x86_64, PR artifact)
|
This was referenced Nov 16, 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.
Problem
T2 Macs get linux-t2, linux-t2-headers, apple-t2-audio-config, apple-bcm-firmware-fetcher and t2fanrd from a third-party repository. Those packages are outside Omarchy's signing and do not move through edge, rc and stable.
Fix
This builds all five here. linux-t2 is Arch's linux 7.2.15.arch1-1 recipe, the kernel linux-omarchy runs, with the t2linux patch set at e167207. That is the last 7.2 patch set and the one Omarchy 4.5.0 shipped with linux-t2 7.2.11; later commits target 7.3. Patch 6001 is left out because upstream dropped it (e57fa40): it pins the iMac20,1's Radeon Pro 5300 at 300 MHz. The other 25 apply with
--fuzz=0, and the config is Arch's for that release plus the patch set's extra_config.epoch=1puts this build above any 7.3 build a T2 Mac already has, so the next update moves every T2 Mac to it. The other four keep the content T2 Macs run today, one pkgrel above the installed version. The audio profile's original repository is archived, so its identical files come from the same author's KaiT2en repository, which published them under MIT. t2fanrd stays on the final commit of its archived repository, which drives the applesmc fans the 7.2 kernel exposes. A mirror of the third-party repository was ruled out because it copies whatever that repository serves.Scope and risk
Only T2 Macs install these packages.
[omarchy]comes first in pacman.conf, so the next update takes them with no Omarchy change. A Mac on a 7.3 kernel goes back to 7.2.15 through the epoch, and the kernel release becomes7.2.15-arch1-1-t2.The closest read is
prepare()and the epoch inpkgbuilds/linux-t2/PKGBUILD. The docs package is dropped, as in linux-omarchy; Omarchy never installs it. All five are"sync": false, so a new kernel or patch set arrives only by a reviewed PR.Evidence
The evidence comes from QEMU VMs reporting the T2 PCI ID (106b:1802) and Apple SMBIOS, installed from the 4.5.0 ISO with LUKS.
omarchy updatetook all five builds from a signed repository placed above[omarchy]:1:7.2.15.arch1-1.After a reboot through Limine, both run
7.2.15-arch1-1-t2, the t2bce, applesmc and hci_bcm4377 modules load, andsystemctl --failedis unchanged. The installed UCM files are byte-identical to the current package's. Not verified: real T2 hardware (internal keyboard through t2bce_vhci, audio, Wi-Fi, fans).