Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge assumed options?
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
npmccallum
Retired Dev
Retired Dev


Joined: 09 May 2003
Posts: 306
Location: Lexington, KY

PostPosted: Fri May 09, 2003 7:26 pm    Post subject: emerge assumed options? Reply with quote

Is there a way to make portage assume certain options to emerge? For instance I want options "k" and "b" to be always used. What this would do is if I type emerge -up world, it would really mean emerge -kbup world. Any way to do this?
Thanks!!

Nathaniel
Back to top
View user's profile Send private message
red_over_blue
Guru
Guru


Joined: 16 Dec 2002
Posts: 310

PostPosted: Fri May 09, 2003 7:32 pm    Post subject: Reply with quote

you could edit your .bashrc file (located in your home directory) and add the following:

Code:

alias emerge='emerge -kb'


and then "execute" you bashrc file by doing the following:

Code:

john@limbo john $ . .bashrc
john@limbo john $


Then any option you add after will just be appended to the alias.
Back to top
View user's profile Send private message
red_over_blue
Guru
Guru


Joined: 16 Dec 2002
Posts: 310

PostPosted: Fri May 09, 2003 7:34 pm    Post subject: Reply with quote

Also read this entire post if you are having trouble getting you bashrc to work every login (the comment at the end by tlauder)
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20053

PostPosted: Fri May 09, 2003 7:35 pm    Post subject: Reply with quote

For -b, see the FEATURES setting in /etc/make.conf
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
npmccallum
Retired Dev
Retired Dev


Joined: 09 May 2003
Posts: 306
Location: Lexington, KY

PostPosted: Fri May 09, 2003 7:44 pm    Post subject: Reply with quote

Any other way besides bashrc? I want this to be implimented for all users on over 50 machines (they all share a common "packages/All" directory.
Back to top
View user's profile Send private message
red_over_blue
Guru
Guru


Joined: 16 Dec 2002
Posts: 310

PostPosted: Fri May 09, 2003 7:57 pm    Post subject: Reply with quote

You could add it to /etc/profile and it will be sourced when the user initially logs in. Make sure you get it in the non-root portion for general users. I would test it with a couple to make sure it is working properly.
Back to top
View user's profile Send private message
red_over_blue
Guru
Guru


Joined: 16 Dec 2002
Posts: 310

PostPosted: Fri May 09, 2003 8:05 pm    Post subject: Reply with quote

Sorry, I didn't read carelly enough about the 50 machines. Do you have a common /etc mounted as NFS on all machines? If so, then my suggestion would work. If not, I will have to think a little more but I am on my way out the door. Good luck :)
Back to top
View user's profile Send private message
npmccallum
Retired Dev
Retired Dev


Joined: 09 May 2003
Posts: 306
Location: Lexington, KY

PostPosted: Fri May 09, 2003 8:40 pm    Post subject: Reply with quote

red_over_blue wrote:
Sorry, I didn't read carelly enough about the 50 machines. Do you have a common /etc mounted as NFS on all machines? If so, then my suggestion would work. If not, I will have to think a little more but I am on my way out the door. Good luck :)

No, I don't have a common /etc. Most of the machines have very different files, but they all have the same make.conf. They also do have a shared /usr/portage/package/All directory. Basically, so that if one machine compiles a package, they all can use it. I'm going to have to change 50 machines regarless, but I don't want to hvae to do it for each user on each machine :).
Thanks!
Nathaniel
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