On Sat, Sep 25, 2010 at 4:57 AM, Steven Mestdagh <[email protected]> wrote: > Jeremy Evans [2010-09-23, 15:45:40]: >> For those of you who don't follow ports-changes, just a heads up to let >> you know that I just committed a modification to lang/ruby that splits >> the port into separate 1.8 and 1.9 ports. ruby 1.8 now installs as >> ruby18 and ruby 1.9 installs as ruby19. >> >> When you update or install ruby, ruby-rake, or ruby-gems, pkg_add will >> spit out instructions letting you know the commands to run to set up >> the symlinks for the ruby binaries so that you can choose to use either >> ruby 1.8 or 1.9 as your default system ruby. >> >> If you notice any breakage from this update, please let me know. > > Are those symlinks required or optional?
Optional, but it's recommended that you set them up either for 1.8 or 1.9. All ports should work without the symlinks (if not, it's a bug), but if you install anything outside of ports, it may or may not work without the symlinks. > Will OpenBSD packages use a default version like we have for python and tcl? Yes. The default is 1.8.7p302. I haven't added the necessary goo to ruby.port.mk yet that will allow you to use ruby 1.9.2 by default. It's something I plan to work on at p2k10. > For instance, I noticed some ruby scripts shipped with amarok, which use > "env ruby". That currently does not work. Should this be adapted to use the > default ruby version if there is any? Yes, that's a bug. :) It should be adapted to use ruby18. I'll take a look at this soon. > Should dependencies be written to accept both versions? No. The dependencies use ruby 1.8. In most cases, the dependencies use the lang/ruby module, which takes care of that. In some cases, the dependencies don't use the lang/ruby module, in which case the ruby 1.8 dependency is hard coded in the port's Makefile. Jeremy
