Repository navigation
fix(linux): keep the GPU driver libraries' versioned names - #118
Merged
Merged
Conversation
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>
This was referenced Oct 11, 2026
4 tasks
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Linux build probably doesn't start on an ordinary desktop.
sanitize_homebrew_links.pyrewrites 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.binneedslibGLX.soandlibOpenGL.soinstead oflibGLX.so.0andlibOpenGL.so.0, and 18 references across the package are affected:libOpenGL.solibGLX.solibGL.solibEGL.solibvulkan.soThose libraries come from the system.
bin/utvdeliberately skips Homebrew'smesaandlibglvnd, and preloads the systemlibGL/libEGL. But distributions install the unversioned names only with their-devpackages. In a clean Ubuntu 24.04 container with just the runtime packages (libgl1 libglx0 libopengl0 libegl1):After
apt install libglvnd-devboth resolve. CI never noticed because GitHub's Ubuntu images have the-devpackages installed.Fix
Leave the driver stack as linked:
libGL,libGLX,libOpenGL,libEGL,libGLdispatch,libGLES*,libgbm,libdrmandlibvulkan. Their sonames are stable. Everything else (Homebrew's GLU, GLEW, X11, Qt, OpenEXR, …) is still mapped to unversioned names as before.Testing
libGLX.so.0,libOpenGL.so.0,libGL.so.1,libEGL.so.1,libGLESv2.so.2,libvulkan.so.1andlibdrm.so.2are now kept.libGLU.so.1,libGLEW.so.2.3,libX11.so.6,libQt6Gui.so.6andlibOpenEXR-3_4.so.33are still mapped to unversioned names.utv.binwith its two GL entries set back to the versioned names (patchelf --replace-needed) resolveslibGLX.so.0andlibOpenGL.so.0from the system. That system has no unversionedlibGLX.soorlibOpenGL.soat all.