Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
env-update and automated build script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
BackSeat
Apprentice
Apprentice


Joined: 12 Apr 2002
Posts: 242
Location: Reading, UK

PostPosted: Fri Jul 19, 2002 7:18 pm    Post subject: env-update and automated build script Reply with quote

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
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Fri Jul 19, 2002 7:35 pm    Post subject: Reply with quote

I'm not at my gentoo system right now but I would say you could call env-update by:

Code:

exec env-update

_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Fri Jul 19, 2002 7:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Jul 19, 2002 8:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Fri Jul 19, 2002 8:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Jul 19, 2002 8:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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