Ok, while sdl-mixer claims to depend on libmikmod. It actually doesn't. It includes an old version of libmikmod and links it in statically. This causes for example that the mod garbling on amd64 will not be fixed by the libmikmod patch. There are two options to fix sdl-mixer. First to remove the mikmod dependency from sdl-mixer. Another one, rather, but more dangerous (should be tested first) is to apply some patches to make it build against an external mikmod. I'll attach the needed patchfile, but it also changes some parts of the source so that's where the danger is. I didn't thoroughly test the patches on the area of building with other packages and running well.
Created attachment 31901 [details, diff] 1.2.5-libmikmod.patch The patch that enables building against the external libmikmod
Created attachment 31903 [details] sdl-mixer-1.2.5-r2.ebuild The ebuild that applies the patch. Note that it also has added die options if the patching fails !!!
used a slightly different patch and added to portage, thanks
The new ebuild does not work if the user does not USE mikmod. I have "-mikmod" in my make.conf, and emerge fails with the error ld: cannot find -lmikmod
i suck at life
seems to be an autoconf bug ... i'll poke around
Re: Comment #4 in case this hasn't already been fixed: use_enable line in sdl-mixer-1.2.5-r2.ebuild for mikmod appears to run correctly with `use_enable mikmod music-mod` rather than `use_enable mikmod mod` for users with USE="-mikmod"
After upgrading to r2, I get these from tuxracer but not from r1. No music is played and I can never enter a race in tuxracer, it just halt. %%% tuxracer warning: FAILED to load music file music/start1-jt.it: No error %%% tuxracer warning: FAILED to load music file music/options1-jt.it: No error %%% tuxracer warning: FAILED to load music file music/race1-jt.it: No error %%% tuxracer warning: FAILED to load music file music/wonrace1-jt.it: No error
ah it was a bug in the ebuild ... the configure option is 'music-mod' not 'mod' fixed in cvs, sorry about that
totally breaks stuff
*** Bug 52064 has been marked as a duplicate of this bug. ***
1.2.5-r1 includes a patch which fixes amd64 issues as for not using system mikmod, we'll let upstream handle that