Bug#1130655: fails to start without libgl1

Simon McVittie smcv at debian.org
Sat Mar 14 10:24:36 GMT 2026


On Fri, 13 Mar 2026 at 22:59:10 +0200, Dmitry Baryshkov wrote:
>supertuxkart doesn't have a dependency on the libgl1 package, because it
>is not linked to it. However it tries to dlopen(libGL.so.1) at runtime
>and fails to start if the library is not available. Please add a runtime
>dependency from supertuxkart to libgl1 package.

One good way to achieve this would be to add a dlopen note 
<https://uapi-group.org/specifications/specs/elf_dlopen_metadata/>, and 
build-depend on dh-dlopenlibdeps to turn that into a substvar 
${dlopen:Depends}. That way, library transitions that rename packages 
(like the t64 transition) won't break a hard-coded dependency.

SDL 3 has macros to create dlopen notes, but this is a SDL 2 game. The 
macros from SDL 3 could probably be copy/pasted, or there is an 
extremely permissively-licensed implementation in src:package-notes.

     smcv



More information about the Pkg-games-devel mailing list