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

Re: [PATCH] enabling ruby in the subversion build

From: Michael Chletsos <mpchlets_at_gmail.com>
Date: Wed, 7 Nov 2012 05:16:31 -1000

OK - first, I would not support ruby 1.9.1 - I assume that you really
have 1.9.2 (debian/ubuntu uses a meta-package)- can you show me the
output of ruby -v

I would support ruby 1.9.3 and above - there were issues with 1.9.1 and 1.9.2.

If installing on debian/ubuntu, here are the steps for 1.9.3:

apt-get install build-essential openssl libreadline6 libreadline6-dev
zlib1g zlib1g-dev libssl-dev ncurses-dev libyaml-dev
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.gz
tar -xzvf ruby-1.9.3-p286.tar.gz
cd ruby-1.9.3-p286

export CFLAGS="-Os"
time (./configure --prefix=/usr --with-ruby-version=1.9.3-p286
--program-suffix=-1.9.3-p286 && make && make install
DESTDIR=/tmp/ruby1.9.3-p286)

apt-get install ruby1.9.1 # you already have this installed, you can ignore it
gem install fpm
fpm -s dir -t deb -n ruby -v 1.9.3-p286 --description "Self-packaged
Ruby 1.9.3-p286" -C /tmp/ruby1.9.3-p286 -p ruby193-VERSION_ARCH.deb -d
"libstdc++6 (>= 4.4.3)" -d
"libc6 (>= 2.6)" -d "libffi5 (>= 3.0.4)" -d "libgdbm3 (>= 1.8.3)" -d
"libncurses5 (>= 5.7)" -d "libreadline6 (>= 6.1)" -d "libssl0.9.8
(>= 0.9.8)" -d "zlib1g (>= 1:1.2.2)"
  -d "libyaml-0-2 (>= 0.1.3)" usr/bin usr/lib usr/share/man usr/include
apt-get remove ruby1.9.1

dpkg -i ruby-1.9.3-p286

For sanities sake, create a wrapper for your ruby since the gc will be
pretty poor, create /usr/bin/ruby:

#!/bin/sh
export RUBY_HEAP_MIN_SLOTS=600000
export RUBY_GC_MALLOC_LIMIT=59000000
export RUBY_FREE_MIN=200000
exec "/usr/bin/ruby-1.9.3-p286" "$@"

then test: ruby -ropenssl -rzlib -rreadline -ryaml -e "puts :success"

This should get ruby 1.9.3 installed on your system, then the patch
should work fine.

On Wed, Nov 7, 2012 at 5:09 AM, Philip Martin
<philip.martin_at_wandisco.com> wrote:
> Michael Chletsos <mpchlets_at_gmail.com> writes:
>
>> Hi Philip -
>>
>> Not sure if you remember me from the Subversion Live! event the other
>> week (Michael with Assembla), anyhow . . . I was able to run the ruby
>> swig tests - though one test failed because of encoding, not a huge
>> deal breaker, and the regular make test ran fine - were you talking
>> about some other regression tests?
>
> I was unable to run the regression tests with the patch applied:
>
> http://svn.haxx.se/dev/archive-2012-01/0388.shtml
>
> The problem appears to be related to the test environment. I don't do
> Ruby so I don't know how to fix it and I won't commit the patch until I
> can run the tests.
>
> --
> Certified & Supported Apache Subversion Downloads:
> http://www.wandisco.com/subversion/download
Received on 2012-11-07 16:17:02 CET

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.