Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Weird USE flags for glibc and gcc: gtk and gd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CrazyTerabyte
Apprentice
Apprentice


Joined: 30 Dec 2004
Posts: 193

PostPosted: Sat Dec 01, 2007 8:25 pm    Post subject: Weird USE flags for glibc and gcc: gtk and gd Reply with quote

I've always noticed that gcc has a gtk useflag and I always wondered why. What would be that useflag for? Why would gcc need/have GTK+ support?

Now, I've noticed that glibc-2.6.1 has introduced a gd useflag, and then again I wonder why. (repeat the same questions as above)

Does anyone have an explanation for this? I tried to look at the ebuilds, but they are not very simple and they use shared coded imported from a place that I don't know where.

gtk - Adds support for x11-libs/gtk+ (The GIMP Toolkit)
gd - Adds support for media-libs/gd (to generate graphics on the fly)
Back to top
View user's profile Send private message
ltboy
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 197
Location: Utah

PostPosted: Sun Dec 02, 2007 7:34 am    Post subject: Reply with quote

Only thing I can figure is that this would put gtk and gd as standard libraries(i.e. ioctl and such)... but it really makes absolutely no sense to me... And google is giving me absolutely nothing...
_________________
Mmmm.... Brains!
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Sun Dec 02, 2007 12:39 pm    Post subject: Reply with quote

the gtk use flag will add support for gtk graphical interface in java programs in substitution of native interface if you have build gcc with gcj use flag or add the needed libraries to build gtk programs to the base dependanciens (and you will have a circular dependencies block in building system from stage3, so add it only after the emerge system is complete).
Or something so.
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
ltboy
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 197
Location: Utah

PostPosted: Sun Dec 02, 2007 8:11 pm    Post subject: Reply with quote

Ok, that answers the first question, now, how about glibc having the gd use flag?
_________________
Mmmm.... Brains!
Back to top
View user's profile Send private message
CrazyTerabyte
Apprentice
Apprentice


Joined: 30 Dec 2004
Posts: 193

PostPosted: Sun Dec 02, 2007 10:36 pm    Post subject: Reply with quote

This message says that gcc pulls GTK as dependency even if it does not have the gcj USE flag enabled. I'm not sure if this is still the case, maybe this is a bug that should be fixed?

I'm sorry, but gcc and glibc are too complicated and important ebuilds to let myself mess around, so I just ask for someone with more experience. ;)
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Mon Dec 03, 2007 10:31 am    Post subject: Reply with quote

The gtk use have no effects without gcj but can be a problem have an unused flag in gcc.
The use gd has only the global effects to install the gd lib as I see (but I have only hardened system and have not verified if is included in glib).
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9538
Location: beyond the rim

PostPosted: Mon Dec 03, 2007 11:51 am    Post subject: Reply with quote

sys-libs/glibc/ChangeLog wrote:
18 Nov 2007; Mike Frysinger <vapier@gentoo.org>
files/eblits/src_compile.eblit, glibc-2.6.1.ebuild, glibc-2.7.ebuild:
Build gd-based helper tools when USE=gd #198381.
Back to top
View user's profile Send private message
CrazyTerabyte
Apprentice
Apprentice


Joined: 30 Dec 2004
Posts: 193

PostPosted: Mon Dec 03, 2007 12:21 pm    Post subject: Reply with quote

Genone wrote:
Build gd-based helper tools when USE=gd #198381.

The [bug=198381]bug #198381 - sys-libs/glibc doesn't install memusage and memusagestat[/url] says that gd USE flag enables some tools that were not previously installed: memusage and memusagestat. It also says that media-libs/gd package must be emerged before enabling this USE flag.

Thanks, people, for the explanation!
Also... Has anyone checked if +gtk -gcj still depends on GTK?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum