Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Use flags - kde,gnome,gtk,qt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ggaaron
Apprentice
Apprentice


Joined: 10 May 2007
Posts: 217

PostPosted: Fri Jul 13, 2007 1:00 pm    Post subject: Use flags - kde,gnome,gtk,qt Reply with quote

What do this flags really do? What is the difference between openoffice with kde and with gnome and maybe with both. If I use fluxbox with both gnome and kde programs then what use flags I should set?

I'm just confused, use flags have only short explanations of what they do and "adds kde support" doesn't tell much.

Thanks in advance for your help
Aaron
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7665
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jul 13, 2007 1:43 pm    Post subject: Reply with quote

Aaron,

There have been posts like this before expressing frustration with the documentation of the USE flags, the lack of specifics, and so on. And while it's true that most developers like to code much more than they like to document, what hasn't been said that I know of is that the (Gentoo) developer that supports the ebuild for an external package may not even know. Not for sure, at least.

Here's the scenario. A Gentoo developer hears good things about package foo, checks it out, and decides to make an ebuild. He sees that the configure script for foo supports a --with-kde configuration option and looks in the (package) developer's release notes. In there he sees "--with-kde" documented as "Adds KDE support" and, knowing that a lot of Gentoo users use KDE (and knowing about the kde USE flag) make the kde USE flag enable the "--with-kde" option to the configure script. Similarly, the (Gentoo) developer sees that there is also a --with-minix-filesystem-support option to the configure script. The (Gentoo) developer make a judgement call that this is not really a very desirable feature when compiling foo for Linux as opposed to Minix and thus a "minix" USE flag is never born.

In neither case did our hero (the Gentoo developer, of course) know precisely what these configuration options do (although he might have a very educated guess): he just made an informed decision on what preexisting configurability of package foo to expose via USE flags.

Now, regarding one of your specific questions, I can make an educated guess. :)

Any X package will run under any windows manager. However, each windows manager supports a different look & feel, part of which is called "window dressing". A pure X application won't use any KDE APIs and thus will not pick up on the window styles, fonts, color schemes, etc., of KDE. "KDE support" typically means having the capability to conform to the user's selected KDE look & feel.

Hope this helps, at least in a small way.

- John
Back to top
View user's profile Send private message
ggaaron
Apprentice
Apprentice


Joined: 10 May 2007
Posts: 217

PostPosted: Fri Jul 13, 2007 2:20 pm    Post subject: Reply with quote

Ok, so what happens if I use both gnome and kde? Some packages (like openoffice) use both flags, then I'll be able to control look of that program form kcontrol and some gnome control application (I've never found out what it is gconf-editor?) probably leading to conflicts? Should anyone use both flags?

And what about gtk and qt flags? I don't think that programs using gtk without gtk flag will start using pure X library or something :D Usually gtk gives optional graphic interface (lshw, mplayer), but what does it do to gcc? I've never checked what it does but gcc doesn't look like an X program=) So it is common that gtk flags adds graphic interface? (openoffice again - there is a gtk flag doing what?) qt flag is not widely used and programs that use it are more self-explanary.

Again, if I use fluxbox, then which flags should I use? qt probably (used by poppler-binding and so on) as I use qt applications, but what about gtk and kde/gnome?

I know that if you make an ebuld it is sometimes hard to guess what does --something do, you add something use flag and everything is ok=)

Thanks for help
Aaron
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Fri Jul 13, 2007 2:47 pm    Post subject: Reply with quote

ggaaron wrote:
Ok, so what happens if I use both gnome and kde?

Depends on the software in question. Either support for both or, if conflicting, the ebuild maintainer defaults to either one (and throws an einfo line about it, if he's nice).
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7665
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jul 13, 2007 5:34 pm    Post subject: Reply with quote

ggaaron wrote:
Usually gtk gives optional graphic interface (lshw, mplayer), but what does it do to gcc? I've never checked what it does but gcc doesn't look like an X program=)
Well, for this type of question, you need to learn to read ebuilds. From the gcc-4.1.2 ebuild:
Code:
RDEPEND=">=sys-libs/zlib-1.1.4
    || ( >=sys-devel/gcc-config-1.3.12-r4 app-admin/eselect-compiler )
    virtual/libiconv
    fortran? (
        >=dev-libs/gmp-4.2.1
        >=dev-libs/mpfr-2.2.0_p10
    )
    !build? (
        gcj? (
            gtk? (
                || ( ( x11-libs/libXt x11-libs/libX11 x11-libs/libXtst x11-proto/xproto x11-proto/xextproto ) virtual/x11 )
                >=x11-libs/gtk+-2.2
                x11-libs/pango
            )
            >=media-libs/libart_lgpl-2.1
        )
        >=sys-libs/ncurses-5.2-r2
        nls? ( sys-devel/gettext )
    )"
This is the runtime dependencies portion of the ebuild. Roughly translated, the portion that has the gtk USE flag says, "If the gcj USE flag is set and the gtk USE flag is set, then add a bunch of dependencies on X11 libraries, GTK, and pango." From that I can make an educated guess that some of the Java graphics libraries built with the Java compiler will use GTK.

The answer to your question is, after you've read the USE flag's very short description, there's really usually no better source of information for the actual effect of a USE flag than (a) the ebuild source and (b) the package source. And, of course, helpful forum posters. Hopefully this is a passable introduction into how to find this information out for yourself. :)

- John
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5675
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Aug 18, 2007 4:26 pm    Post subject: Reply with quote

john_r_graham wrote:
ggaaron wrote:
Usually gtk gives optional graphic interface (lshw, mplayer), but what does it do to gcc? I've never checked what it does but gcc doesn't look like an X program=)
Well, for this type of question, you need to learn to read ebuilds. From the gcc-4.1.2 ebuild:
Code:
RDEPEND=">=sys-libs/zlib-1.1.4
    || ( >=sys-devel/gcc-config-1.3.12-r4 app-admin/eselect-compiler )
    virtual/libiconv
    fortran? (
        >=dev-libs/gmp-4.2.1
        >=dev-libs/mpfr-2.2.0_p10
    )
    !build? (
        gcj? (
            gtk? (
                || ( ( x11-libs/libXt x11-libs/libX11 x11-libs/libXtst x11-proto/xproto x11-proto/xextproto ) virtual/x11 )
                >=x11-libs/gtk+-2.2
                x11-libs/pango
            )
            >=media-libs/libart_lgpl-2.1
        )
        >=sys-libs/ncurses-5.2-r2
        nls? ( sys-devel/gettext )
    )"
This is the runtime dependencies portion of the ebuild. Roughly translated, the portion that has the gtk USE flag says, "If the gcj USE flag is set and the gtk USE flag is set, then add a bunch of dependencies on X11 libraries, GTK, and pango." From that I can make an educated guess that some of the Java graphics libraries built with the Java compiler will use GTK.

The answer to your question is, after you've read the USE flag's very short description, there's really usually no better source of information for the actual effect of a USE flag than (a) the ebuild source and (b) the package source. And, of course, helpful forum posters. Hopefully this is a passable introduction into how to find this information out for yourself. :)

- John


ah :idea: :!:

I already was wondering what sense the gtk-flag in gcc has :wink:
_________________
Unofficial minimal livecd x86/amd64 w/reiser4+truecrypt (by Neo2)
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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