| View previous topic :: View next topic |
| Author |
Message |
dhave Apprentice


Joined: 28 Oct 2005 Posts: 298 Location: Still outside the Matrix ...
|
Posted: Tue Dec 19, 2006 9:22 am Post subject: Is Portage fickle? Use "X", don't Use "X" |
|
|
Why does this kind of thing happen:
(1) I want to emerge a couple of gnome components on my mainly gnome-free Gentoo system.
(2) When I attempt this, emerge reports an error related to cairo. A forum post on a related matter suggests re-emerging cairo with X support. I re-emerge cairo with USE="X".
(3) I then am successful in emerging the gnome components I wanted. I am happy.
(4) The next time I do "emerge --pretend -uDN world", portage wants me to re-emerge cairo again, but this time *without* X support (it says to use USE="-X*").
(5) Whassup wid dis? There's something basic about portage's logic that I'm not getting.
Thanks. _________________ This space available!
Last edited by dhave on Tue Dec 19, 2006 10:00 am; edited 1 time in total |
|
| Back to top |
|
 |
Arfrever Moderator


Joined: 29 Apr 2006 Posts: 2359 Location: Polska / Lenkija
|
Posted: Tue Dec 19, 2006 9:27 am Post subject: Re: Is Portage fickle? Use "X", don't Use "X& |
|
|
| dhave wrote: | | (4) The next time I do "emerge --pretend -uDN world", portage wants me to re-emerge cairo again, but this time *without* X support (it says to use USE="-X*"). |
Give some example.
Also post the output of:
Sveikinu
Arfrever _________________ Try Subversion 1.7_pre* and Portage 2.3_pre* using Eaedificāta Repository! |
|
| Back to top |
|
 |
dhave Apprentice


Joined: 28 Oct 2005 Posts: 298 Location: Still outside the Matrix ...
|
Posted: Tue Dec 19, 2006 9:31 am Post subject: |
|
|
Here's what I get when I do "emerge -ptv cairo"
| Code: | | [ebuild R ] x11-libs/cairo-1.2.4 USE="-X* -directfb -doc -glitz -png -svg" |
Thanks for your help. _________________ This space available! |
|
| Back to top |
|
 |
Genone Retired Dev


Joined: 14 Mar 2003 Posts: 7742 Location: beyond the rim
|
Posted: Tue Dec 19, 2006 9:35 am Post subject: |
|
|
| You want to use package.use instead of USE=X to make that permanent. |
|
| Back to top |
|
 |
drwook Veteran

Joined: 30 Mar 2005 Posts: 1280 Location: London
|
Posted: Tue Dec 19, 2006 9:39 am Post subject: |
|
|
| Never set USE at the command line unless you like digging holes... |
|
| Back to top |
|
 |
sonicbhoc Veteran


Joined: 24 Oct 2005 Posts: 1805 Location: In front of the computer screen
|
Posted: Tue Dec 19, 2006 9:41 am Post subject: |
|
|
do this:
| Code: |
echo "x11-libs/cairo X" >> /etc/portage/package.use
|
That should fix it. _________________ I'm too lazy to keep this stupid signature up to date, so here's something more interesting:
My friend Hetdegon can draw if you ask me.
Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop. |
|
| Back to top |
|
 |
dhave Apprentice


Joined: 28 Oct 2005 Posts: 298 Location: Still outside the Matrix ...
|
Posted: Tue Dec 19, 2006 9:48 am Post subject: |
|
|
O.K., thanks to all.
I did as suggested and put "x11-libs/cairo X" in /etc/portage/package.use. Now emerge isn't asking me to emerge cairo without X.
Now, is there any reason I need to re-emerge cairo yet again since previously I emerged it with USE="X" on the command line?
BTW, thanks for the warning. I remember reading about the danger of putting USE on the command line, but, in the pressure of the moment, I forgot. _________________ This space available! |
|
| Back to top |
|
 |
bubbl07 Apprentice


Joined: 06 Feb 2005 Posts: 233 Location: Boston, MA (USA)
|
Posted: Tue Dec 19, 2006 9:56 am Post subject: |
|
|
| dhave wrote: | | Now, is there any reason I need to re-emerge cairo yet again since previously I emerged it with USE="X" on the command line? |
You can emerge world with the "--newuse" ("-N" for short) option to see if any packages, including cairo, need to be recompiled because of a change in USE flags. |
|
| Back to top |
|
 |
dhave Apprentice


Joined: 28 Oct 2005 Posts: 298 Location: Still outside the Matrix ...
|
Posted: Tue Dec 19, 2006 9:59 am Post subject: |
|
|
| bubbl07 wrote: | | dhave wrote: | | Now, is there any reason I need to re-emerge cairo yet again since previously I emerged it with USE="X" on the command line? |
You can emerge world with the "--newuse" ("-N" for short) option to see if any packages, including cairo, need to be recompiled because of a change in USE flags. |
Thank you. _________________ This space available! |
|
| Back to top |
|
 |
desultory Administrator

Joined: 04 Nov 2005 Posts: 4648
|
Posted: Mon May 21, 2007 2:31 am Post subject: |
|
|
Moved from Portage & Programming to Duplicate Threads, refer to topic "Please re-emerge [solved]".
As noted in the handbook USE flags specified via environment variables are not retained as persistent settings so, aside from when a given USE flag setting is itself transient in nature, use one of the persistent USE flag setting methods (/etc/make.conf, /etc/portage/package.use). Also, note that USE flags are case sensitive. |
|
| Back to top |
|
 |
|