Skip to content

fix(linux): keep the GPU driver libraries' versioned names - #118

Merged
mcoliver merged 1 commit into
mainfrom
fix/linux-keep-driver-sonames
Oct 11, 2026
Merged

mcoliver merged 1 commit into
mainfrom
fix/linux-keep-driver-sonames

Conversation

@mcoliver

@mcoliver mcoliver commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The Linux build probably doesn't start on an ordinary desktop.

sanitize_homebrew_links.py rewrites every library a Linux binary needs to its unversioned name (libOpenEXR-3_4.so.33 → libOpenEXR.so), so the build survives Homebrew upgrades. It does the same to the GPU driver libraries. utv.bin needs libGLX.so and libOpenGL.so instead of libGLX.so.0 and libOpenGL.so.0, and 18 references across the package are affected:

Library References
libOpenGL.so 8
libGLX.so 5
libGL.so 3
libEGL.so 1
libvulkan.so 1

Those libraries come from the system. bin/utv deliberately skips Homebrew's mesa and libglvnd, and preloads the system libGL/libEGL. But distributions install the unversioned names only with their -dev packages. In a clean Ubuntu 24.04 container with just the runtime packages (libgl1 libglx0 libopengl0 libegl1):

$ ldd utv.bin | grep -E "libGLX|libOpenGL"
	libGLX.so => not found
	libOpenGL.so => not found

After apt install libglvnd-dev both resolve. CI never noticed because GitHub's Ubuntu images have the -dev packages installed.

Fix

Leave the driver stack as linked: libGL, libGLX, libOpenGL, libEGL, libGLdispatch, libGLES*, libgbm, libdrm and libvulkan. Their sonames are stable. Everything else (Homebrew's GLU, GLEW, X11, Qt, OpenEXR, …) is still mapped to unversioned names as before.

Testing

  • Mapping: libGLX.so.0, libOpenGL.so.0, libGL.so.1, libEGL.so.1, libGLESv2.so.2, libvulkan.so.1 and libdrm.so.2 are now kept. libGLU.so.1, libGLEW.so.2.3, libX11.so.6, libQt6Gui.so.6 and libOpenEXR-3_4.so.33 are still mapped to unversioned names.
  • Clean container: in the runtime-only container, the shipped utv.bin with its two GL entries set back to the versioned names (patchelf --replace-needed) resolves libGLX.so.0 and libOpenGL.so.0 from the system. That system has no unversioned libGLX.so or libOpenGL.so at all.
  • Next: check this PR's Linux artifact the same way.

sanitize_homebrew_links.py rewrites every library a Linux binary needs
to its unversioned name (libOpenEXR-3_4.so.33 -> libOpenEXR.so) so that
the build survives Homebrew upgrades. It did the same to the GPU driver
libraries: utv.bin needed libGLX.so and libOpenGL.so instead of
libGLX.so.0 and libOpenGL.so.0, and 18 references across the package
(libOpenGL 8, libGLX 5, libGL 3, libEGL 1, libvulkan 1) were affected.

Those libraries come from the system: bin/utv skips Homebrew's mesa and
libglvnd and preloads the system libGL and libEGL. Distributions install
the unversioned names only with their -dev packages. In a clean Ubuntu
24.04 with just libgl1, libglx0, libopengl0 and libegl1, ldd reports
libGLX.so and libOpenGL.so as "not found", so UTV would not start on an
ordinary desktop. CI didn't notice because GitHub's Ubuntu images have
the -dev packages.

Leave libGL, libGLX, libOpenGL, libEGL, libGLdispatch, libGLES*, libgbm,
libdrm and libvulkan as linked; their sonames are stable. With the
versioned names, the same container resolves both libraries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Signed-off-by: Michael Oliver <mcoliver@gmail.com>
@mcoliver
mcoliver merged commit 6692ebd into main Oct 11, 2026
16 checks passed
@mcoliver
mcoliver deleted the fix/linux-keep-driver-sonames branch October 11, 2026 16:19
mcoliver added a commit that referenced this pull request Oct 14, 2026
…119)

The Rocky 9 job failed in every release (it builds its venv from Rocky's
Python 3.9, which has no headers for the OpenTimelineIO wheel) and never
published anything, as it is continue-on-error. Remove it for now.
Enterprise Linux studios can build from source with the existing guide,
docs/build_system/config_linux_rocky89.md.

The README had no Linux install instructions. Add the tarball plus
Homebrew on Linux steps, the system OpenGL packages, and the
libglvnd-dev workaround that 2026.13 and earlier need (#118), and point
Rocky/Alma/RHEL users to the build-from-source guide.

Correct two rows of the comparison table: Linux is no longer packaged
as DEB/RPM, and PNG sequences are not 3-4x faster from libspng (libspng,
libpng and OpenImageIO decode a 6K PNG at the same speed, and PNG reads
go through OpenImageIO); the speedup comes from look-ahead caching
across reader threads.

Signed-off-by: Michael Oliver <mcoliver@gmail.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