Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12411 - rc-envupdate.sh reverse-orders path variables
Summary: rc-envupdate.sh reverse-orders path variables
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High blocker
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-18 13:03 UTC by Dan Armak (RETIRED)
Modified: 2002-12-24 17:11 UTC (History)
0 users

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


Attachments
env.d.tar.gz (env.d.tar.gz,2.21 KB, application/octet-stream)
2002-12-19 12:05 UTC, Dan Armak (RETIRED)
Details
/lib/rcscripts/awk/genenviron.awk (genenviron.awk,3.68 KB, text/plain)
2002-12-21 16:08 UTC, Martin Schlemmer (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Armak (RETIRED) gentoo-dev 2002-12-18 13:03:23 UTC
It seems rc-envupdate.sh orders multiple-value variables, like PATH, in reverse order 
compared to env-update. This creates a problem after booting. 
Example: 
---- 
laptop qt # env-update 
>>> Regenerating /etc/ld.so.cache... 
laptop qt # grep KDEDIRS /etc/profile.env 
export KDEDIRS='/usr/kde/3.1:/usr/kde/3:/usr' 
laptop qt # rc-envupdate.sh 
laptop qt # grep KDEDIRS /etc/profile.env 
export KDEDIRS='/usr:/usr/kde/3:/usr/kde/3.1' 
----- 
I have baselayout-1.8.5.5, gawk-3.1.1-r1, latest version of everything else in ~x86 
profile.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-18 16:03:47 UTC
Create a tarball of your /etc/env.d/ and attach please.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-19 09:05:31 UTC
Hi, if problem attaching, just mail it to me.
Comment 3 Dan Armak (RETIRED) gentoo-dev 2002-12-19 12:05:31 UTC
Created attachment 6609 [details]
env.d.tar.gz

Here it is, sorry about delay.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-21 16:08:32 UTC
Created attachment 6640 [details]
/lib/rcscripts/awk/genenviron.awk

Just cp this to your system, and let me know if it fixes.
Comment 5 Dan Armak (RETIRED) gentoo-dev 2002-12-23 15:06:17 UTC
Yes, this fixes the problem for me. 
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-24 17:11:14 UTC
Fixed in baselayout-1.8.5.7.