public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Too many X modules pulled in
@ 2006-08-20 14:21 Fredrik Tolf
  2006-08-20 18:56 ` Donnie Berkholz
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik Tolf @ 2006-08-20 14:21 UTC (permalink / raw
  To: gentoo-user

Dear List,

I'm trying to install Gentoo on a headless machine. I want programs to
use the X libraries, so that I can SSH in from another machine and use X
over TCP, but I'm not too fond of installing the entire X package
(especially the X server) on it, since it won't ever be used.

However, I just tried to install a couple of program linking against GTK
(such avahi), and GTK, for some reason, tries to pull in lots of stuff
that I don't really want (among others, the X server). Looking in the
GTK ebuild, I found this:

RDEPEND="|| ( (
                        x11-libs/libXrender
                        x11-libs/libX11
                        x11-libs/libXi
                        x11-libs/libXt
                        x11-libs/libXext
                        x11-libs/libXcursor
                        x11-libs/libXrandr
                        x11-libs/libXfixes
                        xinerama? ( x11-libs/libXinerama ) )
                virtual/x11 )
        >=dev-libs/glib-2.10.1
        >=x11-libs/pango-1.9
        >=dev-libs/atk-1.10.1
        >=x11-libs/cairo-0.9.2
        media-libs/fontconfig
        x11-misc/shared-mime-info
        >=media-libs/libpng-1.2.1
        jpeg? ( >=media-libs/jpeg-6b-r2 )
        tiff? ( >=media-libs/tiff-3.5.7 )"

DEPEND="${RDEPEND}
        sys-devel/autoconf
        >=dev-util/pkgconfig-0.9
        =sys-devel/automake-1.7*
        || ( (
                        x11-proto/xextproto
                        x11-proto/xproto
                        x11-proto/inputproto
                        x11-proto/xineramaproto )
                virtual/x11 )
        doc? (
                >=dev-util/gtk-doc-1.4
                ~app-text/docbook-xml-dtd-4.1.2 )"

I even emerged all those X11 dependencies myself, but even then, it
wants to emerge xorg-server. The first few lines of the output of
"emerge -tvp gtk+" look like this:

[ebuild  N    ] x11-libs/gtk+-2.8.19  USE="X jpeg -debug -doc -tiff
                                      -xinerama" 12,015 kB 
[ebuild  N    ]  x11-misc/shared-mime-info-0.17-r2  558 kB 
[ebuild  N    ]   dev-libs/libxml2-2.6.26  USE="ipv6 python readline
                                      -debug -doc -test" 3,338 kB 
[ebuild  N    ]   dev-util/intltool-0.35.0  126 kB 
[ebuild  N    ]  x11-libs/pango-1.12.3  USE="-debug -doc" 1,197 kB 
[ebuild  N    ]  x11-base/xorg-server-1.0.2-r7  USE="dri ipv6 -debug
                                      -minimal -xprint" 8,716 kB 

I'm not an expert with portage, but the fact that xorg-server is
indented one space from gtk+ means that gtk+ depends on it directly,
doesn't it? If so, whence does that dependency come from (it's obviously
not on the DEPEND or RDEPEND variables)?

Please help me -- what should I do to make gtk+ only pull in the minimal
amount of deps?

Thanks for your time!

Fredrik Tolf


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Too many X modules pulled in
  2006-08-20 14:21 [gentoo-user] Too many X modules pulled in Fredrik Tolf
@ 2006-08-20 18:56 ` Donnie Berkholz
  2006-08-21 19:18   ` Fredrik Tolf
  0 siblings, 1 reply; 4+ messages in thread
From: Donnie Berkholz @ 2006-08-20 18:56 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

Fredrik Tolf wrote:
> I'm not an expert with portage, but the fact that xorg-server is
> indented one space from gtk+ means that gtk+ depends on it directly,
> doesn't it? If so, whence does that dependency come from (it's obviously
> not on the DEPEND or RDEPEND variables)?
> 
> Please help me -- what should I do to make gtk+ only pull in the minimal
> amount of deps?

It's because it inherits the virtualx.eclass -- gtk+ requires an X
server (Xvfb) to build. What you can do is set USE="minimal -dmx -xorg
-xprint" in your package.use for xorg-server to minimize this. Also try
VIDEO_CARDS="" and INPUT_DEVICES="" in make.conf.

However, this only works well on xorg-server-1.1, so you will also need
to add it to package.keywords.

Thanks,
Donnie


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Too many X modules pulled in
  2006-08-20 18:56 ` Donnie Berkholz
@ 2006-08-21 19:18   ` Fredrik Tolf
  2006-08-22  2:41     ` Fredrik Tolf
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik Tolf @ 2006-08-21 19:18 UTC (permalink / raw
  To: gentoo-user

On Sun, 2006-08-20 at 11:56 -0700, Donnie Berkholz wrote:
> Fredrik Tolf wrote:
> > I'm not an expert with portage, but the fact that xorg-server is
> > indented one space from gtk+ means that gtk+ depends on it directly,
> > doesn't it? If so, whence does that dependency come from (it's obviously
> > not on the DEPEND or RDEPEND variables)?

> It's because it inherits the virtualx.eclass -- gtk+ requires an X
> server (Xvfb) to build. What you can do is set USE="minimal -dmx -xorg
> -xprint" in your package.use for xorg-server to minimize this. Also try
> VIDEO_CARDS="" and INPUT_DEVICES="" in make.conf.
> 
> However, this only works well on xorg-server-1.1, so you will also need
> to add it to package.keywords.

I see... how troublesome. Well, I guess there's no choice, but would
anyone happen to know the reason why gtk+ requires Xvfb?

Fredrik Tolf


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Too many X modules pulled in
  2006-08-21 19:18   ` Fredrik Tolf
@ 2006-08-22  2:41     ` Fredrik Tolf
  0 siblings, 0 replies; 4+ messages in thread
From: Fredrik Tolf @ 2006-08-22  2:41 UTC (permalink / raw
  To: gentoo-user

On Mon, 2006-08-21 at 21:18 +0200, Fredrik Tolf wrote:
> On Sun, 2006-08-20 at 11:56 -0700, Donnie Berkholz wrote:
> > Fredrik Tolf wrote:
> > > I'm not an expert with portage, but the fact that xorg-server is
> > > indented one space from gtk+ means that gtk+ depends on it directly,
> > > doesn't it? If so, whence does that dependency come from (it's obviously
> > > not on the DEPEND or RDEPEND variables)?
> 
> > It's because it inherits the virtualx.eclass -- gtk+ requires an X
> > server (Xvfb) to build. What you can do is set USE="minimal -dmx -xorg
> > -xprint" in your package.use for xorg-server to minimize this. Also try
> > VIDEO_CARDS="" and INPUT_DEVICES="" in make.conf.
> > 
> > However, this only works well on xorg-server-1.1, so you will also need
> > to add it to package.keywords.
> 
> I see... how troublesome. Well, I guess there's no choice, but would
> anyone happen to know the reason why gtk+ requires Xvfb?

Actually, it seems that it doesn't require Xvfb, or any other X server,
after all. I just tried emerge gtk+ with USE=-X, and it works perfectly.
It didn't emerge any X server, and it works just fine with all the
programs I've tried so far.

Does that mean that the virtualx eclass is unnecessary, and that I
should file a bug report to have it removed?

Fredrik Tolf


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-22  2:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-20 14:21 [gentoo-user] Too many X modules pulled in Fredrik Tolf
2006-08-20 18:56 ` Donnie Berkholz
2006-08-21 19:18   ` Fredrik Tolf
2006-08-22  2:41     ` Fredrik Tolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox