Summary: | fcron build unable to find path to vi and fails | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Avi Schwartz <avi> |
Component: | [OLD] Core system | Assignee: | Ryan Phillips (RETIRED) <rphillips> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | mkennedy, richardc |
Priority: | High | ||
Version: | 1.2 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Avi Schwartz
2002-06-27 11:00:09 UTC
Just to add more information. To get around this problem and continue the installation I had to: ln -s /usr/bin/vim /usr/bin/vi Note that it also means that I had to build vim first. fixed in cvs - thanks for reporting Thilo Thilo, Is app-editors/vim really a build or runtime dependency of fcron? As far as I can tell from the source: char *cureditor = NULL; ... if ((cureditor=getenv("VISUAL")) == NULL || strcmp(cureditor, "\0") == 0 ) if((cureditor=getenv("EDITOR"))==NULL || strcmp(cureditor, "\0") == 0 ) cureditor = editor; (ie. editor, as specified on the command line to ./configure, is only used in the case that EDITOR is not set. Thus EDITOR is the default). Actually VISUAL is the default (emacs or vi).. Since nano is currently the only editor sure to be on a users system from bootstrap onwards (afaik, at least), it is better to pass --with-editor=/usr/bin/nano. Note, this doesn't affect what the user specifies in $EDITOR -- that will be tried first. Anyone who actually has a preference in text editors will have EDITOR set anyway. Thus app-editors/vim should not be an explicit dependency in fcron. yes, this is of course true i away from my machine - Matt, could you perhaps do the necessary changes? thanks okay *** Bug 5522 has been marked as a duplicate of this bug. *** An option would be to change --with-editor=/usr/bin/vim to --with-editor=$EDITOR I haven't tested this, but it may work. Ryan, Matt: can y'all make sure this is fixed? if not, can y'all fix this? cheers. okay i fixed this :) --with-editor=/usr/bin/nano (and this is the editor used when the user doesn't have either VISUAL or EDITOR set). |