Gentoo Archives: gentoo-dev

From: Jim Ramsay <lack@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"?
Date: Mon, 07 Jun 2010 20:00:12
Message-Id: 20100607155913.23600005@vrm378-02.vrm378.am.mot.com
In Reply to: Re: [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"? by Ciaran McCreesh
1 Ciaran McCreesh <ciaran.mccreesh@××××××××××.com> wrote:
2 > On Mon, 7 Jun 2010 23:05:27 +0400
3 > dev-random@××××.ru wrote:
4 > > On Mon, Jun 07, 2010 at 07:53:22PM +0100, Ciaran McCreesh wrote:
5 > > > It's there because if you break your X you probably want a usable
6 > > > editor to help you fix it.
7 > >
8 > > vim, compiled with "vim-with-x" works correctly when X is broken. It
9 > > doesn't enable X11-based UI, like flag "X" suggests. It just enables
10 > > optional connection to x-server to use its clipboard, and vim still
11 > > works if that connection fails.
12 >
13 > It does not, however, work if your X libraries are broken.
14
15 I certainly agree with you that removing the linkage to a handful of X
16 libraries makes vim more robust if those particular libraries fail.
17
18 However even with USE="-vim-with-x", there are a number of other
19 libraries that, if broken, will still render vim useless, such as
20 ncurses, perl, python, and ruby.
21
22 I suspect if one really wants a fail-proof editor, one would either
23 be building vim with USE="minimal" which will ignore the 'vim-with-x'
24 or 'X' USE flag (regardless of what we call it) and also ignore any
25 perl/python/ruby libraries, or one would want something more
26 trim, like busybox vi. Or even better yet, busybox vi with USE="static".
27
28 Of course changing the USE flag name to 'X' would still let users
29 decide to *not* link their app-editors/vim against any X libraries via
30 per-package USE flags. The main difference in changing the name from
31 'vim-with-x' to 'X' is that instead of enforcing a default behaviour of
32 "Vim will not link against X unless explicitly told to do so", we will
33 be enforcing a policy of "Vim will link against X when USE='X'".
34
35 I suppose this is a bit like a transition from an opt-in policy to an
36 opt-out policy, with the caveat that by enabling USE=X globally, a user
37 has already declared their intent: opt-in to linking against X
38 in all packages where there is a choice to do so.
39
40 --
41 Jim Ramsay
42 Gentoo Developer (rox/fluxbox/gkrellm/vim)

Attachments

File name MIME type
signature.asc application/pgp-signature