Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18995 - /etc/conf.d/basic is missing in baselayout 1.8.6.5
Summary: /etc/conf.d/basic is missing in baselayout 1.8.6.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-08 14:42 UTC by Jeld The Dark Elf
Modified: 2003-04-11 14:11 UTC (History)
2 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 Jeld The Dark Elf 2003-04-08 14:42:50 UTC
/etc/conf.d/basic is missing, causing /etc/profile to generate errors. If
/etc/conf.d/basic is being phased out, need to remove appropriate line from
/etc/profile and add EDITOR variable to the default /etc/rc.conf
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-08 15:48:03 UTC
What errors ?
Comment 2 Jeld The Dark Elf 2003-04-08 18:00:08 UTC
The error message:
-------------------------------------------------------
jeld@mitechka jeld $ su -
Password:
-bash: /etc/conf.d/basic: No such file or directory
--------------------------------------------------------

Relevant lines in the /etc/profile
-----------------------------------------------------------
# Extract the value of EDITOR
[ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf; echo $EDITOR`" 2>/dev/null
[ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic; echo $EDITOR`" 2>/dev/null
[ -z "$EDITOR" ] && EDITOR="/bin/nano"
------------------------------------------------------------
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-08 18:11:49 UTC
----------------------------------------
azarah@nosferatu tmp $ su -

KeyChain 2.0.1; http://www.gentoo.org/projects/keychain
 Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
 * Found existing ssh-agent at PID 4079

nosferatu root # 
-----------------------------------------

What SHELL ?

Could you try:

---------------------------------------------------
# Extract the value of EDITOR
[ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="/bin/nano"
---------------------------------------------------

BTW:  /etc/conf.d/basic is not being phased out, its just an optinal config
      file that could be used instead of /etc/rc.conf ...

Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-09 10:04:20 UTC
And ?
Comment 5 Jeld The Dark Elf 2003-04-09 13:43:43 UTC
bash-2.05b-r3
Comment 6 Stuart Bouyer 2003-04-10 10:17:59 UTC
I had the same problem until I remembered that I has chosen not to merge the new version of /etc/rc.conf in favour of my existing /etc/rc.conf. when I looked back at the "new" rc.conf I noticed the lines

# Set EDITOR to your preferred editor.

EDITOR="/bin/nano"
#EDITOR="/usr/bin/vim"
#EDITOR="/usr/bin/emacs"

These were lacking in my /etc/rc.conf, by adding an EDITOR line the problem was resolved because /etc/profile no longer had to look beyond /etc/rc.conf for EDITOR variable.

Did you choose not to upgrade rc.conf after emerging baselayout? If so add the EDITOR line and the error message will cease to exist

StuBear
Comment 7 Jeld The Dark Elf 2003-04-10 17:54:29 UTC
Yes, I did it and the message went away. It is still a bug though, since rc.conf is a file which almost everyone will customize in some way, and /etc/conf.d/basic is still refered to in the /etc/profile although the script doesn't get to that line now. We need to either remove that line from /etc/profile or restore /etc/conf.d/basic to where it is supposed to be.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-10 18:23:03 UTC
Well, does my changes in comment #3 fix it ?
Comment 9 Stuart Bouyer 2003-04-10 21:07:56 UTC
changing the lines in /etc/profile as you suggested to:

------------------------------------------------
# Extract the value of EDITOR
[ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="/bin/nano"
---------------------------------------------------

works fine, with or without EDITOR in /etc/rc.conf. 

looks good to me

StuBear
Comment 10 Jeld The Dark Elf 2003-04-11 00:45:32 UTC
Yes it does.
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-11 14:11:40 UTC
Ok, fixed in CVS.