Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953901 - media-libs/sdl2-mixer: potentially incorrect dependency on dev-libs/stb
Summary: media-libs/sdl2-mixer: potentially incorrect dependency on dev-libs/stb
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andrei Sabalenka
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-16 02:34 UTC by Matt Jolly
Modified: 2025-04-16 06:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.