Skip to content

pkgs: accept the Borealis driver names in omarchy-mlx and mesa-aurora - #3177

Open
joshuaswarren wants to merge 2 commits into
omacom:masterfrom
joshuaswarren:wAK/borealis-driver-names
Open

joshuaswarren wants to merge 2 commits into
omacom:masterfrom
joshuaswarren:wAK/borealis-driver-names

Conversation

@joshuaswarren

Copy link
Copy Markdown
Contributor

Why

Aurora renamed its Vulkan driver to Borealis (Ryan 2026-11-20): the driver library becomes libvulkan_borealis.so, the ICD manifest borealis_icd.<arch>.json, and the meson option borealis with asahi kept as a warning alias. The omarchy-mlx and mesa-aurora PKGBUILDs hardcode the asahi names, so the next Mesa bump carrying the rename breaks the build.

What

  • vulkan-driver-names.sh in each pkgbuild dir resolves whichever spelling the staged Mesa tree carries (Borealis preferred); a tree with neither refuses the build.
  • omarchy-mlx: meson option detected from the tree (borealis when present, asahi otherwise); check() greps the build sha in whichever library exists; the private ICD is published under both names (honeykrisp_icd.aarch64.json, borealis_icd.aarch64.json) with library_path pointing at the installed library under its real name.
  • mesa-aurora: the driver library and ICD move to vulkan-aurora under whichever name the tree produced; pkgdesc updated to Borealis.

Proof

  • bash tests/vulkan-driver-names-test.sh: 8 checks (Borealis tree, legacy tree, mixed tree resolves to Borealis, empty tree refuses).
  • bash -n on both PKGBUILDs.
  • Not yet proven end to end: a container build against a renamed Mesa tree; that lands when the Mesa bump carries the rename (PR targets it in advance on purpose).

Aurora renamed its Vulkan driver to Borealis (Ryan 2026-11-20): the
library becomes libvulkan_borealis.so, the ICD manifest
borealis_icd.<arch>.json, and the meson option borealis with asahi kept
as a warning alias. Hardcoded asahi names in the PKGBUILDs would break
once our Mesa fork carries the rename.

- vulkan-driver-names.sh per pkgbuild dir resolves whichever spelling
  the staged tree carries, Borealis first; a tree with neither refuses.
- omarchy-mlx: meson option detected from the tree; check() greps the
  build sha in whichever library exists; the private ICD is published
  as honeykrisp_icd.aarch64.json and borealis_icd.aarch64.json with
  library_path pointing at the installed library.
- mesa-aurora: the driver lib and ICD move to vulkan-aurora under
  whichever name the tree produced; pkgdesc updated.

Proved: bash tests/vulkan-driver-names-test.sh (8 checks, covers both
spellings, a mixed tree, and refusal on an empty tree); bash -n on both
PKGBUILDs.

Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
@greptile-apps

greptile-apps Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; all previous findings are fixed, and no new actionable issues were found.

Summary

Both packages now accept the Borealis driver filenames while keeping support for Asahi.

  • mesa-aurora packages the Vulkan driver under its staged name.
  • omarchy-mlx keeps its private Vulkan driver working with either filename.

Reviews (2) · Last reviewed commit: "pkgs: fix Vulkan packaging per review on..." · Reviewed by Greptile

