думаю не так важно, что будет присутствовать подефолту, все-равно поставить то что нравится будет не так сложно, а для базовых вещей хватит ed/nano или что там поставят подефолту.
хотя что меня слушать) я вообще маковод.. а там и emacs и vim и nano есть.
Не знаю, кого надо переубедить, но чувак, который запостил баг - прав. Хардкодить nano в качестве редактора - глупость, каким бы удобным для новичка он не был.
Ты просто напомни этому придурку, что генту от фрибсд и прочих src based дистрибутивов отличается тем, что автоматически должна отслеживать зависимости, и тебе не должно быть нужно редактировать в разных местах для того, что бы у тебя работала переменная гентушного окружения.
>> What about adding this to make default sudoers file respect EDITOR value? >>
>> Defaults env_keep="EDITOR VISUAL"
>Upstream decided _not_ to enable this by default (and the reasons for this are
>explained at length in sudo's man page), and we normally don't override such
>decisions unless there's a very good reason.
Поясните, о чём это они. Почему это sudo таки нужно nano?
Вот написал... Если не влом, гентушники, поддержите... 8)
Hello, happy Gentoo users! I'm new on this distro, so I'm sorry if you consider
to be stupid what I gonna say.
Many of us prefer editors other than nano. Some of us believe in ideas of
freedom and choice which Gentoo provides us with. But...
There're ones who prefer primitive hardcoding over giving the enduser to choose.
There're defaults set by someone, that you should respect. Because...
Just because he wants so. Because you are nothing. Just another ungrateful user...
An example?
The package SUDO. It is one of the most mandatory package in distro.
But it totally ignores the enduser's favor in editing.
It just hardcodes what the ebuild's admin decided. Once and forever.
Do you want to remove nano from your system? DON'T DO THAT! Or you gonna
get some issues you shouldn't get if the things work as they expected.
I just installed VIM with emerge, and removed nano because I considered
it to be absolutely unnecessary in my system. Why I need nano? I am a VIM fan.
Here the troubles begin...
Run "sudo visudo" and you get this:
~ $ sudo visudo
visudo: no editor found (editor path = /bin/nano)
~ $ env | grep -i edit
EDITOR=/usr/bin/vim
What a surprise! Hm... Possibly I did something wrong when setting my system,
that terminates me with this error?..
So I was forced to spend my time analysing what is wrong with the package and
how to fix that. Because I remember it was working as expected in my previous
LFS (linuxfromscratch) system. My quests leaded me to the ebuild of sudo.
And I saw this nice shiny line there:
--with-editor=/bin/nano
Stop. I don't use nano. I even don't have it! But the ebuild doesn't check if
nano is installed. No care. It was just like said to me:
"Hey, you are just a stupid moron! Who removes default editor? He-he..."
I asked the ebuild maintainer to fix this behaviour. And what did he say?
"You should read manual page of sudo in order to make it work as expected.
To make it respect your preferences. And I don't care what editor you prefer.
Nano is Gentoo default editor!!! You understand? Stop boring me!
I will not change anything! Ha-ha..."
Actually it was said in other words but the idea is same.
Looks like the principle "it just works" is not for Gentoo users.
Этот чувак похоже там всех забанил кроме меня и девов.
Если есть еще какие идеи, чё делать, предлагайте. Вот его последний перл:
Okay. Now I'm seriously *tired* and *pissed off* and I'm going to say "bye" to
politically correctness and politeness.
If I hear one of you _again_ come up with "the Gentoo Way" *while not being a
Gentoo developer*, I'm going to ask for your bugzilla account to be locked
down.
I'm _not_ going to change this behaviour. Full stop.
Sudo wants a default (which the admin can change in the configuration file),
and that default is _the same as provided in baselayout!_ The same editor that
_is installed with the damn stages_.
You want to change it? You change it with EXTRA_ECONF.
Остаётся только один вариант, создать свой оверлей, и написать его как ты хочешь, и с какого нибудь ресурса его раздавать. Насколько я понимаю, только разработчик пакета решает, кто именно и в какой части может голосовать