view · edit · sidebar · attach · print · history

Ruby 1.8.6-p388 with the Oniguruma-Patch from Hannes Wyss

We had to build Ruby with the oniguruma Library, because some of the regular expressions need lookbehind patterns.

At the moment, the Oniguruma-Patches are only compatible with Ruby 1.8.6, not 1.8.7. You can get them here:

 $> scp -r ywesee@[server].ywesee.com:src/ruby/oniguruma .

To install, you need to use the gentoo ebuild command:

 > ebuild /usr/portage/dev-lang/ruby/ruby-1.8.6_p388.ebuild unpack

then apply the oniguruma patch:

 > cd ./oniguruma
 > ./configure --with-rubydir=/var/tmp/portage/dev-lang/ruby-1.8.6_p388/work/ruby-1.8.6_p388
 > make 186

It's possible that the patch needs to be updated.

At this point, you should probably apply two more patches:

If you're on a 64bit system, the GD library segfaults without this:

 $> scp -r ywesee@[server].ywesee.com:src/ruby/ruby-64bit-segv.patch
 > patch -d /var/tmp/portage/dev-lang/ruby-1.8.6_p388-r1/work/ruby-1.8.6-p388/ext < ruby-64bit-segv.patch

Don't worry if Hunk 4 fails, it's a comment.

And for yaml-exports from oddb.org you may need

 $> scp -r ywesee@[server].ywesee.com:src/ruby/yaml-collision-ary.patch
 > patch -p1 -d /var/tmp/portage/dev-lang/ruby-1.8.6_p388/work/ruby-1.8.6-p388/ < yaml-collision-ary.patch

Then build and install:

 > ebuild /usr/portage/dev-lang/ruby/ruby-1.8.6_p388.ebuild compile install qmerge

Let me know if you run into trouble, this is a tricky bit. You may want to make a custom ebuild

Note: digesting the ebuild

If the ebuild is not there then download it to /usr/portag/dev-lang/ruby/ and digest it with:

 ebuild /usr/portage/dev-lang/ruby/ruby-1.8.6_p388.ebuild digest
view · edit · sidebar · attach · print · history
Page last modified on July 24, 2010, at 05:18 PM