Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to avoid installing X?
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
jeom01
n00b
n00b


Joined: 12 Aug 2003
Posts: 45

PostPosted: Tue Aug 12, 2003 7:34 am    Post subject: How to avoid installing X? Reply with quote

Is there a way to avoid installing X on the Gentoo box?

I have tried inserting "-x" in the USE section of the make.conf, but that doesn't seem to work, when i run "emerge -u world", emerge want to install a lot of X packages, which i doesn't need because I don't use X on this machine.

Any good ideas?
Back to top
View user's profile Send private message
Niek
Apprentice
Apprentice


Joined: 14 May 2002
Posts: 236
Location: Houten, The Netherlands

PostPosted: Tue Aug 12, 2003 8:01 am    Post subject: Reply with quote

Perhaps USE flags are case sensitive, try placing -X in your USE flags. You can also try to install ufed (emerge ufed), and than run ufed (as root) too choose your USEW flags.
_________________
Bezoek ook eens de Nederlandstalige Gentoo IRC channel op irc.freenode.net - #gentoo-nl
Back to top
View user's profile Send private message
jeom01
n00b
n00b


Joined: 12 Aug 2003
Posts: 45

PostPosted: Tue Aug 12, 2003 8:15 am    Post subject: Reply with quote

It doesn't work, actually, I had "-X" in my make.conf, and I tried ufed, X isn't selected there either, but I saw that it's selected by default in some of the other files that Gentoo uses.

Is there a possibility that they override make.conf when I do emerge -u world??
Back to top
View user's profile Send private message
Brandy
Bodhisattva
Bodhisattva


Joined: 08 Jun 2003
Posts: 820
Location: New Zealand

PostPosted: Tue Aug 12, 2003 8:49 am    Post subject: Reply with quote

There are many USE flags that will cause xfree to be installed. A good trick to see what USE flags are associated with what you are installing is to use the following command:
Code:

emerge -pv world

The v option means that each package in the list will also show which USE flags it recognizes. USE flags like X, kde, qt, gnome, gtk, tcltk, motif, arts will all cause xfree to be installed.

The Gentoo Linux Use Variable Descriptions page contains some really good info. :)

Ciao, Brandy.
_________________
Faber est suae quisque fortunae.
Back to top
View user's profile Send private message
paul138
Guru
Guru


Joined: 09 Aug 2002
Posts: 370
Location: Ottawa, ON

PostPosted: Tue Aug 12, 2003 3:11 pm    Post subject: Reply with quote

The problem is that there is an ebuild somewhere which wants X libraries. I'm having the same problem on one of my servers.

In the past, it was ghostscript depending on gimp-print for some reason. This has been fixed but now a new problem lurks.

Does anyone know how to show which package is wanting X ?
_________________
Talk is cheap because supply always exceeds demand.
Back to top
View user's profile Send private message
erik_swanson
Retired Dev
Retired Dev


Joined: 02 Feb 2003
Posts: 123
Location: Corvallis, OR USA

PostPosted: Tue Aug 12, 2003 4:47 pm    Post subject: Reply with quote

Easiest way I know of to show what wants X is
Code:
echo "x11-base/xfree" >> /etc/portage/package.mask

Then, it'll throw a big error instead of (possibly) sneaking X onto your box.
Back to top
View user's profile Send private message
paul138
Guru
Guru


Joined: 09 Aug 2002
Posts: 370
Location: Ottawa, ON

PostPosted: Tue Aug 12, 2003 4:50 pm    Post subject: Reply with quote

Sneaking X? lol

I'll give it a shot.
_________________
Talk is cheap because supply always exceeds demand.
Back to top
View user's profile Send private message
sKewlBoy
Guru
Guru


Joined: 03 Nov 2002
Posts: 406
Location: Portugal

PostPosted: Tue Aug 12, 2003 5:54 pm    Post subject: Reply with quote

You probably dont want this, but you could use inject (keeping the USE flags, of course). This way, the few packages that force xfree to be installed, won't do it... You can always get some broken bins, of course... But as you notice them, you can work on getting them ok...

I had a problem like this once, as emerging a certain package would try to emerge xfree, even with -X -kde and all those things. The problem was the -xmms missing flag... So the package was "authorized" to have xmms as dep, and xmms does not have a flag for xfree, since there's no use for it without X... By that time, I used inject, just a few weeks later I noticed I had merged xmms, and so I added "-xmms" and the rebuilded packages shown in the output for "emerge -pev world | grep xmms" ...

I hope this helps in any way, cause I got to guru today, and this is not what I am :oops:
Back to top
View user's profile Send private message
jeom01
n00b
n00b


Joined: 12 Aug 2003
Posts: 45

PostPosted: Wed Aug 13, 2003 6:35 am    Post subject: Reply with quote

Thanks a lot!

Now I got it emerging without X, Brandys tips did the trick...

/Jesper
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