Created attachment 232440 [details] Patch file Fix build with Ruby 3.x.
www/redmine4 and www/redmine42 don't support ruby 3: https://redmine.org/projects/redmine/wiki/RedmineInstall
Created attachment 232569 [details] Updated patch file Mark www/redmine4 and www/redmine42 as BROKEN with Ruby 3.x.
Thanks, feel free to commit it, I don't have access to a computer rn
Take.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=40add0e179bb7b1eb38c378fa8e7d078630e1865 commit 40add0e179bb7b1eb38c378fa8e7d078630e1865 Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2022-03-19 06:34:12 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2022-03-21 00:23:51 +0000 www/redmine{4,42}: Mark BROKEN with Ruby 3.x Reference: https://redmine.org/projects/redmine/wiki/RedmineInstall#Ruby-interpreter PR: 262538 Approved by: maintainer www/redmine4/Makefile | 2 ++ www/redmine42/Makefile | 2 ++ 2 files changed, 4 insertions(+)
(In reply to commit-hook from comment #5) How do I build this port with ruby27 now?
(In reply to Mikael Urankar from comment #6) You can change default version of ruby to 2.7 by adding 'DEFAULT_VERSIONS+=ruby=2.7' to /etc/make.conf.
(In reply to Yasuhiro Kimura from comment #7) Or add following lines to make.conf if you want to use ruby 2.7 only with www/redmine4. .if ${.CURDIR:M*/www/redmine4} RUBY_VER=2.7 .endif
(In reply to Yasuhiro Kimura from comment #8) I rephrase, what change should I make to the port so that the official cluster can build it?
(In reply to Mikael Urankar from comment #9) Oops, sorry I misunderstood. It should be achieved by adding 'RUBY_VER=2.7' in Makefile.
The problem is that the gem ports are built with ruby30...
(In reply to Mikael Urankar from comment #11) Sorry, then I don't have answer to solve it. Probably we need to flavorize ruby and gem ports to make gems ports avairable with every version of ruby.
Reopen, as this commit break an importan(In reply to Yasuhiro Kimura from comment #12) any ETA for the ruby flavor?
besides 'RUBY_VER=2.7' we need this work-around now: -- --- a/config/application.rb +++ b/config/application.rb @@ -56,9 +56,6 @@ module RedmineApp # Do not include all helpers config.action_controller.include_all_helpers = false - # Since Redmine 4.0, boolean values are stored in sqlite3 databases as 1 and 0 - config.active_record.sqlite3.represent_boolean_as_integer = true -- see: https://www.redmine.org/issues/34980