On Sun, Feb 19, 2012 at 12:19 AM, Stephane LAPIE <[email protected]> wrote: > Hello, > > I would like to consult/contribute about the ports for Redmine and Ruby > Gems. > > I am fully aware of the problems surrounding Gems version >1.6.2 and > Redmine (which became broken because of this), but I have a need to keep > on using Redmine in my environment, and have no constraints in keeping > on using older versions of Gems. > > Therefore, I developped my own port for Redmine 1.3, and the rubytree > Gem, and made it available here : > - http://www.yomi.darkbsd.org/~darksoul/redmine/OpenBSD/ > - > http://www.yomi.darkbsd.org/~darksoul/redmine/OpenBSD/ports-redmine-rubytree.tar.gz > > (I am aware that the latest ports tree has a very recent version of > Gems, while the 5.0 ports tree still has Ruby Gems 1.3.7 and therefore > works without any problem) > > This is basically something one can untar in an existing /usr/ports for > their own purposes, but this is as one can guess, kind of suboptimal, > and it would be better for everyone, if it could be integrated in the > global ports tree. > > > > So I have the following questions : > - Are there any plans for supporting older versions of Gems in the ports? > - If so, could we have several versions of gems and dependencies > registered in the software ? (For instance, redmine would install ruby > gems 1.6.2 if none was installed, but become BROKEN if a superior > version was installed) > > > I also plan on porting Redmine plugins in the future. > > If there is a problem due to a lack of time maintaining the concerned > ports, I am willing to provide my time and help. > > Thanks again for your time,
Unfortunately, I don't think we will support the ability to downgrade the rubygems version. For ruby 1.9 and jruby, they already ship with upgraded rubygems versions, so you can't really downgrade without modifying the package. ruby 1.8 doesn't ship with a rubygems version, so you might be able to do it with ruby 1.8. The current rubygems version in ports for ruby 1.8 is 1.8.10, but all of the ruby 1.8 gem ports RUN_DEPENDS on >=1.3.7p0. So if you modify the current devel/ruby-gems port to downgrade the version to 1.6.2 and never upgrade it (made easier with EPOCH=0), you should be able to get rubygems 1.6.2 to work with the OpenBSD ports system. If you want to provide time and help, I recommend working on Redmine to get it working with the current version of gems. That is a precursor for getting a working redmine port for OpenBSD. Thanks, Jeremy
