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

Bug 953901

Summary: media-libs/sdl2-mixer: potentially incorrect dependency on dev-libs/stb
Product: Gentoo Linux Reporter: Matt Jolly <kangie>
Component: Current packagesAssignee: Andrei Sabalenka <mechakotik>
Status: CONFIRMED ---    
Severity: normal CC: games, kangie, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Matt Jolly gentoo-dev 2025-04-16 02:34:52 UTC
I recently packaged media-libs/sdl3-mixer, using this ebuild as a base (thanks!).

While doing so I noticed that the package seemingly depends on vendored `stb_vorbis.h`;  headers from dev-libs/stb cannot be used as they are not in the include path and there's no provision in the build system for that:

```
#include "stb_vorbis/stb_vorbis.h"
```

This is supported by being able to build media-libs/sdl3-mixer[stb] without dev-libs/stb on the system.

This include is unchanged since it was initially added in the following commit, and seems to have been included since 2.0.5:

https://github.com/libsdl-org/SDL_mixer/commit/2b495a2042c25190eef80c13b55b4a5a9bbe12b6

Please confirm and drop the dependency if that is the case.
Comment 1 Matt Jolly gentoo-dev 2025-04-16 06:13:31 UTC
Note that an alternative option is to patch the build system to enable use of system versions of stb, but we'd need to rebuild every time that updated and there's an (admittedly low) risk of breakage as a result. Ideally we want to upstream that change and get it merged into the SDL2 and SDL3 mixer branches.