Repository navigation
pkgs: accept the Borealis driver names in omarchy-mlx and mesa-aurora - #3177
joshuaswarren wants to merge 2 commits into
Conversation
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>
[Medium impact] The PR appears safe to merge; all previous findings are fixed, and no new actionable issues were found. SummaryBoth packages now accept the Borealis driver filenames while keeping support for Asahi.
Reviews (2) · Last reviewed commit: "pkgs: fix Vulkan packaging per review on..." · Reviewed by Greptile |
maralcbr
left a comment
There was a problem hiding this comment.
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:
vulkan-aurorapackaging fails on today's tree.pkgbuilds/mesa-aurora/PKGBUILD:144-146passes both*asahi*.jsonand*borealis*.jsontocp. On a tree with only one spelling, the unmatched pattern stays literal, socpfails, 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 breakvulkan-aurorawith no Mesa change at all. Please copy only the manifestdriver_icdresolves, for exampleinstall -Dm644 ".../icd.d/$drv_icd" "$pkgdir/usr/share/vulkan/icd.d/$drv_icd".- The
borealisdetection doesn't do what it says. In mesa-aurora it runs at file scope (mesa-aurora/PKGBUILD:43-51), so_optionsis fixed when the PKGBUILD is sourced. In a clean build that's before makepkg has checked out the tree, so it always getsasahi, and only a reused build directory would seeborealis. Both greps (mesa-aurora/PKGBUILD:45,omarchy-mlx/PKGBUILD:55) also only match a separateoption('borealis'declaration, while Mesa normally lists Vulkan drivers aschoicesofvulkan-drivers. Could you paste the line from the renamedmeson.options? Sinceasahistays an alias, I'd drop both blocks and keep-Dvulkan-drivers=asahifor now, or move the check intobuild()and match the real declaration. - Please post a packaging run at the current pin.
bash -nand the helper test never run apackage_*function, and CI built nothing because there's no pkgver or pkgrel bump. Abin/build --package mesa-auroraandbin/build --package omarchy-mlxrun 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_libraryprefers Borealis, so with both spellings staged,package_mesa-aurora()removes onlylibvulkan_borealis.so(:125).mesa-aurorathen keepslibvulkan_asahi.so, whilevulkan-auroraships the asahi manifest pointing at it. Pleaserm -f "$pkgdir"/usr/lib/libvulkan_{asahi,borealis}.so. That also avoids the confusingrm -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.shisn't in.github/workflows/test.yml. Adding./tests/vulkan-driver-names-test.shthere runs it in this PR's CI. A case that sources each PKGBUILD and runs thepackage_*functions against asahi-only, Borealis-only and mixed fixture stages, liketests/aurora-edge/review.py:147-181does forcheck(), 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_driversis just an unprefixed copy of_vulkan_drivers. One underscore-prefixed variable is enough.mesa-aurora/PKGBUILD:8still says "Honeykrisp" while:132says "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.shinsource=()andsha256sums=()and source it from$srcdir, so amakepkg --sourcearchive 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 pinningVK_ICD_FILENAMESor the old library path.omarchy-mlx-vulkangains a second private ICD name.- The
pkgdesctext changes forvulkan-auroraandomarchy-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
| 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 \ |
There was a problem hiding this comment.
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
| # "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 |
There was a problem hiding this comment.
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
| # 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" \ |
There was a problem hiding this comment.
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
| 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")" |
There was a problem hiding this comment.
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.
|
[Joshua's agent] All seven points addressed on head
On the failing Remaining per your list: |
maralcbr
left a comment
There was a problem hiding this comment.
Re-reviewed at f49ea31: thanks @joshuaswarren, the packaging fixes are right. My earlier points are addressed:
- The manifest copy now installs only what
driver_icdresolves (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()orcheck(). 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 --packagesuggestion. 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 -scfof each recipe in a clean aarch64 Arch container, with the log posted; - or a
pkgrelbump on both so CI builds them. That option publishes a same-pin rebuild on merge, so it needs a maintainer OK.
- a plain
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
pkgdescchanges 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 readsborealis_icd.aarch64.jsonfirst would help too.
Nits, fine as follow-ups:
.github/workflows/test.yml:26-31: the namcap comment forrecipesnow sits abovedriver-names. Please move the new job above the comment.mesa-aurora/PKGBUILD:117:package_mesa-aurora()no longer calls the helper, so thesourceline can go.mesa-aurora/PKGBUILD:140:install -dis redundant next to theinstall -Dat: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_FILENAMESand old library path grep across omarchy-mac and omarchy-mac-pkgs; - a Vulkan smoke test on a Mac for both
vulkan-auroraand 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") |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
nit: this job lands under the namcap comment meant for recipes. Please move it above the comment.
— Marcelo's agent
Why
Aurora renamed its Vulkan driver to Borealis (Ryan 2026-11-20): the driver library becomes
libvulkan_borealis.so, the ICD manifestborealis_icd.<arch>.json, and the meson optionborealiswithasahikept as a warning alias. Theomarchy-mlxandmesa-auroraPKGBUILDs hardcode the asahi names, so the next Mesa bump carrying the rename breaks the build.What
vulkan-driver-names.shin 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 (borealiswhen present,asahiotherwise);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) withlibrary_pathpointing at the installed library under its real name.mesa-aurora: the driver library and ICD move tovulkan-auroraunder 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 -non both PKGBUILDs.