View previous topic :: View next topic |
Author |
Message |
CrazyTerabyte Apprentice
Joined: 30 Dec 2004 Posts: 193
|
Posted: Sat Dec 01, 2007 8:25 pm Post subject: Weird USE flags for glibc and gcc: gtk and gd |
|
|
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 |
|
|
ltboy Apprentice
Joined: 26 Oct 2004 Posts: 197 Location: Utah
|
Posted: Sun Dec 02, 2007 7:34 am Post subject: |
|
|
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 |
|
|
djinnZ Advocate
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Sun Dec 02, 2007 12:39 pm Post subject: |
|
|
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
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist |
|
Back to top |
|
|
ltboy Apprentice
Joined: 26 Oct 2004 Posts: 197 Location: Utah
|
Posted: Sun Dec 02, 2007 8:11 pm Post subject: |
|
|
Ok, that answers the first question, now, how about glibc having the gd use flag? _________________ Mmmm.... Brains! |
|
Back to top |
|
|
CrazyTerabyte Apprentice
Joined: 30 Dec 2004 Posts: 193
|
Posted: Sun Dec 02, 2007 10:36 pm Post subject: |
|
|
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 |
|
|
djinnZ Advocate
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Mon Dec 03, 2007 10:31 am Post subject: |
|
|
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
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9596 Location: beyond the rim
|
Posted: Mon Dec 03, 2007 11:51 am Post subject: |
|
|
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 |
|
|
CrazyTerabyte Apprentice
Joined: 30 Dec 2004 Posts: 193
|
Posted: Mon Dec 03, 2007 12:21 pm Post subject: |
|
|
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 |
|
|
|