From: Ray Schneider Date: 2001-05-15T03:53:04+09:00 Subject: [ruby-talk:15113] Porting Ruby Applications to OpenBSD Hello Everyone! I have a problem that I need to get resolved in some fashion. It may be my own ignorance / maybe not. Either way the problem is preventing the incorporation of ruby applications from getting into the OpenBSD ports tree. The problem seems to revolve around ruby install scripts and the way Ruby handles DESTDIR in rbconfig.rb. I have posted a question about this in the past. Basically I need a way to configure installs such that I can do an installation in a seperate directory as well as where it will finally end up. The ports system uses a directory and tries to perform a install into whats called the fake-i386 directory structure. Then afterwards a package can be built from what was installed there. Now I have not been able to get this to behave on a regular basis. It seems as though DESTDIR is potentially ignored. I tried the following in rbconfig.rb DESTDIR = ENV["DESTDIR"] CONFIG = {} TOPDIR = File.dirname(__FILE__).sub!(%r'/lib/ruby/1\.6/i386\-openbsd2\.8\Z', ' ') CONFIG["srcdir"] = "/usr/local/src/ruby-1.6.3" if (DESTDIR) CONFIG["prefix"] = DESTDIR + "/usr/local" else CONFIG["prefix"] = TOPDIR end rather than what is already there: DESTDIR = '' if not defined? DESTDIR CONFIG = {} TOPDIR = File.dirname(__FILE__).sub!(%r'/lib/ruby/1\.6/i386\-openbsd2\.8\Z', ' ') CONFIG["srcdir"] = "/usr/local/src/ruby-1.6.3" CONFIG["prefix"] = (TOPDIR || DESTDIR + "/usr/local") It seemed as though the change myself and a friend tried was working and allowing things to get put where they needed to to make ports packaging work appropriately, but just as we were getting ready to send this in as a potential patch, i tried getting one more thing to install and it would not work until i put things back the way they were in rbconfig.rb. Now I admit this needs more looking at, but my time is running short these last few weeks as my wife and I are expecting a new baby shortly 8) I was wondering if anyone familiar with OpenBSD and Ruby on this list or otherwise interested parties in seeing Ruby Applications make their way into the ports tree would be willing to help figure something out here to make things easier. Thanks again to everyone! Im just another Ruby lovin ol perl hackin *NIX guy trying to do my part to spread Ruby as much as I can through getting things into the ports tree under my favorite OS currently! Thanks in Advance for any suggestions or cures that people may be able to provide. -ray -- ------------------------------------------------ http://hackfoo.net/~ray