public inbox for gentoo-lisp@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-lisp] vim with embedded racket
@ 2011-04-12  2:43 Imran Rafique
  2011-04-12  8:32 ` Marijn
  0 siblings, 1 reply; 7+ messages in thread
From: Imran Rafique @ 2011-04-12  2:43 UTC (permalink / raw
  To: gentoo-lisp

Gentoo-lispers,

Currently, vim support for embedded racket is disabled in
eclass/vim.eclass. I have patched this in my local overlay to add
support for both racket (and tcl). As dev-scheme/racket is itself not
part of the standard portage tree, I thought it might not make sense
to create a new bug to amend the standard vim.eclass. Would it be
better to just add the amended vim.eclass to the gentoo-lisp overlay
instead?

If so, then should I just send the patch to this list, or create a
bugzilla bug with some gentoo-lisp specific info?

--
Regards,
       Imran Rafique



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-lisp] vim with embedded racket
  2011-04-12  2:43 [gentoo-lisp] vim with embedded racket Imran Rafique
@ 2011-04-12  8:32 ` Marijn
  2011-04-13  1:45   ` Imran Rafique
  0 siblings, 1 reply; 7+ messages in thread
From: Marijn @ 2011-04-12  8:32 UTC (permalink / raw
  To: Imran Rafique; +Cc: gentoo-lisp

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Imran,

On 04/12/11 04:43, Imran Rafique wrote:
> Gentoo-lispers,
> 
> Currently, vim support for embedded racket is disabled in
> eclass/vim.eclass. I have patched this in my local overlay to add
> support for both racket (and tcl). As dev-scheme/racket is itself not
> part of the standard portage tree, I thought it might not make sense
> to create a new bug to amend the standard vim.eclass. Would it be
> better to just add the amended vim.eclass to the gentoo-lisp overlay
> instead?

Racket is on its way to main tree.

> If so, then should I just send the patch to this list, or create a
> bugzilla bug with some gentoo-lisp specific info?

You can create a bug and have it depend on the bug about getting racket
in main tree (324161).

Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2kDiQACgkQp/VmCx0OL2zQGgCgnL2JgCNjURprwWXP/FnjU7GO
FgoAn08AiN0VVgnjnYVwcP/4mXlxxxqf
=fNOW
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-lisp] vim with embedded racket
  2011-04-12  8:32 ` Marijn
@ 2011-04-13  1:45   ` Imran Rafique
  2011-04-13 11:36     ` Marijn
  0 siblings, 1 reply; 7+ messages in thread
From: Imran Rafique @ 2011-04-13  1:45 UTC (permalink / raw
  To: Marijn; +Cc: gentoo-lisp

Will do. But there's one issue. I needed to replace /usr/bin/mzscheme
with a symlink to /usr/bin/racket.

Racket-5.1 (from this overlay) installs a /usr/bin/mzscheme binary in
addition to /usr/bin/racket. Seems like some useless leftover artifact
('racket' provides the repl, 'mzscheme' segfaults)

Vim-7.3 was released when racket was still plt-scheme, and it
specifically looked for the mzscheme binary. vim-7.3.049 updated the
scheme support to work with racket, but vim still looks for
'/usr/bin/mzscheme' and uses it (sure, thats an upstream issue, but
its what we have right now).

Replacing /usr/bin/mzscheme with a symlink to /usr/bin/racket sorted
that issue out, but this really needs to be something which the racket
ebuild itself resolves (whats that mzscheme binary for, anyway?)

--
Regards,
       Imran Rafique

(skype: imran_rafique)



On 12 April 2011 08:32, Marijn <hkBst@gentoo.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Imran,
>
> On 04/12/11 04:43, Imran Rafique wrote:
>> Gentoo-lispers,
>>
>> Currently, vim support for embedded racket is disabled in
>> eclass/vim.eclass. I have patched this in my local overlay to add
>> support for both racket (and tcl). As dev-scheme/racket is itself not
>> part of the standard portage tree, I thought it might not make sense
>> to create a new bug to amend the standard vim.eclass. Would it be
>> better to just add the amended vim.eclass to the gentoo-lisp overlay
>> instead?
>
> Racket is on its way to main tree.
>
>> If so, then should I just send the patch to this list, or create a
>> bugzilla bug with some gentoo-lisp specific info?
>
> You can create a bug and have it depend on the bug about getting racket
> in main tree (324161).
>
> Marijn
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.17 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk2kDiQACgkQp/VmCx0OL2zQGgCgnL2JgCNjURprwWXP/FnjU7GO
> FgoAn08AiN0VVgnjnYVwcP/4mXlxxxqf
> =fNOW
> -----END PGP SIGNATURE-----
>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-lisp] vim with embedded racket
  2011-04-13  1:45   ` Imran Rafique
@ 2011-04-13 11:36     ` Marijn
  2011-04-13 12:32       ` Marijn
  2011-04-13 22:57       ` Imran Rafique
  0 siblings, 2 replies; 7+ messages in thread
