Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkgbuilds/m1n1-aurora/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ build() {

package() {
# Runtime dependencies are unavailable in the generic build environment.
# Virtual uboot-asahi: legacy installs keep stock uboot-asahi, aura installs
# keep uboot-aurora (which provides it). Images select uboot-aurora explicitly.
# Virtual uboot-asahi: stock uboot-asahi or uboot-aurora (which provides and
# replaces it) both satisfy it. Images select uboot-aurora explicitly.
depends=('aurora-scripts>=20260127.1' 'uboot-asahi')
python "$srcdir/validate-qualification.py" --build-only "$srcdir/build-qualification.json" "$_commit"
install -Dm644 "$srcdir/m1n1/build/m1n1.bin" "$pkgdir/usr/lib/asahi-boot/m1n1.bin"
Expand Down
10 changes: 5 additions & 5 deletions pkgbuilds/m1n1-aurora/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ It provides `m1n1` at its own `pkgver` for the kernel dependency. An installed
replacement transaction. `aura` is removed in the same transaction, leaving
exactly one provider for the boot checker merged in omarchy-mac-pkgs #52.

The runtime U-Boot dependency is the virtual `uboot-asahi`. A legacy install
keeps the stock `uboot-asahi`; an `aura` install keeps `uboot-aurora`, which
provides it. Depending on `uboot-aurora` by name would make every legacy
upgrade hit its conflict with `uboot-asahi`, which `--noconfirm` refuses, and
then ask the user to swap U-Boot. Images select `uboot-aurora` explicitly.
The runtime U-Boot dependency is the virtual `uboot-asahi`, which the stock
`uboot-asahi` and `uboot-aurora` both satisfy. `uboot-aurora` replaces the
stock package, so a Mac that pulls it in (through `aura`) swaps U-Boot in the
same transaction, and `--noconfirm` accepts the swap. Images select
`uboot-aurora` explicitly.

Stage 2 remains `/usr/lib/asahi-boot/m1n1.bin`. The aurora-scripts hook (which
provides `asahi-scripts`) rebuilds `m1n1/boot.bin` on the selected system ESP from the loader, kernel DTBs
Expand Down
8 changes: 6 additions & 2 deletions pkgbuilds/uboot-aurora/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgname=uboot-aurora
pkgver=2026.07.aurora9
pkgrel=1
pkgrel=2
pkgdesc='Aurora common Apple Silicon U-Boot with Neo MTP handoff (Omarchy build: silent console)'
arch=('aarch64')
groups=('omarchy-platform-apple-silicon')
Expand All @@ -9,7 +9,11 @@ license=('GPL-2.0-or-later')
_commit=5445237f1dcb0d30213741f85158816d04d65aa7
provides=("uboot-asahi=$pkgver")
conflicts=('uboot-asahi' 'uboot-asahi-j700')
replaces=('uboot-asahi-j700')
# aura depends on uboot-aurora, so every Mac on aura needs this swap. A
# replaces= makes pacman offer it with yes as the default, so an unattended
# -Syu --noconfirm takes it; a bare conflict asks to remove uboot-asahi with
# no as the default and stops. Only Macs have uboot-asahi installed.
replaces=('uboot-asahi-j700' 'uboot-asahi')
makedepends=('git' 'bc' 'dtc' 'python' 'python-pyelftools' 'swig')
options=('!strip' '!debug')
source=("u-boot::git+$url.git#commit=$_commit" quiet-console.patch t8142-aurora-boot-flow.patch
Expand Down
3 changes: 2 additions & 1 deletion release/owners.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
{"dir":"t2fanrd","kind":"replaces","name":"t2fand","arches":["x86_64"]},
{"dir":"thinkpad-t14-amd-touchpad-dkms","kind":"replaces","name":"i2c-piix4-asf-dkms","arches":["x86_64"]},
{"dir":"uboot-aurora","kind":"provides","name":"uboot-asahi","arches":["aarch64"]},
{"dir":"uboot-aurora","kind":"replaces","name":"uboot-asahi","arches":["aarch64"]},
{"dir":"uboot-aurora","kind":"replaces","name":"uboot-asahi-j700","arches":["aarch64"]}
],
"dirs":[
Expand Down Expand Up @@ -421,7 +422,7 @@
{"dir":"typora","pkgbase":"typora","arches":["aarch64","x86_64"],"names":["typora"],"provides":[],"replaces":[]},
{"dir":"tzupdate","pkgbase":"tzupdate","arches":["aarch64","x86_64"],"names":["tzupdate"],"provides":[],"replaces":[]},
{"dir":"uboot-asahi","pkgbase":"uboot-asahi","arches":["aarch64"],"names":["uboot-asahi"],"provides":[],"replaces":[]},
{"dir":"uboot-aurora","pkgbase":"uboot-aurora","arches":["aarch64"],"names":["uboot-aurora"],"provides":["uboot-asahi"],"replaces":["uboot-asahi-j700"]},
{"dir":"uboot-aurora","pkgbase":"uboot-aurora","arches":["aarch64"],"names":["uboot-aurora"],"provides":["uboot-asahi"],"replaces":["uboot-asahi","uboot-asahi-j700"]},
{"dir":"ufw-docker","pkgbase":"ufw-docker","arches":["aarch64","x86_64"],"names":["ufw-docker"],"provides":[],"replaces":[]},
{"dir":"umu-launcher","pkgbase":"umu-launcher","arches":["aarch64"],"names":["umu-launcher"],"provides":[],"replaces":[]},
{"dir":"v4l2-relayd","pkgbase":"v4l2-relayd","arches":["aarch64","x86_64"],"names":["v4l2-relayd"],"provides":[],"replaces":[]},
Expand Down
15 changes: 13 additions & 2 deletions tests/aurora-edge/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def test_stock_names_are_provided_but_never_replaced(self):
# A replaces= on a stock name swaps it on every machine using [omarchy],
# including Qualcomm and generic aarch64 ones, at their next update.
for new, old in [('mesa-aurora', 'mesa'), ('vulkan-aurora', 'vulkan-asahi'),
('aurora-bless', 'asahi-bless'), ('uboot-aurora', 'uboot-asahi'),
('aurora-bless', 'asahi-bless'),
('aurora-audio', 'asahi-audio'),
('alsa-ucm-conf-aurora', 'alsa-ucm-conf-asahi'), ('aura', 'm1n1')]:
base = 'mesa-aurora' if new.startswith('vulkan-') else new
Expand All @@ -230,6 +230,17 @@ def test_stock_names_are_provided_but_never_replaced(self):
if old != 'm1n1-aurora':
self.assertTrue(any(p.startswith(old + '=') for p in package['provides']))

def test_uboot_aurora_replaces_stock_uboot(self):
# aura depends on uboot-aurora by name, so every Mac moving to aura
# swaps U-Boot. Without replaces= pacman asks to remove uboot-asahi with
# no as the default and --noconfirm stops the update. Only Apple
# Silicon machines have uboot-asahi installed.
package = srcinfo('uboot-aurora')['uboot-aurora']
self.assertIn('uboot-asahi', package['conflicts'])
self.assertIn('uboot-asahi', package['replaces'])
self.assertTrue(any(p.startswith('uboot-asahi=') for p in package['provides']))
self.assertIn('uboot-aurora', srcinfo('aura')['aura']['depends'])

def test_asahi_alarm_imports_upgrade_in_place(self):
# The [omarchy] build must win by version alone: same name, same pkgver,
# higher pkgrel, and no relations that would touch other machines.
Expand Down Expand Up @@ -405,7 +416,7 @@ def test_omacom_loader_migrates_only_downstream_providers(self):
self.assertGreaterEqual(int(subprocess.check_output(['vercmp', version, '1.6.1.aurora19'], text=True)), 0)
self.assertIn('m1n1=' + version, package['provides'])
self.assertEqual(package['url'], ['https://github.com/omacom/m1n1'])
# Upgrading must not force a U-Boot swap: either installed provider satisfies it.
# Either U-Boot provider satisfies it; uboot-aurora's replaces= does the swap.
self.assertIn('uboot-asahi', package['depends'])
self.assertNotIn('uboot-aurora', package['depends'])
uboot = srcinfo('uboot-aurora')['uboot-aurora']
Expand Down