* [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"?
@ 2010-06-07 18:44 Jim Ramsay
2010-06-07 18:51 ` Tomáš Chvátal
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Jim Ramsay @ 2010-06-07 18:44 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 378 bytes --]
There is an ancient bug[1] dealing with the "vim-with-x" USE flag.
I think it makes sense to rename this flag from 'vim-with-x' to just
'X', but thought I'd raise the issue here since this USE flag has been
around since before time began.
Does anyone care?
References:
[1] http://bugs.gentoo.org/94171
--
Jim Ramsay
Gentoo Developer (rox/fluxbox/gkrellm/vim)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"?
2010-06-07 18:44 [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"? Jim Ramsay
@ 2010-06-07 18:51 ` Tomáš Chvátal
2010-06-07 18:53 ` Ciaran McCreesh
2010-06-08 20:30 ` Mike Frysinger
2 siblings, 0 replies; 10+ messages in thread
From: Tomáš Chvátal @ 2010-06-07 18:51 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dne 7.6.2010 20:44, Jim Ramsay napsal(a):
> There is an ancient bug[1] dealing with the "vim-with-x" USE flag.
>
> I think it makes sense to rename this flag from 'vim-with-x' to just
> 'X', but thought I'd raise the issue here since this USE flag has been
> around since before time began.
>
> Does anyone care?
>
> References:
> [1] http://bugs.gentoo.org/94171
>
I would support having it under X useflag, when i do new installs i
usually have to recompile vim because i forget to enable vim-with-x :]
Cheers
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkwNP6oACgkQHB6c3gNBRYd6XACgoKIa0+25wqdnvjS5RQa9gtP/
MC4AnRA60zU+0J/2pORXnM/jZ/quPAA+
=1LHm
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"?
2010-06-07 18:44 [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"? Jim Ramsay
2010-06-07 18:51 ` Tomáš Chvátal
@ 2010-06-07 18:53 ` Ciaran McCreesh
2010-06-07 19:05 ` dev-random
` (2 more replies)
2010-06-08 20:30 ` Mike Frysinger
2 siblings, 3 replies; 10+ messages in thread
From: Ciaran McCreesh @ 2010-06-07 18:53 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 448 bytes --]
On Mon, 7 Jun 2010 14:44:32 -0400
Jim Ramsay <lack@gentoo.org> wrote:
> There is an ancient bug[1] dealing with the "vim-with-x" USE flag.
>
> I think it makes sense to rename this flag from 'vim-with-x' to just
> 'X', but thought I'd raise the issue here since this USE flag has been
> around since before time began.
It's there because if you break your X you probably want a usable
editor to help you fix it.
--
Ciaran McCreesh
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"?
2010-06-07 18:53 ` Ciaran McCreesh
@ 2010-06-07 19:05 ` dev-random
2010-06-07 19:10 ` Ciaran McCreesh
2010-06-07 20:38 ` [gentoo-dev] " Duncan
2010-06-08 17:29 ` [gentoo-dev] " Michał Górny
2 siblings, 1 reply; 10+ messages in thread
From: dev-random @ 2010-06-07 19:05 UTC (permalink / raw
To: gentoo-dev
On Mon, Jun 07, 2010 at 07:53:22PM +0100, Ciaran McCreesh wrote:
> It's there because if you break your X you probably want a usable
> editor to help you fix it.
vim, compiled with "vim-with-x" works correctly when X is broken. It
doesn't enable X11-based UI, like flag "X" suggests. It just enables
optional connection to x-server to use its clipboard, and vim still
works if that connection fails.
X11-based UI is in separate package, "app-editors/gvim"
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"?
2010-06-07 19:05 ` dev-random
@ 2010-06-07 19:10 ` Ciaran McCreesh
2010-06-07 19:59 ` Jim Ramsay
0 siblings, 1 reply; 10+ messages in thread
From: Ciaran McCreesh @ 2010-06-07 19:10 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 573 bytes --]
On Mon, 7 Jun 2010 23:05:27 +0400
dev-random@mail.ru wrote:
> On Mon, Jun 07, 2010 at 07:53:22PM +0100, Ciaran McCreesh wrote:
> > It's there because if you break your X you probably want a usable
> > editor to help you fix it.
>
> vim, compiled with "vim-with-x" works correctly when X is broken. It
> doesn't enable X11-based UI, like flag "X" suggests. It just enables
> optional connection to x-server to use its clipboard, and vim still
> works if that connection fails.
It does not, however, work if your X libraries are broken.
--
Ciaran McCreesh
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"?
2010-06-07 19:10 ` Ciaran McCreesh
@ 2010-06-07 19:59 ` Jim Ramsay
0 siblings, 0 replies; 10+ messages in thread
From: Jim Ramsay @ 2010-06-07 19:59 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 2036 bytes --]
Ciaran McCreesh <ciaran.mccreesh@googlemail.com> wrote:
> On Mon, 7 Jun 2010 23:05:27 +0400
> dev-random@mail.ru wrote:
> > On Mon, Jun 07, 2010 at 07:53:22PM +0100, Ciaran McCreesh wrote:
> > > It's there because if you break your X you probably want a usable
> > > editor to help you fix it.
> >
> > vim, compiled with "vim-with-x" works correctly when X is broken. It
> > doesn't enable X11-based UI, like flag "X" suggests. It just enables
> > optional connection to x-server to use its clipboard, and vim still
> > works if that connection fails.
>
> It does not, however, work if your X libraries are broken.
I certainly agree with you that removing the linkage to a handful of X
libraries makes vim more robust if those particular libraries fail.
However even with USE="-vim-with-x", there are a number of other
libraries that, if broken, will still render vim useless, such as
ncurses, perl, python, and ruby.
I suspect if one really wants a fail-proof editor, one would either
be building vim with USE="minimal" which will ignore the 'vim-with-x'
or 'X' USE flag (regardless of what we call it) and also ignore any
perl/python/ruby libraries, or one would want something more
trim, like busybox vi. Or even better yet, busybox vi with USE="static".
Of course changing the USE flag name to 'X' would still let users
decide to *not* link their app-editors/vim against any X libraries via
per-package USE flags. The main difference in changing the name from
'vim-with-x' to 'X' is that instead of enforcing a default behaviour of
"Vim will not link against X unless explicitly told to do so", we will
be enforcing a policy of "Vim will link against X when USE='X'".
I suppose this is a bit like a transition from an opt-in policy to an
opt-out policy, with the caveat that by enabling USE=X globally, a user
has already declared their intent: opt-in to linking against X
in all packages where there is a choice to do so.
--
Jim Ramsay
Gentoo Developer (rox/fluxbox/gkrellm/vim)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-dev] Re: app-editors/vim and USE="vim-with-x" -> Rename to USE="X"?
2010-06-07 18:53 ` Ciaran McCreesh
2010-06-07 19:05 ` dev-random
@ 2010-06-07 20:38 ` Duncan
2010-06-08 17:29 ` [gentoo-dev] " Michał Górny
2 siblings, 0 replies; 10+ messages in thread
From: Duncan @ 2010-06-07 20:38 UTC (permalink / raw
To: gentoo-dev
Ciaran McCreesh posted on Mon, 07 Jun 2010 19:53:22 +0100 as excerpted:
> On Mon, 7 Jun 2010 14:44:32 -0400
> Jim Ramsay <lack@gentoo.org> wrote:
>> There is an ancient bug[1] dealing with the "vim-with-x" USE flag.
>>
>> I think it makes sense to rename this flag from 'vim-with-x' to just
>> 'X', but thought I'd raise the issue here since this USE flag has been
>> around since before time began.
>
> It's there because if you break your X you probably want a usable editor
> to help you fix it.
That's a good point, but it would be much like links, with the X (and
several others, jpeg, png, tiff, etc) USE flags. Many people use it
primarily or exclusively as a console browser and don't want it broken if
those libraries are, despite the fact that they use X (and the image
libraries) by default, and thus have those USE flags enabled by default.
IOW. that's what package.use is for (with portage, anyway, no idea what
the alternative PMs use, but portage is the default, anyway). There are
packages where one doesn't want the global flags enabled, and there are
mechanisms in place for just that USE (heh!) case. Use 'em for what
they're designed for! =:^)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"?
2010-06-07 18:53 ` Ciaran McCreesh
2010-06-07 19:05 ` dev-random
2010-06-07 20:38 ` [gentoo-dev] " Duncan
@ 2010-06-08 17:29 ` Michał Górny
2 siblings, 0 replies; 10+ messages in thread
From: Michał Górny @ 2010-06-08 17:29 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1502 bytes --]
On Mon, 7 Jun 2010 19:53:22 +0100
Ciaran McCreesh <ciaran.mccreesh@googlemail.com> wrote:
> On Mon, 7 Jun 2010 14:44:32 -0400
> Jim Ramsay <lack@gentoo.org> wrote:
> > There is an ancient bug[1] dealing with the "vim-with-x" USE flag.
> >
> > I think it makes sense to rename this flag from 'vim-with-x' to just
> > 'X', but thought I'd raise the issue here since this USE flag has
> > been around since before time began.
>
> It's there because if you break your X you probably want a usable
> editor to help you fix it.
As Duncan already mentioned, vim is not the only 'primarily console'
application which can link against X libraries. Thus, if we really have
to use another flag than 'X' (which idea I personally dislike), then I
think it would be better to choose some more common name.
Additionally, as Jim mentioned, there's still a lot of other libraries
which could make vim useless. Thus, I think the best solution would be
to encourage upstream (or even provide a patch if they like the idea)
to support dynamic runtime linking with all optional libraries in vim.
Thanks to that, vim would be able to run fine with totally broken
libraries. If it would fail to 'load' them, it would just disable
particular features. Additionally, user should be able then to
explicitly disable loading particular libraries if they would cause
segfaults or other problems afterwards.
--
Best regards,
Michał Górny
<http://mgorny.alt.pl>
<xmpp:mgorny@jabber.ru>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"?
2010-06-07 18:44 [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"? Jim Ramsay
2010-06-07 18:51 ` Tomáš Chvátal
2010-06-07 18:53 ` Ciaran McCreesh
@ 2010-06-08 20:30 ` Mike Frysinger
2010-06-09 21:27 ` Jim Ramsay
2 siblings, 1 reply; 10+ messages in thread
From: Mike Frysinger @ 2010-06-08 20:30 UTC (permalink / raw
To: gentoo-dev; +Cc: Jim Ramsay
[-- Attachment #1: Type: Text/Plain, Size: 663 bytes --]
On Monday, June 07, 2010 14:44:32 Jim Ramsay wrote:
> There is an ancient bug[1] dealing with the "vim-with-x" USE flag.
>
> I think it makes sense to rename this flag from 'vim-with-x' to just
> 'X', but thought I'd raise the issue here since this USE flag has been
> around since before time began.
>
> Does anyone care?
people want it and i havent seen any compelling reason to avoid it anymore, so
let's rock
for the really conservative people who fear a completely trashed system,
they're probably forgetting about the static busybox that is on everyone's
system. `busybox vi` gives you a "never gonna let you down" safety net.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"?
2010-06-08 20:30 ` Mike Frysinger
@ 2010-06-09 21:27 ` Jim Ramsay
0 siblings, 0 replies; 10+ messages in thread
From: Jim Ramsay @ 2010-06-09 21:27 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 239 bytes --]
Mike Frysinger <vapier@gentoo.org> wrote:
> people want it and i havent seen any compelling reason to avoid it
> anymore, so let's rock
For the record: It is now rocked.
--
Jim Ramsay
Gentoo Developer (rox/fluxbox/gkrellm/vim)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-06-09 21:28 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-07 18:44 [gentoo-dev] app-editors/vim and USE="vim-with-x" -> Rename to USE="X"? Jim Ramsay
2010-06-07 18:51 ` Tomáš Chvátal
2010-06-07 18:53 ` Ciaran McCreesh
2010-06-07 19:05 ` dev-random
2010-06-07 19:10 ` Ciaran McCreesh
2010-06-07 19:59 ` Jim Ramsay
2010-06-07 20:38 ` [gentoo-dev] " Duncan
2010-06-08 17:29 ` [gentoo-dev] " Michał Górny
2010-06-08 20:30 ` Mike Frysinger
2010-06-09 21:27 ` Jim Ramsay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox