Saturday, January 21, 2012

Rebuild Korundum and QtRuby to use Ruby 1.9

In the previous article, I introduce thee way to rebuild portupgrade to use Ruby 1.9 on PC-BSD. By the way, on PC-BSD, there are two more libraries that depend on ruby 1.8 - Korundum and QtRuby. So that I introduce the way to rebuild these to use Ruby 1.9.

Before rebuilding

  1. Prepare ports on /usr/ports
  2. Install ccache to build Ruby 1.9, on /usr/ports/devel/ccache
  3. Add RUBY_DEFAULT_VER=1.9 and RUBY_VER=1.9 to /etc/make.conf
  4. Deinstall Ruby 1.8 on /usr/ports/lang/ruby18
  5. Install Ruby 1.9 on /usr/ports/lang/ruby19

Rebuild kdebindings

# setenv FORCE_PKG_REGISTER yes
# cd /usr/ports/devel/kdebindings4-ruby-qtruby
# make deinstall
# make install clean
# cd /usr/ports/devel/kdebindings4-ruby-korundum
# make deinstall
# make install clean
# cd /usr/ports/devel/kdebindings4-ruby
# make deinstall
# make install clean
# unsetenv FORCE_PKG_REGISTER
# pkg_deinstall --force ruby18-kdebindings-krossruby-4.7.3
Only krossruby is not ready for ruby 1.9, so that we should deselect option too when we do make install on /usr/ports/devel/kdebindings4-ruby.

After rebuilding (optional, but recommended)

Fix the information about ports dependencies
$ sudo pkgdb -F

No comments:

Post a Comment