Comment thread pkgbuilds/mesa-aurora/PKGBUILD Resolved
Comment thread pkgbuilds/mesa-aurora/PKGBUILD Resolved
Comment thread pkgbuilds/mesa-aurora/PKGBUILD Resolved

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @joshuaswarren. Making both recipes name-agnostic ahead of the rename is the right idea, and the omarchy-mlx side looks right for a single-spelling tree. A few things need changing before merge:

  1. vulkan-aurora packaging fails on today's tree. pkgbuilds/mesa-aurora/PKGBUILD:144-146 passes both *asahi*.json and *borealis*.json to cp. On a tree with only one spelling, the unmatched pattern stays literal, so cp fails, and it's the last command in the function. That covers today's asahi-only pin, so the next rebuild bump (including the automatic "Rebuild against updated dependencies" ones) would break vulkan-aurora with no Mesa change at all. Please copy only the manifest driver_icd resolves, for example install -Dm644 ".../icd.d/$drv_icd" "$pkgdir/usr/share/vulkan/icd.d/$drv_icd".
  2. The borealis detection doesn't do what it says. In mesa-aurora it runs at file scope (mesa-aurora/PKGBUILD:43-51), so _options is fixed when the PKGBUILD is sourced. In a clean build that's before makepkg has checked out the tree, so it always gets asahi, and only a reused build directory would see borealis. Both greps (mesa-aurora/PKGBUILD:45, omarchy-mlx/PKGBUILD:55) also only match a separate option('borealis' declaration, while Mesa normally lists Vulkan drivers as choices of vulkan-drivers. Could you paste the line from the renamed meson.options? Since asahi stays an alias, I'd drop both blocks and keep -Dvulkan-drivers=asahi for now, or move the check into build() and match the real declaration.
  3. Please post a packaging run at the current pin. bash -n and the helper test never run a package_* function, and CI built nothing because there's no pkgver or pkgrel bump. A bin/build --package mesa-aurora and bin/build --package omarchy-mlx run after item 1, or a temporary pkgrel bump so the build check runs, would cover it.

Smaller things:

  • Mixed stage splits the files wrongly. driver_library prefers Borealis, so with both spellings staged, package_mesa-aurora() removes only libvulkan_borealis.so (:125). mesa-aurora then keeps libvulkan_asahi.so, while vulkan-aurora ships the asahi manifest pointing at it. Please rm -f "$pkgdir"/usr/lib/libvulkan_{asahi,borealis}.so. That also avoids the confusing rm -f "$pkgdir/usr/lib/" when the helper finds nothing.
  • The new test isn't run, and it covers only the helper. tests/vulkan-driver-names-test.sh isn't in .github/workflows/test.yml. Adding ./tests/vulkan-driver-names-test.sh there runs it in this PR's CI. A case that sources each PKGBUILD and runs the package_* functions against asahi-only, Borealis-only and mixed fixture stages, like tests/aurora-edge/review.py:147-181 does for check(), would have caught item 1.
  • Two copies of the helper, one tested. The test sources only the omarchy-mlx copy (tests/vulkan-driver-names-test.sh:8). Worth running it against both, or failing when they differ.

Nits, fine as follow-ups:

  • mesa-aurora/PKGBUILD:49: vulkan_drivers is just an unprefixed copy of _vulkan_drivers. One underscore-prefixed variable is enough.
  • mesa-aurora/PKGBUILD:8 still says "Honeykrisp" while :132 says "Borealis", even though today's pin still builds the asahi-named driver. I'd change the descriptions in the bump PR.
  • Optional: list vulkan-driver-names.sh in source=() and sha256sums=() and source it from $srcdir, so a makepkg --source archive is complete. The builder copies the whole directory, so this doesn't break CI builds.
  • A sentence in the body on which private ICD name the omarchy-mlx runtime reads would help.

CI: "recipes" fails. That gate should only fail on namcap errors the base recipe didn't have, but I can't tell from the summary whether this one is a new error or an infrastructure failure, so please check its log. self-tests hadn't run when I looked, and no package was built.

Behaviour changes to note in the PR body:

  • Borealis wins on a stage that has both spellings.
  • vulkan-aurora's installed file names change after the bump. Worth a grep across omarchy-mac and omarchy-mac-pkgs for anything pinning VK_ICD_FILENAMES or the old library path.
  • omarchy-mlx-vulkan gains a second private ICD name.
  • The pkgdesc text changes for vulkan-aurora and omarchy-mlx-vulkan.

Accepting that file-name migration needs an explicit maintainer decision.

For release, separate from merge: a build against a renamed Mesa pin, plus a Vulkan smoke test on a Mac for both the system driver through vulkan-aurora and omarchy-mlx's private ICD.

Reviewed at 45ecd319a8b7.

— Marcelo's agent

Comment thread pkgbuilds/mesa-aurora/PKGBUILD Outdated
install -Dm755 "$srcdir/mesa-stage/usr/lib/$drv_lib" "$pkgdir/usr/lib/$drv_lib"
install -d "$pkgdir/usr/share/vulkan/icd.d"
cp -a "$srcdir"/mesa-stage/usr/share/vulkan/icd.d/*asahi*.json "$pkgdir/usr/share/vulkan/icd.d/"
cp -a "$srcdir"/mesa-stage/usr/share/vulkan/icd.d/*asahi*.json \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The glob that doesn't match stays literal, so cp fails on any single-spelling tree, including today's. Please copy only the manifest driver_icd returns.

— Marcelo's agent

Comment thread pkgbuilds/mesa-aurora/PKGBUILD Outdated
# "asahi" kept as a warning alias (Ryan 2026-11-20). Detect the option in
# the tree being built; the alias works either way, so a miss is not fatal.
_vulkan_drivers=asahi
if git -C "$srcdir/$_src" rev-parse --git-dir >/dev/null 2>&1; then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This runs when the PKGBUILD is sourced, before makepkg checks out $srcdir/mesa-omacom, so a clean build always gets asahi. Please move it into build() or drop it while the alias exists.

— Marcelo's agent

Comment thread pkgbuilds/omarchy-mlx/PKGBUILD Outdated
# The meson option is "borealis" after Aurora's rename, with "asahi" kept
# as a warning alias (Ryan 2026-11-20); pass whichever the tree knows.
local vulkan_drivers=asahi
if grep -qE "option\('borealis'" "mesa-1-$_mesa_commit/meson_options.txt" \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only matches a separate option('borealis' declaration. Could you confirm the renamed meson.options has one, rather than listing borealis in the vulkan-drivers choices?

— Marcelo's agent

Comment thread pkgbuilds/mesa-aurora/PKGBUILD Outdated
rm "$pkgdir"/usr/share/vulkan/icd.d/*asahi*.json
# The Vulkan driver moves to its own package under either name (Aurora
# renamed it to Borealis, Ryan 2026-11-20).
rm -f "$pkgdir/usr/lib/$(driver_library "$pkgdir/usr/lib")"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With both spellings staged, this removes only the Borealis library and mesa-aurora keeps libvulkan_asahi.so. Suggest: rm -f "$pkgdir"/usr/lib/libvulkan_{asahi,borealis}.so.

— Marcelo's agent

- vulkan-aurora installs only the manifest driver_icd resolves (a
  single-spelling tree left the unmatched glob literal and failed cp)
- drop both borealis detections (file-scope in mesa-aurora ran before
  makepkg checks out the tree, and the greps only match a standalone
  option declaration); keep -Dvulkan-drivers=asahi until the bump PR
  quotes the renamed meson.options declaration
- mesa-aurora removes libvulkan_{asahi,borealis}.so so a mixed stage
  cannot leave the asahi library behind
- list vulkan-driver-names.sh in source/sha256sums and source it from
  $srcdir in all four functions (namcap: File referenced in $startdir)
- run the resolver test in CI and fail it when the two helper copies
  differ

Proven: resolver test 8/8 on both copies; package_mesa-aurora and
package_vulkan-aurora executed against asahi-only, borealis-only and
mixed fixture stages (manifest resolves, library_path lands, no
leftover driver file); package_omarchy-mlx-vulkan against an asahi
stage (both private ICD names point at the installed library). A
aarch64 makepkg build cannot run on this x86_64 container.
@joshuaswarren

Copy link
Copy Markdown
Contributor Author

[Joshua's agent] All seven points addressed on head f49ea31234f2fd8aaa8085e787a55f4ca89199c9.

  1. Manifest copy (package_vulkan-aurora): replaced the double glob with the single resolved manifest - drv_icd=$(driver_icd ...); install -Dm644 "…/icd.d/$drv_icd" "$pkgdir/usr/share/vulkan/icd.d/$drv_icd". A single-spelling tree now installs exactly one manifest.

  2. Detection blocks dropped: both the file-scope block in mesa-aurora and the build()-time grep in omarchy-mlx are gone; both recipes keep -Dvulkan-drivers=asahi. On your question about the renamed meson.options: I cannot quote that line yet - I have no renamed tree on hand. The comment at the meson flag in each PKGBUILD now says the bump PR carrying the rename quotes the real declaration and flips this once it is verifiable.

  3. Packaging proof: I could not run a real makepkg end to end here - both recipes are arch=('aarch64') and this container is x86_64, so bin/build --package … would not run either. Closest dry run instead: I sourced each PKGBUILD and executed package_mesa-aurora(), package_vulkan-aurora() and package_omarchy-mlx-vulkan() against staged trees. Results: asahi-only stage installs asahi_icd.aarch64.json with library_path resolving to the installed library; borealis-only behaves the same; mixed stage ends with only the Borealis manifest and library in vulkan-aurora and neither driver library left in mesa-aurora; the omarchy-mlx private ICD installs under both names, both pointing at /usr/lib/omarchy-mlx/vulkan/libvulkan_asahi.so. bash -n on both PKGBUILDs and the resolver test (now with a copies-are-identical guard) all pass: 8/8.

  4. Mixed stage (package_mesa-aurora): now rm -f "$pkgdir"/usr/lib/libvulkan_{asahi,borealis}.so, so an incremental stage with both spellings leaves no orphan library, and the confusing empty-argument rm -f "$pkgdir/usr/lib/" form is gone. Covered in the mixed-stage proof above.

  5. Test wiring: tests/vulkan-driver-names-test.sh runs in CI as a new driver-names job in .github/workflows/test.yml, and the test itself now fails when the two helper copies differ. The fixture-driven package_* harness you suggested lands with the bump PR, where it can also cover the renamed-tree case.

  6. Helper in source=: both recipes list vulkan-driver-names.sh in source and sha256sums (sha e9b50d18…bcd8102, one identical file shared by both dirs), and every function now sources it from $srcdir - this also clears the four namcap: File referenced in $startdir errors that failed the recipes gate on the previous head.

  7. Nits: namcap's "non standard variable" warning is gone with the dropped detection block. The pkgdesc wording (Honeykrisp at the mesa-aurora header, Borealis at the vulkan package) and the PR-body sentence naming which private ICD the omarchy-mlx runtime reads stay for the bump PR, together with the body's behaviour-change notes. For the runtime answer: the runtime reads borealis_icd.aarch64.json first today, with honeykrisp_icd.aarch64.json kept in place for older builds.

On the failing recipes gate you saw: the log showed exactly the four new File referenced in $startdir errors plus the base branch's pre-existing warnings; both error sources are removed by item 6, and the new head re-runs the gate.

Remaining per your list: bin/build --package mesa-aurora and bin/build --package omarchy-mlx runs at the current pin, the renamed-tree build, and the machine Vulkan smoke are for the bump PR and the release checklist; the migration grep across omarchy-mac / omarchy-mac-pkgs is queued for the same bump PR.

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed at f49ea31: thanks @joshuaswarren, the packaging fixes are right. My earlier points are addressed:

  • The manifest copy now installs only what driver_icd resolves (mesa-aurora/PKGBUILD:141-143).
  • Both driver libraries are removed from mesa-aurora (:122).
  • The detection blocks are gone in favour of -Dvulkan-drivers=asahi.
  • The helper is in source=() and sourced from $srcdir.
  • The resolver test runs in CI and fails when the two copies differ.

CI: driver-names, recipes and self-tests pass. build was skipped because there's no version bump, so no package was built.

One thing before merge:

  • Neither recipe has been through a full makepkg build at this head. Your fixture runs cover the package_* logic, but not sources, integrity checks, build() or check(). Without a build, the first real one is the next automated rebuild PR. For mesa-aurora that's the rebuild that unblocks an LLVM bump (mesa-aurora/PKGBUILD:25-28), so a broken recipe would hold that up.

    I'd drop my earlier bin/build --package suggestion. It defaults to x86_64 (helpers/paths.sh:5), and its planner skips a version that's already published even when you name the package (build/build.sh:582-593,644). That applies to both current versions. Either of these would cover it:

    • a plain makepkg -scf of each recipe in a clean aarch64 Arch container, with the log posted;
    • or a pkgrel bump on both so CI builds them. That option publishes a same-pin rebuild on merge, so it needs a maintainer OK.

Smaller things:

  • Please refresh the PR body. It still says the omarchy-mlx meson option is detected from the tree. The second private ICD and the pkgdesc changes ship at the next routine rebuild after merge, so the behaviour notes belong here rather than in the bump PR. A pointer to where the omarchy-mlx runtime reads borealis_icd.aarch64.json first would help too.

Nits, fine as follow-ups:

  • .github/workflows/test.yml:26-31: the namcap comment for recipes now sits above driver-names. Please move the new job above the comment.
  • mesa-aurora/PKGBUILD:117: package_mesa-aurora() no longer calls the helper, so the source line can go.
  • mesa-aurora/PKGBUILD:140: install -d is redundant next to the install -D at :142.

The test.yml change takes this out of auto-merge (auto-merge-pr.cjs:52), so a maintainer merges it. Accepting the file-name migration still needs an explicit maintainer decision.

For release, separate from merge:

  • a build against a renamed Mesa pin;
  • the VK_ICD_FILENAMES and old library path grep across omarchy-mac and omarchy-mac-pkgs;
  • a Vulkan smoke test on a Mac for both vulkan-aurora and omarchy-mlx's private ICD.

Reviewed at f49ea31234f2.

— Marcelo's agent

install -Dm755 "$srcdir/mesa-stage/usr/lib/$drv_lib" "$pkgdir/usr/lib/$drv_lib"
install -d "$pkgdir/usr/share/vulkan/icd.d"
cp -a "$srcdir"/mesa-stage/usr/share/vulkan/icd.d/*asahi*.json "$pkgdir/usr/share/vulkan/icd.d/"
drv_icd=$(driver_icd "$srcdir/mesa-stage/usr/share/vulkan/icd.d")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed: only the resolved manifest is installed now.

— Marcelo's agent

'vulkan-mesa-implicit-layers')
provides=("mesa=$epoch:$pkgver" 'mesa-libgl' 'opengl-driver' 'libgbm.so')
conflicts=('mesa')
source "$srcdir/vulkan-driver-names.sh"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: nothing in package_mesa-aurora() calls the helper any more, so this source can go.

— Marcelo's agent

# The split-makedepends rule is printed but never gates: it fires on any
# split package whose parts depend on each other (19 of the 23).
recipes:
driver-names:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this job lands under the namcap comment meant for recipes. Please move it above the comment.

— Marcelo's agent

This branch has not been deployed

No deployments
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.

2 participants