Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

How to use new USE= flag w/o --newuse?

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
cousin
n00b
n00b
Posts: 26
Joined: Tue Sep 06, 2005 5:29 am
Location: Venezuela
Contact:
Contact cousin
Website

How to use new USE= flag w/o --newuse?

  • Quote

Post by cousin » Tue Sep 06, 2005 5:41 am

Hi all.

I installed Gentoo 2005.1 on a Pentium MMX 233 that we will use only for ssh. No X.
The install went perfect, all steps, but when I tried to emerge links, it would try to emerge xorg-x11.

So I added USE="-xorg-x11 -X -gnome -kde" to /etc/make.conf and successfully emerged links with --newuse

How can I instruct the whole system to use the new USE flag without --newuse ?

Thanks a lot for suggestions
Top
SinoTech
Advocate
Advocate
Posts: 2579
Joined: Sat Mar 20, 2004 3:52 pm
Location: Neunkirchen / Saarland / Germany
Contact:
Contact SinoTech
Website

  • Quote

Post by SinoTech » Tue Sep 06, 2005 6:10 am

After changing USE-Flags in your "/etc/make.conf", all new merges will take notice of that. But already installed packages have used the prior settings and therefore you've to rebuild them (Just changing the USE-Flags won't change the behavior of your programs. They must be recompiled to add / remove USE-Flag dependend features). You do that with the "--newuse" option. There's no other way.
e.g. recompile all packages whose USE-flag has changed:

Code: Select all

$ emerge -N world
Mfg

Sino
Top
slashdevslashtty
Tux's lil' helper
Tux's lil' helper
Posts: 119
Joined: Sun Aug 29, 2004 5:42 am
Location: 97219
Contact:
Contact slashdevslashtty
Website

  • Quote

Post by slashdevslashtty » Tue Sep 06, 2005 7:29 am

In my experience, you also need --update and --deep. On the command line, that looks like:

Code: Select all

# emerge -uDN world
Top
cousin
n00b
n00b
Posts: 26
Joined: Tue Sep 06, 2005 5:29 am
Location: Venezuela
Contact:
Contact cousin
Website

  • Quote

Post by cousin » Tue Sep 06, 2005 7:55 am

The problem is that, precisely, new emerge's aren't using the new USE. I've just tried to emerge gnupg without "--usenew" and it surprises me that it wants to emerge xorg-x11 too. It appears that the emerge database needs an update of this variable on each non-installed package. It would be a pain to download every tarball and re-emerge every package.

I followed the install instructions in the handbook and I installed just the basic packages to get it working. It's at this point that the handbook loses its logical continuation because links is needed to read it.
Top
SinoTech
Advocate
Advocate
Posts: 2579
Joined: Sat Mar 20, 2004 3:52 pm
Location: Neunkirchen / Saarland / Germany
Contact:
Contact SinoTech
Website

  • Quote

Post by SinoTech » Tue Sep 06, 2005 8:01 am

cousin wrote:The problem is that, precisely, new emerge's aren't using the new USE. I've just tried to emerge gnupg without "--usenew" and it surprises me that it wants to emerge xorg-x11 too. It appears that the emerge database needs an update of this variable on each non-installed package. It would be a pain to download every tarball and re-emerge every package.
[...]
You should use the "-vpt" switches when calling emerge. In that case emerge won't install anything but show you what it would install.
  • - "-vp" causes emerge to show USE Flags available for each package it would install and also shows which are set or unset (USE-Flags colored blue are unset, colored red means they are set).
    - "-t" causes emerge to display the packages in a tree like view. So you should be able to see what package requires xorg-x11.
USE-Flags contained in "/etc/make.conf" (USE-Flags for all packages) and "/etc/portage/package.use" (USE-Flags for a specific package) are checked every time you execute emerge.

Mfg

Sino
Top
opqdan
Guru
Guru
Posts: 429
Joined: Mon Dec 13, 2004 5:00 pm
Location: Redmond, WA, USA

Re: How to use new USE= flag w/o --newuse?

  • Quote

Post by opqdan » Tue Sep 06, 2005 2:07 pm

cousin wrote:Hi all.

I installed Gentoo 2005.1 on a Pentium MMX 233 that we will use only for ssh. No X.
The install went perfect, all steps, but when I tried to emerge links, it would try to emerge xorg-x11.

So I added USE="-xorg-x11 -X -gnome -kde" to /etc/make.conf and successfully emerged links with --newuse

How can I instruct the whole system to use the new USE flag without --newuse ?

Thanks a lot for suggestions
As far as I know (and looking at what is listed here: http://www.gentoo.org/dyn/use-index.xml) xorg-x11 is not a valid USE flag. The extra '-' could be causing problems with whatever parses the USE flags, making it bail out. This may not be the case, since invalid USE flags should just be ignored, but I would try removing the entry, -X should be sufficient enough.

Of course some packages require X and don't care about you use flag. For instance, if I tried 'emerge xterm', it would compile X.
Top
cousin
n00b
n00b
Posts: 26
Joined: Tue Sep 06, 2005 5:29 am
Location: Venezuela
Contact:
Contact cousin
Website

  • Quote

Post by cousin » Wed Sep 07, 2005 4:58 am

I tried with -X first before using -xorg-x11. It seems that either I should use --newuse or emerge everything.
Top
Maedhros
Bodhisattva
Bodhisattva
User avatar
Posts: 5511
Joined: Wed Apr 14, 2004 8:10 pm
Location: Durham, UK

  • Quote

Post by Maedhros » Wed Sep 07, 2005 7:09 am

xorg-x11 isn't a USE flag, and as opqdan pointed out, it may confuse the parser (or if not, it will just be ignored). X is the one you're looking for, but there might be others that pull in X related things - try turning off java, kde, gnome, arts, qt, gtk, gtk2 and any others you can see that might be related to X when you run emerge --info.

SinoTech's suggestion will give you the final answer on what exactly requires X, and you should be able to see from that which USE flags are pulling in the dependencies that pull in X.

emerge --newuse doesn't make any sense on new packages - the whole point of it is to check whether any USE changes affect packages that are already installed, and if it does, it will recompile them. Since new packages have never been installed, there is nothing for --newuse to check against.
No-one's more important than the earthworm.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic