Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 929986

Summary: media-libs/sdl2-ttf should not depend on virtual/opengl
Product: Gentoo Linux Reporter: Yaroslav Isakov <yaroslav.isakov>
Component: Current packagesAssignee: Gentoo Games <games>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Yaroslav Isakov 2024-04-14 08:02:37 UTC
Hello! I found, that CMake in media-libs/sdl2-ttf is checking for opengl only for sample programs (glfont and showfont), which are, even if selected, only built, but not installed on merge. objdump -x /usr/lib64/libSDL2_ttf-2.0.so.0.2000.2 also shows no signs of opengl dep.

I'm suggesting to drop both virtual/opengl dep from ebuild, and building of sample programs, if they're not installed, but setting SDL2TTF_SAMPLES to OFF. These changes allowed to build and use SDL2TTF of my system.

If this won't work, then, please, at least change dep from virtual/opengl (which is pretty outdated, as it depends on X11), to use glnvd (as CMake is also preferring).