Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5210 - env-update does not work well
Summary: env-update does not work well
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-18 18:09 UTC by André Luiz Pfitzner
Modified: 2003-02-04 19:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description André Luiz Pfitzner 2002-07-18 18:09:23 UTC
When I put 'LESS="-i -R"' at the end of the file /etc/env.d/00basic 
the env-update must be run twice for correct update de /etc/profile.env 
file correctly. 
If I put my variable at other point of the file this works fine. 
I think that this is a little problem with the scripts used for parse 
the files into the directory /etc/env.d 
 
Thanks by attention
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-20 15:22:08 UTC
To Andr
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-20 15:22:08 UTC
To André Luiz Pfitzner:  Try pressing return after it so that it is not on
the last line.

Bug Wranglers:  env-update is part of portage .....
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-20 15:22:29 UTC
To Andr
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-20 15:22:29 UTC
To André Luiz Pfitzner:  Try pressing return after it so that it is not on
the last line.

Bug Wranglers:  env-update is part of portage .....
Comment 5 André Luiz Pfitzner 2002-07-25 23:00:12 UTC
I tried but does not make effect, actually I
put that line at another position and ir working.
Comment 6 Daniel Robbins (RETIRED) gentoo-dev 2002-07-26 14:36:28 UTC
I don't understand where the env-update code needs to be fixed.  Any ideas
Azarah?  I'd be happy to make it better if I know where to look.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-27 10:58:53 UTC
Daniel, I dont have this problem, even with LESS being the last line.  I tested
it both with env-update *and* rc-envupdate.sh.

Only thing I can think, is that he have to source /etc/profile after making
changes.  I just added you to the CC list, as it is part of portage, and like
most things,  you cannot say for sure it will not break in some cases.

Andre:  check that /etc/profile.env is correct after first env-update.  If so
        you have to source /etc/profile agian to get your environment up to
        date.

        Note that in a emerge session, the latest /etc/profile.env will always
        be used.
Comment 8 André Luiz Pfitzner 2002-07-30 18:52:20 UTC
> check that /etc/profile.env is correct after first env-update.  If so
> you have to source /etc/profile agian to get your environment up to
> date.

I tried it, but after the first env-update the file /etc/profile.env not have
the "LESS" defined, running env-update again the "LESS" appear defined on
the file, then I run "source /etc/profile" and the environment is adjusted
right.
Comment 9 Daniel Robbins (RETIRED) gentoo-dev 2002-09-03 16:57:07 UTC
Still having this problem with Portage 2.0.34?
Comment 10 André Luiz Pfitzner 2002-09-05 17:51:07 UTC
Yes, I tested today and still.
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-09 13:52:32 UTC
Nick, I know you are swamped, but I have not ideas, as I cannot recreate it.

Andre:  if this is still an issue, try to remove /usr/sbin/env-update, and
        link /sbin/rc-envupdate.sh to it, and see if it still give the same
        problem for you (just check that you have baselayout-1.8.5.4 or later).
Comment 12 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-18 05:16:19 UTC
Hi .. did you try what I suggested in last comment ?  Any feedback ?
Comment 13 André Luiz Pfitzner 2002-12-19 19:31:40 UTC
Sorry the delay.
I am using now the baselayout 1.8.5.5 and I tested put the line
LESS="-i -R"
at the end of the file /etc/env.d/00basic and then I run as root:

env-update
. /etc/profile
echo $LESS

and now it works very well!
I am changing the bug to fixed :)
Thanks