Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74506 - Dopewars gtk2 and sdl use flags doesn't work
Summary: Dopewars gtk2 and sdl use flags doesn't work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-15 07:53 UTC by Simon Vermeersch
Modified: 2004-12-15 10:10 UTC (History)
0 users

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 Simon Vermeersch 2004-12-15 07:53:53 UTC
I tried to emerge dopewars using following use-flags: "-esd -gnome -gtk +gtk2 +ncurses +nls +sdl", and I could only use the ncurse interface, not the gtk2 one.
Reemerging with gtk enabled allowed me to play with a gui.
I couldn't play the game when compiling with only gtk2 or sdl enabled.

Reproducible: Always
Steps to Reproduce:
1. USE="-gtk gtk2" emerge dopewars
2. dopewars
3.

Actual Results:  
you see a ncurses interface

Expected Results:  
play with an gtk2 gui

After looking at INSTALL of dopewars, I couldn't find anything related to sdl
and gtk2, so maybe these USE-flags are just useless ?
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2004-12-15 08:41:21 UTC
USE="-gtk +gtk" means the following:

Do not use optional GTK support, but when I have a choice, use GTK2.

What you want is USE="+gtk +gtk2" which means:

Enable optional gtk support and prefer gtk2 over gtk1.
Comment 2 Simon Vermeersch 2004-12-15 08:51:23 UTC
I understand why that you mean, but if I do emerge -pv dopewars, it shows me that dopewars supports the gtk2 USE flag, but it doesn't have any effects when it's enabled or not.
Shouldn't it be removed from the IUSE line in the ebuild ?
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2004-12-15 10:10:46 UTC
    if use gtk ; then
        myservconf="--enable-gui-server `use_enable gtk2 glib2`"

That says that if you have gtk in your USE, to --enable-gui-server and if you have gtk2 in your USE, to --enable-glib2, which in turns enables a gtk2 front-end.

The ebuild is correct.  The dopewars ebuild *does* support the gtk use flag and uses it correctly.  You *must* have the gtk USE flag for the gtk2 USE flag to be effective, as in all other ebuilds that have optional GTK support.