Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/portage/package.use file missing in /etc/portage
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
oblivion_vr
n00b
n00b


Joined: 19 May 2013
Posts: 23

PostPosted: Sun May 19, 2013 5:42 am    Post subject: /etc/portage/package.use file missing in /etc/portage Reply with quote

I am new to Gentoo so need some help in understanding the /etc/portage/package.use.
I completed my Gentoo install. I have set my profile desktop/kde.
While installing firefox on my system emerge reported USE changes to add -
=dev.lang/python-2.7.3-4.3 sqllite

from this point I started searching how to add these USE flags. Upon reading the forum post and portage manual, I understand that I should add these flags to =dev.lang/python-2.7.3-4.3 sqllite to /etc/portage/package.use but the file there is missing. Instead i have a package.use file in /usr/portage/profiles/targets/desktop/kde/package.use. If I make the change there to add on a new line - "=dev.lang/python-2.7.3-4.3 sqllite" still "emerge firefox" fails on the same error.

Is something wrong with my Gentoo install?

Any help/suggestions would be appreciated
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sun May 19, 2013 6:00 am    Post subject: Reply with quote

No, nothing is wrong.

1) DON'T ever edit anything in /usr/portage/ those changes will be erased every time you sync

2) just create the /etc/portage/package.use file

Problem solved. :)
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sun May 19, 2013 1:44 pm    Post subject: Reply with quote

Code:
echo 'dev-lang/python sqlite' >> /etc/portage/package.use

Will create the file if it does not exist, otherwise add to the end. NOTE You must use >> and never > or you will overwrite the file.

This is not so useful in general, since you might have the package in there already, and it's cleaner if the settings for one package are all on the same line, but it's fine when you're starting out. Otherwise just run
Code:
nano -w /etc/portage/package.use
(or vim etc) and edit the file manually.

To manage this automatically, you can either:
Add --autounmask-write to EMERGE_DEFAULT_OPTS, and then use dispatch-conf (nicer than etc-update) to confirm the changes, or:

Use update which will ask you whether you want to make the changes portage suggests, then confirm them with you via a coloured diff display, within the same porcelain command. It handles multiple changes to multiple packages, as well as keyword unmasking, and also allows you to edit the list and both global and per-package USE settings, via a dialog menu. (Use the git version if you do try it, as it's kept more up to date.)
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Sun May 19, 2013 2:37 pm    Post subject: Reply with quote

/etc/portage/package.use can be a directory containing per-category files rather
than a single file, too. Example:
Code:

ls /etc/portage/package.use
# output is:
app-crypt
app-editors
app-shells
app-text
dev-lang
dev-libs
dev-util
dev-vcs
mail-client
media-gfx
media-libs
media-video
net-analyzer
net-libs
sys-apps
sys-apps~
sys-devel
sys-fs
sys-fs~
sys-libs
virtual
x11-base
x11-base~
xfce-base


These are all individual files with USE flag customizations for packages
in those categories. (The filenames ending in ~ are old, edited versions
that are there for reference, in case I want to look at the settings that
I had before last editing that file.)

Sample contents:
Code:

cat /etc/portage/package.use/sys-libs
# output is:
sys-libs/glibc doc
sys-libs/zlib minizip


(When I emerge glibc, I want glibc emerged with "USE=doc", so the emerge
installs the glibc info files, and when I emerge zlib, I want it emerged with
"USE=minizip", so the emerge will build and install the minizip program,
because some other package depends on finding minizip installed.)
_________________
TIA
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