View previous topic :: View next topic |
Author |
Message |
BackSeat Apprentice
Joined: 12 Apr 2002 Posts: 242 Location: Reading, UK
|
Posted: Fri Jul 19, 2002 7:18 pm Post subject: env-update and automated build script |
|
|
Hi all
I have put together a bash script which automates our standard server build. Or at least it would...
It seems that if I put env-update in a script it runs, but the 'emerge system' later fails to complete (the gcc compilation fails). Can someone tell me what exactly env-update does, and is there a way of using it in a bash script that will work?
Thanks,
BS |
|
Back to top |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Fri Jul 19, 2002 7:35 pm Post subject: |
|
|
I'm not at my gentoo system right now but I would say you could call env-update by:
_________________ This message self destructed a long time ago. |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Fri Jul 19, 2002 7:48 pm Post subject: |
|
|
Since env-update is an interactive script that lets you pull in changes to config files intelligently, I am not sure why you would script it. Either run env-update manually after the emerge script or set CONFIG_PROTECT to "" before you run your script and let emerge overwrite your config files (maybe dangerous). |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Jul 19, 2002 8:00 pm Post subject: |
|
|
I think Naan Yaar is referring to etc-update, not env-update. The Python code that eventuallly gets called by env-update is called "env_update" in /usr/lib/python2.2/site-packages/portage.py. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Fri Jul 19, 2002 8:04 pm Post subject: |
|
|
Oops. Sorry. I misread the original post. Thanks for pointing this out, rac.
env-update regenerates /etc/profile.env (and the csh equivalent) from per-package settings. |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Jul 19, 2002 8:19 pm Post subject: |
|
|
Naan Yaar wrote: | env-update regenerates /etc/profile.env (and the csh equivalent) from per-package settings. |
Looks like it also updates /etc/ld.so.conf and runs ldconfig. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
|