From owner-freebsd-ruby@FreeBSD.ORG Sun Jun 12 22:07:49 2011 Return-Path: Delivered-To: ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D7BC106566C for ; Sun, 12 Jun 2011 22:07:49 +0000 (UTC) (envelope-from steve@mouf.net) Received: from mouf.net (mouf.net [204.109.58.86]) by mx1.freebsd.org (Postfix) with ESMTP id A863E8FC0A for ; Sun, 12 Jun 2011 22:07:48 +0000 (UTC) Received: from meatwad.mouf.net (cpe-065-190-149-241.nc.res.rr.com [65.190.149.241]) (authenticated bits=0) by mouf.net (8.14.4/8.14.4) with ESMTP id p5CM7grU052664 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Sun, 12 Jun 2011 18:07:43 -0400 (EDT) (envelope-from steve@mouf.net) Message-ID: <4DF538AE.90204@mouf.net> Date: Sun, 12 Jun 2011 18:07:42 -0400 From: Steve Wills User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110531 Thunderbird/3.1.10 MIME-Version: 1.0 To: Eric References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (mouf.net [204.109.58.86]); Sun, 12 Jun 2011 18:07:43 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.96.2 at mouf.net X-Virus-Status: Clean Cc: ruby@freebsd.org Subject: Re: ruby 1.9 update patch X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2011 22:07:49 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/25/11 09:12, Eric wrote: >> From: Steve Wills >> >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Thanks for the feedback! >> >> I was attempting to do some run time testing of this and stumbled upon a >> strange issue. It seems that even without my patch (and with it too), if >> you do this: >> >> cd /usr/ports/databases/ruby-bdb >> env RUBY_VER=1.9 make install >> >> on a system without any ruby, it will install Ruby 1.9, then fail to >> install the databases/ruby-bdb port since there will not be a "rdoc" >> binary installed, but only "rdoc19". My patch doesn't make this worse, >> but it doesn't help it either. Should I try to solve this and if so how? >> >> Steve > > That cropped up before here: > http://lists.freebsd.org/pipermail/freebsd-ruby/2011-March/001169.html > > I half remember you get a rake19 command, etc when installing Ruby 1.9. You > certainly get a ruby18 in /usr/local/bin for 1.8! Anyhow in the 1.9 Ruby > Makefile you can see a small snippet of code which currently doesn't do > anything, but would symlink those xxx19 scripts to the correct names if the > default version was bumped. > > .if ${RUBY_VER} == ${RUBY_DEFAULT_VER} > . for FILE in ${INSTALLED_SCRIPTS} > ${LN} -f ${PREFIX}/bin/${FILE}${RUBY_SUFFIX} ${PREFIX}/bin/${FILE} > . endfor > .endif > > INSTALLED_SCRIPTS being: irb erb rdoc ri ruby testrb rake gem > > How that symlinking affects or interferes with some of the gem versions of > those I don't know. > > I suppose we need to decide if the plan is to get the system so that a user > could almost choose Ruby 1.8 or 1.9 as a default (Makefile option to do > things like those symlinks?) or if we're getting it so that we can just flip > the switch (RUBY_DEFAULT_VER) and make 1.9 a default in a future release. > That said we'd want to make sure it was fairly trivial for a user to revert > to a 1.8 install since it's still a popular version. I think we're going to have to first do the first option you mentioned, do a bunch of testing, then we should be able to just flip the switch. Reverting back to the older version should just be a matter of setting RUBY_VER = 1.8. > Also I do keep meaning to test your 1.9 patch and try it out when I get some > time! Promise! Please see my other posting for an updated patch. :) Thanks, Steve -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBAgAGBQJN9TiuAAoJEPXPYrMgexuhX64H+gNL0jXnDOZ+rPM8hf7hqbLa uqYHnlHp5k0SLHhYBVot7j+gRg+wcqE1mSqGQD7YO+aRUmEtww71OsF7CLm6GSRs U4ftRpL33HvhVt7HTfWgsi3BRaRw4T2RTi64YeiEQtTk6g4MuRj31rXmANMv21kZ tsMQg/32ZnfrVR7woDshpcjMGyWwxmfRJS32Rw0O8imBMuR+i2NFiOyAsUm4cocn g4k9vOKnY6pDvlZ4iayumgT10tEDe/rMGb2gKzgUmU/Ycea9cpy+vG44M4fQByJM A+IYV2BfBHifpxz7njrWF7WK/Jn8Y9mJUn44S8XVFzhnnCFi3zrA/FFP3GSiLfU= =WkNi -----END PGP SIGNATURE-----