Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-13 Thread Anatoly Shipitsin
Ah, so this happens when no package provides $(which vi)? Then weshould default to something that is universally available. Check  fcron configure.in. Configure get editor from enviroment parameter EDITOR it not set by default vi. --with-editor=/bin/nano would do fine. I already CC'd bsd@ on the bu

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-13 Thread Diego 'Flameeyes' Pettenò
On Monday 13 November 2006 20:21, Jeroen Roovers wrote: > --with-editor=/bin/nano would do fine. I already CC'd bsd@ on the bug > to figure out if nano is part of their defaults, but it probably does > not matter because BSD does have $(which vi) AFAIK. We are Gentoo in that regard, we don't instal

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-13 Thread Jeroen Roovers
On Mon, 13 Nov 2006 11:17:37 +0500 "Anatoly Shipitsin" <[EMAIL PROTECTED]> wrote: > Okey. I'm remove all get editor from runtime enviroment EDITOR and > disable --with-editor. The run emerge fcron. I'm got: > > checking for vi... no > configure: error: > Cannot determine path to vi: try option --

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Anatoly Shipitsin
You mean I ought to go read the bug I referred to a few times in themessage you are responding to? I did. In fact, I wrote a lot of the comments there. I am CC'd on that bug. I even recorded the originalcomplaint on that bug stating that the ebuild should not rely on theenvironment to find a value

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Mike Frysinger
On Sunday 12 November 2006 06:29, Peter Volkov (pva) wrote: > On Sun, 2006-11-12 at 05:54 -0500, Mike Frysinger wrote: > > in the example usages you cited, people where using `sudo` to just > > avoid running `su -` first ... in other words, their sudo was > > unlimited ... updating the sudoers file

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Jeroen Roovers
On Mon, 13 Nov 2006 09:20:09 +0500 "Anatoly Shipitsin" <[EMAIL PROTECTED]> wrote: > Without --with-editor fcrom configure get editor from enviroment > parameter EDITOR. > This is wrong see bug 149376. You mean I ought to go read the bug I referred to a few times in the message you are respondin

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Anatoly Shipitsin
No, it's not needed for fcron at all, and I already explained why in[1]. Progressing through [2-4] I thought the fcron issue might have been fixed, but the virtual/editor discussion had started by then and Idecided I had nothing more to add. Again: fcron builds and works finewithout at all setting

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Jeroen Roovers
On Sun, 12 Nov 2006 21:57:07 +0500 "Anatoly Shipitsin" <[EMAIL PROTECTED]> wrote: > > > > Although I do think you're making a big fuss over a tiny cosmetic > > issue. > > > > This changes need not for sudo. It's need for fcron. And probaly > > any > package use define editor on configuration sta

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Anatoly Shipitsin
Although I do think you're making a big fuss over a tiny cosmeticissue. This changes need not for sudo. It's need for fcron. And probaly any package use define editor on configuration stage.

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Tavis Ormandy
On Sun, Nov 12, 2006 at 08:59:03PM +0500, Anatoly Shipitsin wrote: > >> Use abstract depend provide by same packages and set hardcoded depend > >> provided by one package (nano) is right? > > > >No, is not right. > > > But why it's not need change? I'm talk not only sudo. I dont know about the oth

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Anatoly Shipitsin
"Doctor, it hurts when I do this"very funny :) It isnt hardcoded, it's configurable.If this not hardcoded. I'm think use this at new fcron ebuild. This really close problem bug #149376 ;) No, you set the correct editor, I dont know which one you use. I'm told about ebuild. I'm can use virtual/edit

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Anatoly Shipitsin
> Use abstract depend provide by same packages and set hardcoded depend > provided by one package (nano) is right?No, is not right.But why it's not need change? I'm talk not only sudo.

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Tavis Ormandy
On Sun, Nov 12, 2006 at 08:17:18PM +0500, Anatoly Shipitsin wrote: > > > >Talking specifically about sudo, I think you're making a big deal out of > >a very minor thing, primarily because I cannot think of a sane example > >of when $EDITOR and $VISUAL are not set and visudo (which requires an > >in

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Tavis Ormandy
On Sun, Nov 12, 2006 at 08:38:52PM +0500, Anatoly Shipitsin wrote: > >I'm think if we set hardcoded editor nano at configure in sudo,ebuild its > >> should DEPEND at nano editor not virtual/editor. > > > >Then you would be wrong. > > > > Use abstract depend provide by same packages and set hardcod

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Anatoly Shipitsin
> Check sudo-1.6.8_p9-r2.ebuild> In DEPEND we see virtual/editor but > in configure> --with-editor=/bin/nano>> But virtual/editor can provide by vi nano & etc editor. You think its right?> DEPEND set virtual/editor but configure use nano as hardcoded editor. Yes, I think it's right. That option doe

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Tavis Ormandy
On Sun, Nov 12, 2006 at 06:21:56PM +0500, Anatoly Shipitsin wrote: > >This question is nonsensical. I guess you dont understand what sudo > >does, it's too complicated to explain here, you should consult the > >documentation. > > I'm told about emerge package not runtime. May you don't understand

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Anatoly Shipitsin
Talking specifically about sudo, I think you're making a big deal out ofa very minor thing, primarily because I cannot think of a sane example of when $EDITOR and $VISUAL are not set and visudo (which requires aninteractive editor) would be invoked.It's problem exist for any package use configure f

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Tavis Ormandy
On Sun, Nov 12, 2006 at 04:21:21PM +0300, Peter Volkov (pva) wrote: > On Sun, 2006-11-12 at 12:15 +, Tavis Ormandy wrote: > > The only `hardcoded` editor is the fallback editor for > > visudo > > And this is the problem I'm talking about. I do not see any reasons to > keep this not working fal

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Anatoly Shipitsin
This question is nonsensical. I guess you dont understand what sudodoes, it's too complicated to explain here, you should consult the documentation.I'm told about emerge package not runtime. May you don't understand me.Check sudo-1.6.8_p9-r2.ebuildIn DEPEND we see virtual/editor butin configure --w

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Peter Volkov (pva)
On Sun, 2006-11-12 at 12:15 +, Tavis Ormandy wrote: > The only `hardcoded` editor is the fallback editor for > visudo And this is the problem I'm talking about. I do not see any reasons to keep this not working fallback. There are parts of code that just do not work in Gentoo. > which can be

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Tavis Ormandy
On Sun, Nov 12, 2006 at 04:30:48PM +0500, Anatoly Shipitsin wrote: > >You can set `Defaults env_keep=EDITOR` in your sudoers file if you want, > >or what I do is `Defaults:%wheel !env_reset`, to allow users in group > >wheel to use sudo without the environment being scrubbed. > > > > Ok. How you p

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Tavis Ormandy
On Sun, Nov 12, 2006 at 02:32:56PM +0300, Peter Volkov (pva) wrote: > On Sun, 2006-11-12 at 11:06 +, Tavis Ormandy wrote: > > You can set `Defaults env_keep=EDITOR` in your sudoers file if you > > want, or what I do is `Defaults:%wheel !env_reset`, to allow users in > > group wheel to use sudo

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Jan Kundrát
Peter Volkov (pva) wrote: > Or... what do you mean by that: > "the sudo file has the ability to specify editor's, so why not tell > people to change their sudo config file ?" > > English is not my native language thus may be I just misunderstood your > idea here. Sorry. ...that the people should

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Peter Volkov (pva)
On Sun, 2006-11-12 at 11:06 +, Tavis Ormandy wrote: > You can set `Defaults env_keep=EDITOR` in your sudoers file if you > want, or what I do is `Defaults:%wheel !env_reset`, to allow users in > group wheel to use sudo without the environment being scrubbed. Of course I know about that. And I

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Peter Volkov (pva)
On Sun, 2006-11-12 at 05:54 -0500, Mike Frysinger wrote: > in the example usages you cited, people where using `sudo` to just > avoid running `su -` first ... in other words, their sudo was > unlimited ... updating the sudoers file to allow EDITOR via env_keep > would work fine for them > > in tha

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Tavis Ormandy
On Sun, Nov 12, 2006 at 12:27:12PM +0300, Peter Volkov (pva) wrote: > work[3,4] (yes... if EDITOR is not set). But EDITOR *is not* set when > program is started from sudo because sudo for security reasons drops > environment (are there any other cases when environment is dropped?). You can set `De

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Mike Frysinger
On 11/12/06, Peter Volkov (pva) <[EMAIL PROTECTED]> wrote: And does not prevents sudo from removing EDITOR from environment. in the example usages you cited, people where using `sudo` to just avoid running `su -` first ... in other words, their sudo was unlimited ... updating the sudoers file t

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Anatoly Shipitsin
then we end up with having to maintain a list of "safe" EDITORs anddealing with people who want to edit their own favorite editor the sudo file has the ability to specify editor's, so why not tellpeople to change their sudo config file ?It's not automatic.Other way is remove virtual/editor. And set

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Peter Volkov (pva)
On Sun, 2006-11-12 at 05:26 -0500, Mike Frysinger wrote: > then we end up with having to maintain a list of "safe" EDITORs and > dealing with people who want to edit their own favorite editor > > the sudo file has the ability to specify editor's, so why not tell > people to change their sudo confi

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Mike Frysinger
On 11/12/06, Thilo Bangert <[EMAIL PROTECTED]> wrote: is there a list of sudo 'safe' EDITORs somewhere? then we end up with having to maintain a list of "safe" EDITORs and dealing with people who want to edit their own favorite editor the sudo file has the ability to specify editor's, so why n

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Peter Volkov (pva)
On 2006-11-12 at 04:34 -0500, Mike Frysinger wrote: > why not modify sudo to not filter the EDITOR env var then there is no > more problem Considering that this is the only situation where environment is dropped... yes this fixes sudo problem. The other possible solution is: #!/bin/bash export ED

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Harald van Dijk
On Sun, Nov 12, 2006 at 04:56:33AM -0500, Mike Frysinger wrote: > On 11/12/06, Harald van Dijk <[EMAIL PROTECTED]> wrote: > >On Sun, Nov 12, 2006 at 04:34:25AM -0500, Mike Frysinger wrote: > >> On 11/12/06, Peter Volkov (pva) <[EMAIL PROTECTED]> wrote: > >> >The possible solution is to add virtual/e

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Thilo Bangert
> why not modify sudo to not filter the EDITOR env var then there is no > more problem no, there is a very valid reason why sudo filters the EDITOR env var. sudo should probably be fixed to (re)set the EDITOR variable to a 'safe' systemwide default, instead of stripping it completely. is there

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Mike Frysinger
On 11/12/06, Harald van Dijk <[EMAIL PROTECTED]> wrote: On Sun, Nov 12, 2006 at 04:34:25AM -0500, Mike Frysinger wrote: > On 11/12/06, Peter Volkov (pva) <[EMAIL PROTECTED]> wrote: > >The possible solution is to add virtual/editor ebuild > > this is a horrible idea > > why not modify sudo to not f

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Harald van Dijk
On Sun, Nov 12, 2006 at 04:34:25AM -0500, Mike Frysinger wrote: > On 11/12/06, Peter Volkov (pva) <[EMAIL PROTECTED]> wrote: > >The possible solution is to add virtual/editor ebuild > > this is a horrible idea > > why not modify sudo to not filter the EDITOR env var then there is no > more proble

Re: [gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Mike Frysinger
On 11/12/06, Peter Volkov (pva) <[EMAIL PROTECTED]> wrote: The possible solution is to add virtual/editor ebuild this is a horrible idea why not modify sudo to not filter the EDITOR env var then there is no more problem -mike -- gentoo-dev@gentoo.org mailing list

[gentoo-dev] Resolve build time default editor dependency. (was: How get ebuild provider virtual/category.)

2006-11-12 Thread Peter Volkov (pva)
Hello. Anatoly raised really important concern and currently I've started to think about fix. One possible solution requires virtual/editor to suite glep 37 and thus affects many packages. So... wondering why this change was not done I'd like to discuss the problem on the list. Problem: There are