Skip to content

Build aurora-scripts, aurora-fwextract and lzfse from source - #2944

Merged
maralcbr merged 1 commit into
masterfrom
asahi-import-aurora-scripts
Nov 17, 2026
Merged

maralcbr merged 1 commit into
masterfrom
asahi-import-aurora-scripts

Conversation

@maralcbr

@maralcbr maralcbr commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

The Mac edge image takes asahi-scripts, asahi-fwextract and lzfse from the asahi-alarm repository, which Omarchy 4.6 drops. This builds all three here from their upstream tags, using asahi-alarm/PKGBUILDs' recipes.

 pkgbuilds/
+├── aurora-scripts/     # asahi-alarm/asahi-scripts 20261023, provides/conflicts/replaces asahi-scripts
+├── aurora-fwextract/   # asahi-alarm/asahi-alarm-installer v0.9.2, provides/conflicts/replaces asahi-fwextract
+├── lzfse/              # lzfse/lzfse lzfse-1.0, pkgrel 2 (asahi-alarm ships 1.0-1)
 ├── aura/              -asahi-scripts>=20260127.1  +aurora-scripts>=20260127.1   pkgrel 1 → 2
 ├── m1n1-aurora/       -asahi-scripts>=20260127.1  +aurora-scripts>=20260127.1   pkgrel 2 → 3
 └── omarchy-mac-boot/  -asahi-scripts              +aurora-scripts>=20260127.1   pkgrel 1 → 2
 release/mac-inventory.txt   +aurora-fwextract none  +aurora-scripts none  +lzfse none
 tests/aurora-edge/metadata.py

These follow the asahi-alarm import decisions for 4.6:

  • Asahi-branded tools are renamed aurora-* and provide, conflict with and replace the old name. Generic upstreams like lzfse keep their name.
  • A same-name package keeps asahi-alarm's pkgver and takes a higher pkgrel, like the uboot-asahi hold. [omarchy] comes first.
  • Built from source on our builders. No asahi-alarm binaries.
  • Qualified on edge (VM acceptance and the lab M2). The inventory lists the new pkgbases as none until then.

Recipes are unchanged apart from the name, groups=('omarchy-platform-apple-silicon') (as on the audio imports in omarchy-pkgs#2943), arch=('aarch64') (the scripts are Apple Silicon only), installed licence files and sha256sums. aurora-fwextract sets depends inside package(), the way m1n1-aurora does, because the build environment cannot install aurora-scripts or lzfse. Upstream tracking (docs/upstream-sources.md, watches) is left for a later PR, so all three are "sync": false for now.

Evidence

  • tests/aurora-edge/metadata.py (Arch container, as nobody): Before: expected asahi-scripts>=20260127.1 on aura and m1n1-aurora. After: passes with aurora-scripts>=20260127.1 and a new test that:

    • checks the provides/conflicts/replaces on the aurora pair
    • checks each version sorts at or above asahi-alarm's (lzfse goes in ASAHI_ALARM_IMPORTS, strictly above)
    • checks that no Mac recipe still names asahi-scripts
    • checks the licence installs
  • review.py, firmware.py, pinned-sources.sh, package-metadata.sh, package-owners.sh, pkgname-unique.sh, pgp-keys-vendored.sh and build-matrix.sh pass. namcap reports only the missing-Maintainer warnings the rest of the tree has.

  • I simulated an installed Mac's upgrade with stub packages: [omarchy] first, [alarm] last, and an extra package depending on asahi-scripts. A single pacman -Syu --noconfirm ran:

    :: Replace asahi-fwextract with omarchy/aurora-fwextract? [Y/n]
    :: Replace asahi-scripts with omarchy/aurora-scripts? [Y/n]
    removing asahi-fwextract / asahi-scripts
    installing aurora-scripts, aurora-fwextract; upgrading lzfse 1.0-1 → 1.0-2,
    m1n1-aurora …-2 → …-3, omarchy-mac-boot 20261104-1 → -2
    

    The other asahi-scripts dependent stayed installed, because the provide satisfied it.

  • The aarch64 builds come from this PR's CI.

Merge Danger

Door: two-way

The packages install the same files at the same paths, and the .install scripts are unchanged. Rolling back means an unpublish plus a pkgrel bump.

Blast Radius: Mac installs

  • Edge Macs swap asahi-scripts/asahi-fwextract at their next update. The swap runs asahi-fwupdate and the m1n1 pacman hook, as an asahi-scripts upgrade already does.
  • A lone pacman -S m1n1-aurora without -Syu on an asahi-scripts Mac would offer to remove asahi-scripts, with No as the default. omarchy update runs -Syu, so it never hits this.
  • No change for rc or stable until the inventory qualifies a version.

The Mac image takes these three from the asahi-alarm repository, which
Omarchy 4.6 drops. aurora-scripts and aurora-fwextract provide and replace
the asahi-* names, so installed Macs swap at the next -Syu; lzfse keeps its
name with pkgrel 2 above asahi-alarm's 1.0-1. aura, m1n1-aurora and
omarchy-mac-boot now depend on aurora-scripts>=20260127.1.
@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 for edge qualification.

Summary

Builds aurora-scripts, aurora-fwextract, and lzfse from pinned upstream tags.

  • Mac boot packages now use the source-built Aurora maintenance scripts.
  • Mac firmware updates now have source-built extractor and LZFSE packages.

Reviews (2) · Last reviewed commit: "Build aurora-scripts, aurora-fwextract a..." · Reviewed by Greptile

@maralcbr
maralcbr force-pushed the asahi-import-aurora-scripts branch from 8b159e2 to 7ea4b72 Compare November 17, 2026 02:20
@maralcbr
maralcbr merged commit 7957b7c into master Nov 17, 2026
16 checks passed
@maralcbr
maralcbr deleted the asahi-import-aurora-scripts branch November 17, 2026 02:27
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: aura (aarch64, PR artifact); aurora-fwextract (aarch64, PR artifact); aurora-scripts (aarch64, PR artifact); lzfse (aarch64, PR artifact); m1n1-aurora (aarch64, PR artifact); omarchy-mac-boot (aarch64, PR artifact)

  • edge/aarch64: aura-0.1.0.r20261023-2-aarch64, aurora-fwextract-0.9.2-1-aarch64, aurora-scripts-20261023-1-aarch64, lzfse-1.0-2-aarch64, m1n1-aurora-1.6.1.aurora23-3-aarch64, omarchy-mac-boot-20261104-2-aarch64

Commit 7957b7c · 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