Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604630 - sys-apps/moreutils: vipe error if nano is not installed
Summary: sys-apps/moreutils: vipe error if nano is not installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-04 10:52 UTC by Guillaume Seren
Modified: 2017-01-05 10:07 UTC (History)
0 users

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 Guillaume Seren 2017-01-04 10:52:20 UTC
Hey there,
when trying to use vipe (from sys-apps/moreutils-0.50) I am getting this error:
```
Can't exec "/bin/nano": No such file or directory at /usr/bin/vipe line 66.
/bin/nano exited nonzero, aborting

```

If nano is required maybe we should add it as a RDEPEND or can use eselect editor link, to provide a user defined solution.
Comment 1 Tim Harder gentoo-dev 2017-01-04 19:23:41 UTC
nano isn't referred to anywhere specifically. It appears to respect the following in preferred order, $VISUAL, $EDITOR, and then falls back to /usr/bin/editor if it exists and is executable otherwise the final fallback is vi.

In other words, you probably have EDITOR=/bin/nano set in the environment so set EDITOR to something you have installed and would like to use instead.
Comment 2 Tim Harder gentoo-dev 2017-01-04 19:43:44 UTC
Now 0.60-r1 calls `eselect editor update` in pkg_postinst which is probably the best we can do.
Comment 3 Guillaume Seren 2017-01-05 10:07:06 UTC
Hey Tim thanks for the feedback,

(In reply to Tim Harder from comment #1)
> In other words, you probably have EDITOR=/bin/nano set in the environment so
> set EDITOR to something you have installed and would like to use instead.

Yes I didn't define it myself, but it can be a generic preset in gentoo,
because I haven't selected any editor in eselect ...
Available targets for the EDITOR variable:

Sorry, I should have looked further in the source before filing the bug.