LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2009, 08:32 AM   #1
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
Very basic clarification regarding USE flags for emerge


I'm trying to install python with the sqlite use flag. I entered python/ sqlite in the /etc/portage/package.use and then entered emerge -pv python. This is what I got:

Code:
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/python-2.6.4  USE="berkdb gdbm ipv6 ncurses readline ssl threads (wide-unicode) xml -build -doc -examples -sqlite -tk -wininst" 10,760 kB

Total: 1 package (1 reinstall), Size of downloads: 10,760 kB
Why is -sqlite set?

Why does
Code:
#USE=sqlite emerge -pv python
show what I want while
Code:
#USE=sqlite
#emerge -pv python
doesn't work?

Last edited by gregorian; 12-26-2009 at 08:38 AM.
 
Old 12-26-2009, 09:05 AM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
You need to enable the use flag in package.use, by default it's disabled.
 
Old 12-26-2009, 09:28 AM   #3
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
also, (assuming bash)
Code:
export USE="sqlite"
emerge python
would exhibit the desired behavior.
 
1 members found this post helpful.
Old 12-26-2009, 09:31 AM   #4
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Code:
dev-lang/python sqlite
in your /etc/portage/package.use should work.
Code:
6510b ~ # echo "dev-lang/python sqlite" >> /etc/portage/package.use
6510b ~ # emerge -av python

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/python-2.6.4  USE="berkdb gdbm ipv6 ncurses readline sqlite* ssl threads (wide-unicode) xml -build -doc -examples -tk -wininst" 0 kB
 
1 members found this post helpful.
Old 12-26-2009, 11:08 AM   #5
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
I made the mistake of omitting dev-lang in dev-lan/python.
Quote:
export USE="sqlite"
emerge python
Your suggestion worked. What's the difference between USE="sqlite" and export USE="sqlite" as long as I execute the former in the shell directly?

Thank you both!
 
0 members found this post helpful.
Old 12-30-2009, 07:41 AM   #6
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
Basically, each command line is its own individual shell script. If you don't export the variable, it isn't added to your environment for that bash session.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[GENTOO] Question about emerge and use flags h725 Gentoo 5 06-04-2009 08:14 AM
need some clarification/help superhumanCA Linux - General 4 03-18-2008 12:19 PM
python: can't open file 'emerge\bin\emerge.py' Virtuality Programming 5 01-30-2008 01:23 PM
I just need some clarification Duneatreides Linux - Newbie 2 03-12-2007 05:48 AM
emerge errors during emerge -u world busbarn Linux - Distributions 6 04-23-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration