Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424539 - games-fps/qudos: problem with opengl & sdl use flags
Summary: games-fps/qudos: problem with opengl & sdl use flags
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Games
Depends on:
Reported: 2012-07-02 17:52 UTC by Raimonds Cicans
Modified: 2016-04-17 01:59 UTC (History)
2 users (show)

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

Fix for sdl & opengl use flag problem (qudos.diff,755 bytes, text/plain)
2012-07-02 17:52 UTC, Raimonds Cicans

Note You need to log in before you can comment on or make changes to this bug.
Description Raimonds Cicans 2012-07-02 17:52:47 UTC
Created attachment 316993 [details]
Fix for sdl & opengl use flag problem

games-fps/qudos fail to build if use flags set to '-opengl sdl' or 'opengl -sdl'


1) ebuild don't touch BUILD_SDL flag. Because by default BUILD_SDL=YES sources unconditionally depend on libsdl. BUILD_SDL should depend on sdl use flag.

2) BUILD_SDLGL depends only on sdl use flag but should depend on both sdl & opengl

Attached fix is based on games-fps/quake2-icculus
Comment 1 Jared B. 2012-09-20 22:40:46 UTC
I was recently checking out qudos myself and came across this bug.  Few observations:

* Emerging the in-tree version with USE="-sdl opengl" works fine for me
* Emerging with with USE="-opengl sdl" will compile, but it fails to run with this error message:

======== Video Initialization ========

------- Loading -------
LoadLibrary("") failed: No such file or directory
Trying to load default, restarting video...

* Emerging Raimonds' patched version results in the same behavior for both scenarios.

* Removing the -j1 option from emake results in a MUCH faster emerge (as would be generally expected) that still builds and runs perfectly fine.  I think this is a legacy workaround that can probably be removed now.

Not sure why I get different behavior than Raimond regarding the opengl and sdl stuff.  I'm on amd64, if that matters.  May be worth getting a third opinion.  :-)
Comment 2 Raimonds Cicans 2012-10-21 12:32:14 UTC
I forgot to mention: respective libraries must be uninstalled
"-opengl" == uninstalled mesa library
"-sdl" == uninstalled sdl library
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2016-04-17 01:59:32 UTC
should be better now.