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

Bug 942682

Summary: games-fps/eduke32-20240619.10591 unnecessary sdl2-mixer [midi] dependency
Product: Gentoo Linux Reporter: klamp <klampiar>
Component: Current packagesAssignee: Conrad Kostecki <conikost>
Status: UNCONFIRMED ---    
Severity: trivial CC: games
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description klamp 2024-11-01 19:44:35 UTC
eduke32 unconditionally depends on sdl2-mixer with midi use flag enabled, but modified ebuild with "midi" dependency removed builds and runs against sdl2-mixer without midi seemingly fine, including music. This is because eduke32 has builtin adlib music code and opl3emu which converts soundtrack .mid files to sound samples.

This dependency should be (probably) required only when eduke32s "timidity" or "fluidsynth" use flags are turned on, but sdl2-mixer ebuild already contains this logic:

midi? ( any-of ( timidity fluidsynth ) ) timidity? ( midi ) fluidsynth? ( midi ) tremor? ( vorbis )

Reproducible: Always

Steps to Reproduce:
1. USE="-timidity -fluidsynth"  emerge -v eduke32

Actual Results:  
The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by games-fps/eduke32-20240619.10591::gentoo
# required by eduke32 (argument)
>=media-libs/sdl2-mixer-2.6.3-r1 midi
...


Expected Results:  
Package should merge without complaints