Skip to content

compat.slint depends on compat.glx-runtime (GL vendor); capability-provider lint - #871

Merged
Sunrisepeak merged 1 commit into
mainfrom
slint-gl-provider
Nov 21, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
slint-gl-provider

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Problem

mcpp run of a Slint window aborted on an NVIDIA X11 desktop (argument does not name a valid config). Root cause: libglvnd is only a dispatcher. Nothing in compat.slint's dependency closure wires the GL vendor (Mesa, or NVIDIA through nvidia-gl-host-link) into it, so GLX found no vendor. compat.glfw already depends on compat.glx-runtime (-> xim:graphics) for exactly this; compat.slint did not. Confirmed on the real machine two ways: xim:graphics via [xlings.workspace], and compat.glx-runtime = "2026.09.11" in [dependencies]; both bring the window up.

Change

  • pkgs/c/compat.slint.lua: linux.deps gains compat.glx-runtime; dlopen_libs gains libGLX.so.0; capabilities gain x11.display and opengl.glx.driver; comments corrected. display and opengl.egl.driver are kept on purpose (nothing provides them yet; Wayland EGL is a known gap).
  • tests/check_capability_providers.lua (+ 8 unit tests): warns when a declared capability has no provider in the package's dependency closure. Warning for now; --strict fails. Wired into the lint job.
  • CHANGELOG, and the plan .agents/docs/2026-11-22-host-driver-link-and-display-path-plan.md.

Known

  • The lint reports 3 warnings on the current tree: compat.sdl2 x11.display (same shape; not reproduced on a real machine, left alone), and compat.slint display / opengl.egl.driver (kept by decision).
  • Local candidate-index run: tests/mwrap/slint-ui, tests/mwrap/slint-rule and the installed-template acceptance pass.
  • Not verified: machines with an old compat.slint re-resolving after a descriptor dependency change (U2); real-GPU confirmation is for the maintainer's desktop.

…r capabilities nobody provides

Slint's windowed run aborted on an NVIDIA X11 desktop: libglvnd is only the
dispatcher, and compat.slint named no package that wires the vendor
(Mesa or NVIDIA) into it. compat.glfw already depends on compat.glx-runtime,
which depends on xim:graphics; compat.slint now does the same on Linux.

tests/check_capability_providers.lua reports a declared runtime capability
that no package in the dependency closure provides (warning; --strict fails).
It currently also reports compat.sdl2 and the two names compat.slint keeps
on purpose (display, opengl.egl.driver). The plan records both.
@Sunrisepeak
Sunrisepeak merged commit 5fab49c into main Nov 21, 2026
20 checks passed
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