From: Marijn @ 2011-04-13 11:36 UTC (permalink / raw
  To: Imran Rafique; +Cc: gentoo-lisp

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Imran,

On 04/13/11 03:45, Imran Rafique wrote:
> Will do. But there's one issue. I needed to replace /usr/bin/mzscheme
> with a symlink to /usr/bin/racket.
> 
> Racket-5.1 (from this overlay) installs a /usr/bin/mzscheme binary in
> addition to /usr/bin/racket. Seems like some useless leftover artifact
> ('racket' provides the repl, 'mzscheme' segfaults)

I wasn't aware, but I just checked and with the live ebuild that I have
locally I indeed still get that file too and it does:

$ mzscheme
read failed to read all 31 bytes from file /usr/bin/mzscheme
Aborted

> Vim-7.3 was released when racket was still plt-scheme, and it
> specifically looked for the mzscheme binary. vim-7.3.049 updated the
> scheme support to work with racket, but vim still looks for
> '/usr/bin/mzscheme' and uses it (sure, thats an upstream issue, but
> its what we have right now).
> 
> Replacing /usr/bin/mzscheme with a symlink to /usr/bin/racket sorted
> that issue out, but this really needs to be something which the racket
> ebuild itself resolves (whats that mzscheme binary for, anyway?)

I'll talk to upstream about the mzscheme executable. How hard would it
be to fix vim to look for racket instead of mzscheme?

Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2lirAACgkQp/VmCx0OL2zalQCfdtdRCiOBDyVqz+K7exFTbIO7
N9AAn2MUFOOPd1D1mHA4LIigsD9UBKyb
=jyc+
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-lisp] vim with embedded racket
  2011-04-13 11:36     ` Marijn
@ 2011-04-13 12:32       ` Marijn
  2011-04-13 22:57       ` Imran Rafique
  1 sibling, 0 replies; 7+ messages in thread
From: Marijn @ 2011-04-13 12:32 UTC (permalink / raw
  To: Imran Rafique; +Cc: gentoo-lisp

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

BTW a bug seems to be already open about this:
http://bugs.gentoo.org/show_bug.cgi?id=350887

Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2ll8wACgkQp/VmCx0OL2yA+ACfSbNWpvQ/ed2OGJGGxo7SPDb+
NawAn2dMQ5hdCTNsHAvr3PRL52DUan3w
=y3hy
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-lisp] vim with embedded racket
  2011-04-13 11:36     ` Marijn
  2011-04-13 12:32       ` Marijn
@ 2011-04-13 22:57       ` Imran Rafique
  2011-04-14  3:34         ` Imran Rafique
  1 sibling, 1 reply; 7+ messages in thread
From: Imran Rafique @ 2011-04-13 22:57 UTC (permalink / raw
  To: Marijn; +Cc: gentoo-lisp

On 13 April 2011 11:36, Marijn <hkBst@gentoo.org> wrote:
> On 04/13/11 03:45, Imran Rafique wrote:
>> Will do. But there's one issue. I needed to replace /usr/bin/mzscheme
>> with a symlink to /usr/bin/racket.
>>
>> Racket-5.1 (from this overlay) installs a /usr/bin/mzscheme binary in
>> addition to /usr/bin/racket. Seems like some useless leftover artifact
>> ('racket' provides the repl, 'mzscheme' segfaults)
>
> I wasn't aware, but I just checked and with the live ebuild that I have
> locally I indeed still get that file too and it does:
>
> $ mzscheme
> read failed to read all 31 bytes from file /usr/bin/mzscheme
> Aborted

Yup, same here.

>> Vim-7.3 was released when racket was still plt-scheme, and it
>> specifically looked for the mzscheme binary. vim-7.3.049 updated the
>> scheme support to work with racket, but vim still looks for
>> '/usr/bin/mzscheme' and uses it (sure, thats an upstream issue, but
>> its what we have right now).
>>
>> Replacing /usr/bin/mzscheme with a symlink to /usr/bin/racket sorted
>> that issue out, but this really needs to be something which the racket
>> ebuild itself resolves (whats that mzscheme binary for, anyway?)
>
> I'll talk to upstream about the mzscheme executable.

I just saw your mail on racket-dev. I was too lazy to do that - thanks :)

> How hard would it be to fix vim to look for racket instead of mzscheme?

Hmm, not sure. I had a quick look at patch 049 (which updated from plt-scheme
to racket) but didn't see anything obvious. There are other issues with how
racket is embedded. For example, the scheme snippet in configure, which detects
what racket's install prefix is, doesn't work. Its missing the '#lang scheme'
or a (module ...) form (I'll mention that to upstream).

Thats easily handled by my vim.eclass by bypassing this detection of racket's
prefix, by passing "--with-plthome=/usr/".

One quick way of fixing the mzscheme problem from our end (for now), would be
for the racket ebuild to just replace the mzscheme binary with a symlink to
racket, and install that. In keeping with the gentoo spirit of quick local
fixes while waiting for upstream to fix the problem :)

--
Regards,
       Imran Rafique



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-lisp] vim with embedded racket
  2011-04-13 22:57       ` Imran Rafique
@ 2011-04-14  3:34         ` Imran Rafique
  0 siblings, 0 replies; 7+ messages in thread
From: Imran Rafique @ 2011-04-14  3:34 UTC (permalink / raw
  To: Marijn; +Cc: gentoo-lisp

PS: added a patch for eclass/vim.eclass to bug 350887
("Add mzscheme USE flag to app-editors/vim and app-editors/gvim")

--
Regards,
       Imran Rafique



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-04-14  3:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-12  2:43 [gentoo-lisp] vim with embedded racket Imran Rafique
2011-04-12  8:32 ` Marijn
2011-04-13  1:45   ` Imran Rafique
2011-04-13 11:36     ` Marijn
2011-04-13 12:32       ` Marijn
2011-04-13 22:57       ` Imran Rafique
2011-04-14  3:34         ` Imran Rafique

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox