[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Ruby 2.0 support

From: Ben Reser <ben_at_reser.org>
Date: Tue, 27 May 2014 13:51:25 -0700

On 3/31/14, 7:38 PM, James McCoy wrote:
> Ruby 2.0 has a few new RbConfig variables, {ruby,vendor,site}archhdrdir.
> At least rubyarchhdrdir needs to be used to correctly locate
> ruby/config.h, since it is architecture specific.
> The attached patch adapts configure.ac to recognize ruby2.0/rdoc2.0 and
> swig.m4 to use rubyarchhdrdir if it's available.
> There's some additional work that may be needed in
> build/ac-macros/swig.m4 and tools/dev/unix-build/Makefile.svn, as
> sitearchdir isn't necessarily a subset of sitedir for ruby >=2.0.
> $ ruby1.9.1 -rrbconfig -e 'puts RbConfig::CONFIG["sitearchdir"]'
> /usr/local/lib/site_ruby/1.9.1/x86_64-linux
> $ ruby1.9.1 -rrbconfig -e 'puts RbConfig::CONFIG["sitedir"]'
> /usr/local/lib/site_ruby
> $ ruby2.0 -rrbconfig -e 'puts RbConfig::CONFIG["sitearchdir"]'
> /usr/local/lib/x86_64-linux-gnu/site_ruby
> $ ruby2.0 -rrbconfig -e 'puts RbConfig::CONFIG["sitedir"]'
> /usr/local/lib/site_ruby

Is this more of a Ruby 2.1 support than Ruby 2.0 support? Because OS X
Mavericks (aka 10.9) shipped with Ruby 2.0 and I didn't need to make any
modifications. Unfortunately, I've always found Ruby's version numbering to be
confusing so I'm not sure if we're talking about the same things.
Received on 2014-05-27 22:51:59 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.