Skip to content

aurora-flatpak-gl: move in lockstep with mesa-aurora - #40

Merged
RyanTheTide merged 1 commit into
mainfrom
feat/flatpak-gl-lockstep
Oct 28, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
feat/flatpak-gl-lockstep

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Follow-up to #36. The Flatpak GL extension package pinned its own Mesa commit, so it was still on 473e325b while the fleet moved to 0.16 and 0.17. This makes it move with the host Mesa.

Changes

  • aurora-flatpak-gl.spec takes commit, host_version and host_release from overridable macros, the same way mesa-aurora-fex-guest does. The defaults match packages/mesa-aurora, and tests/test_specs.py checks that they stay equal and that the commit is the mesa-aurora pin in sources.json.
  • scripts/track-sources.py moves those three macros along with the mesa-aurora pin, and the tracker may now touch this spec. There's a new test for it in tests/test_track_sources.py.
  • build-extension.sh writes aurora-mesa-commit.<branch> into the repository after each export. A --with repo build refuses a repository whose stamps name a different commit than the spec, so a stale repository can't be packaged under a new version.

Fleet builds that don't come from the pin pass the commit in, as with the FEX guest:

rpmbuild --with repo --define 'commit 108c7218bbb6cddcb91c29680ff0770d29afcecc' \
  --define 'host_version 26.3.0' --define 'host_release 0.17.aurora.borealis.108c7218bbb6%{?dist}' ...

I kept the Version at 26.3.0 instead of the fleet's 26.3.0~devel for this build. The tilde sorts below the 26.3.0-0.1 package already on the J616s and Neo, so dnf would treat it as a downgrade.

Rebuild at aurora-silicon/mesa 108c7218 (fleet 0.17)

Built on the buildbox with the same recipe. Only the Mesa module rebuilt, the CL compiler dependencies came from the flatpak-builder cache.

  • org.freedesktop.Platform.GL.aurora/aarch64/25.08, ostree commit f8762179f69c
  • org.freedesktop.Platform.GL.aurora/aarch64/26.08, ostree commit 51fcad75db91
  • repository tarball aurora-flatpak-gl-repo-108c7218bbb6.tar, sha256 0222f1a2fcfc6a92fe1fe12c9187f7bc042259ef8a18aa551dca7216f244c772
  • aurora-flatpak-gl-26.3.0-0.17.aurora.borealis.108c7218bbb6.fc44.aarch64.rpm, sha256 0ea02146c17661ec9f1f9a407426f0a657156e1ddd8cfe3fae374768cf861764
  • the default build without the repository (what CI builds) gives aurora-flatpak-gl-26.3.0-7.fc44.aurora
  • a --with repo build at the sources.json commit with this repository fails in %install on the stamp check, as intended

Testing (M1 Pro)

Installed the 473e325b package and then dnf upgrade to the 108c7218 one. Both extension branches updated in place. In GPU-Viewer on org.gnome.Platform 50 (25.08) and 51 (26.08):

GPU0  Apple M1 Pro (G13S C0)  Borealis
      Mesa 26.3.0-devel (git-108c7218bb), Borealis, derived from Honeykrisp
GPU1  llvmpipe (LLVM 22.1.8)  Mesa 26.3.0-devel (git-108c7218bb) (LLVM 22.1.8)
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.3.0-devel (git-108c7218bb)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.3.0-devel (git-108c7218bb)

The M1 Pro's system Mesa is still 0.15 (473e325b) because the fleet 0.17 RPMs are still building. Comparing against the system string has to wait for that roll.

🤖 Generated with Claude Code

The extension package pinned its own Mesa commit, so it fell behind as
soon as the host Mesa moved. It now takes commit, Version and Release
from overridable macros like mesa-aurora-fex-guest, the source tracker
moves them with the mesa-aurora pin, and tests/test_specs.py checks
that they match.

build-extension.sh stamps each exported branch with its Mesa commit
(aurora-mesa-commit.<branch> in the repository) and the --with repo
build refuses a repository whose stamps name another commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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