From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QA90F-0004w5-Hs for garchives@archives.gentoo.org; Wed, 13 Apr 2011 22:57:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 409231C067; Wed, 13 Apr 2011 22:57:28 +0000 (UTC) Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com [209.85.216.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 07D5A1C067 for ; Wed, 13 Apr 2011 22:57:27 +0000 (UTC) Received: by qwb7 with SMTP id 7so824843qwb.40 for ; Wed, 13 Apr 2011 15:57:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=uIbXRUxmpHR6chMf6I5njPRQE365HDmenby7cX3nIC8=; b=RodvnPzJSXOGJrzFHoNqT0VC0NjwlIdqU0iUao/NLGf0N+jcfbx/KTb8YJ2Cb7t0T9 Tlsd00tm6raMnNOvXtrfFdMXi1zqpyWNUKMAqoWjhlzwleHW1DcHGSGyJar9OYvpRg2f 4B7CWsyg4C2QI4c9xH2B/9NzhuEzG00BPP/lQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=V9Uo4ZdqX4IYLmyTU1a14LX+WdlJnxQJ586wwlQOuOW9kanBQqrWb7GhklAwyb4YQO d/8BYpGKaV3IYDgW3aj2FmpMKM1L6VSK0Sl7NlCDqhwCWVhRjCNmblkh/kg0BV9RfL0w 5DzmdvoylMPXifl/A8gILH1/tnsXnuFjyb3Og= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Lisp mail X-BeenThere: gentoo-lisp@lists.gentoo.org MIME-Version: 1.0 Received: by 10.229.127.96 with SMTP id f32mr25868qcs.139.1302735446993; Wed, 13 Apr 2011 15:57:26 -0700 (PDT) Sender: is.rafique@gmail.com Received: by 10.229.98.15 with HTTP; Wed, 13 Apr 2011 15:57:26 -0700 (PDT) In-Reply-To: <4DA58AB1.5030604@gentoo.org> References: <4DA40E24.1090308@gentoo.org> <4DA58AB1.5030604@gentoo.org> Date: Wed, 13 Apr 2011 22:57:26 +0000 X-Google-Sender-Auth: mLUChkBEJge2RparOtBpIoen8lk Message-ID: Subject: Re: [gentoo-lisp] vim with embedded racket From: Imran Rafique To: Marijn Cc: gentoo-lisp@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 25856a94bfd9a4a7502241f6f666e261 On 13 April 2011 11:36, Marijn 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-sche= me 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 det= ects what racket's install prefix is, doesn't work. Its missing the '#lang schem= e' 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=3D/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, =A0 =A0 =A0 =A0Imran Rafique