Forums

Skip to content

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

How do you use system variables (is that the right term?)

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
wilburpan
l33t
l33t
User avatar
Posts: 977
Joined: Tue Jan 21, 2003 3:48 pm

How do you use system variables (is that the right term?)

  • Quote

Post by wilburpan » Sat Apr 10, 2004 2:43 am

I was going about getting OpenOffice.org-1.1.1 to emerge by using this command:

Code: Select all

FEATURES="-sandbox" emerge -u openoffice
and then it hit me: I know that I can set variables without going and editing a configuration file by setting the variable in the command line like I did above, but I don't know how long this lasts.

So if I do this:

Code: Select all

FEATURES="-sandbox" emerge -u openoffice

[wait for long compile to finish]

emerge kickassprogram
Does kickassprogram get emerged with FEATURES="-sandbox" as well? And if I didn't want FEATURES="-sandbox", how would I go about resetting FEATURES to the default setting?
I'm only hanging out in OTW until I get rid of this stupid l33t ranking.....Crap. That didn't work.
Top
NitroPye
Apprentice
Apprentice
User avatar
Posts: 152
Joined: Mon May 12, 2003 2:43 pm
Location: Wish I was in England
Contact:
Contact NitroPye
Website

  • Quote

Post by NitroPye » Sat Apr 10, 2004 2:47 am

You can change specific portage variables for instance FEATURES or USE via /etc/make.conf just taker out sandbox on the features section.
waka waka
me and my fun work
Top
smiley
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Wed Dec 03, 2003 1:44 am

  • Quote

Post by smiley » Sat Apr 10, 2004 3:38 am

So if I do this:
Code:
FEATURES="-sandbox" emerge -u openoffice

[wait for long compile to finish]

emerge kickassprogram

Does kickassprogram get emerged with FEATURES="-sandbox" as well? And if I didn't want FEATURES="-sandbox", how would I go about resetting FEATURES to the default setting?
No it does not. You basically have three options:

FEATURES="-sandbox" emerge -u openoffice only applies to the current emerge, in this case openoffice.

You can also do as NitroPye explained, and that applies to all emerges.

Third, you can execute

Code: Select all

 export FEATURES="-sandbox"
This would apply to all emerges durring your current login session. When you log out, that setting will be lost.

EDIT: If you use the export command, you can use unset to remove that variable

Code: Select all

unset FEATURES
smiley 8)
Top
wilburpan
l33t
l33t
User avatar
Posts: 977
Joined: Tue Jan 21, 2003 3:48 pm

  • Quote

Post by wilburpan » Sat Apr 10, 2004 11:26 am

Thanks -- that was what I was looking for.

One other question -- is there a way for me to see what FEATURES is currently set to? I'm anticipating a situation where I've forgotten what I've exported to a variable.
I'm only hanging out in OTW until I get rid of this stupid l33t ranking.....Crap. That didn't work.
Top
adrenalin
Tux's lil' helper
Tux's lil' helper
Posts: 129
Joined: Sun Dec 29, 2002 12:30 pm

  • Quote

Post by adrenalin » Sat Apr 10, 2004 1:50 pm

Code: Select all

emerge info
to your seceond question from the topic: the right term would be 'environment variables'

hth
Top
tomk
Bodhisattva
Bodhisattva
User avatar
Posts: 7221
Joined: Tue Sep 23, 2003 1:41 pm
Location: Sat in front of my computer

  • Quote

Post by tomk » Sat Apr 10, 2004 2:16 pm

wilburpan wrote:One other question -- is there a way for me to see what FEATURES is currently set to? I'm anticipating a situation where I've forgotten what I've exported to a variable.
You can see the value of any environment variable using the echo command:

Code: Select all

echo $FEATURES
In this case if you haven't exported it then it will be blank because /etc/make.conf only gets sourced when you're doing an emerge.
Search | Read | Answer | Report | Strip
Top
Post Reply

6 posts • Page 1 of 1

Return to “Other Things 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