Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4242 - fcron build unable to find path to vi and fails
Summary: fcron build unable to find path to vi and fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
: 5522 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-27 11:00 UTC by Avi Schwartz
Modified: 2003-02-04 19:42 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 Avi Schwartz 2002-06-27 11:00:09 UTC
When trying to build fcron-2.0.0-r1 as part of a gentoo 1.2 installation, the
build process fails with the following messages:

checking for vi... no
configure: error:
Cannot determine path to vi: try option --with-editor=PATH
Comment 1 Avi Schwartz 2002-06-27 11:05:06 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.
Comment 2 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2002-06-27 21:57:35 UTC
fixed in cvs - thanks for reporting 
 
Thilo 
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2002-06-30 03:14:20 UTC
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.
Comment 4 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2002-07-04 05:28:29 UTC
yes, this is of course true

i away from my machine - Matt, could you perhaps do the necessary changes?
thanks
Comment 5 Matthew Kennedy (RETIRED) gentoo-dev 2002-07-05 01:46:22 UTC
okay
Comment 6 Ryan Phillips (RETIRED) gentoo-dev 2002-08-10 22:12:08 UTC
*** Bug 5522 has been marked as a duplicate of this bug. ***
Comment 7 Ryan Phillips (RETIRED) gentoo-dev 2002-08-10 22:12:57 UTC
An option would be to change --with-editor=/usr/bin/vim to --with-editor=$EDITOR

I haven't tested this, but it may work.
Comment 8 Seemant Kulleen (RETIRED) gentoo-dev 2002-09-01 08:31:57 UTC
Ryan, Matt:

can y'all make sure this is fixed?  if not, can y'all fix this?

cheers.
Comment 9 Matthew Kennedy (RETIRED) gentoo-dev 2002-09-01 15:22:14 UTC
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).