Bug 262538 - www/redmine{4,42}: Mark BROKEN with Ruby 3.x
Summary: www/redmine{4,42}: Mark BROKEN with Ruby 3.x
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yasuhiro Kimura
URL:
Keywords:
Depends on:
Blocks: 262350
  Show dependency treegraph
 
Reported: 2022-03-14 01:37 UTC by Yasuhiro Kimura
Modified: 2023-02-13 08:04 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (mikael)


Attachments
Patch file (800 bytes, patch)
2022-03-14 01:37 UTC, Yasuhiro Kimura
no flags Details | Diff
Updated patch file (1.07 KB, patch)
2022-03-19 06:38 UTC, Yasuhiro Kimura
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhiro Kimura freebsd_committer freebsd_triage 2022-03-14 01:37:39 UTC
Created attachment 232440 [details]
Patch file

Fix build with Ruby 3.x.
Comment 1 Mikael Urankar freebsd_committer freebsd_triage 2022-03-14 12:19:28 UTC
www/redmine4 and www/redmine42 don't support ruby 3:
https://redmine.org/projects/redmine/wiki/RedmineInstall
Comment 2 Yasuhiro Kimura freebsd_committer freebsd_triage 2022-03-19 06:38:15 UTC
Created attachment 232569 [details]
Updated patch file

Mark www/redmine4 and www/redmine42 as BROKEN with Ruby 3.x.
Comment 3 Mikael Urankar freebsd_committer freebsd_triage 2022-03-19 09:52:47 UTC
Thanks, feel free to commit it, I don't have access to a computer rn
Comment 4 Yasuhiro Kimura freebsd_committer freebsd_triage 2022-03-21 00:22:56 UTC
Take.
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-03-21 00:25:36 UTC
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(+)
Comment 6 Mikael Urankar freebsd_committer freebsd_triage 2022-05-24 06:46:12 UTC
(In reply to commit-hook from comment #5)
How do I build this port with ruby27 now?
Comment 7 Yasuhiro Kimura freebsd_committer freebsd_triage 2022-05-24 06:52:17 UTC
(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.
Comment 8 Yasuhiro Kimura freebsd_committer freebsd_triage 2022-05-24 07:00:15 UTC
(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
Comment 9 Mikael Urankar freebsd_committer freebsd_triage 2022-05-24 07:14:29 UTC
(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?
Comment 10 Yasuhiro Kimura freebsd_committer freebsd_triage 2022-05-24 07:27:41 UTC
(In reply to Mikael Urankar from comment #9)

Oops, sorry I misunderstood. It should be achieved by adding 'RUBY_VER=2.7' in Makefile.
Comment 11 Mikael Urankar freebsd_committer freebsd_triage 2022-05-24 08:04:30 UTC
The problem is that the gem ports are built with ruby30...
Comment 12 Yasuhiro Kimura freebsd_committer freebsd_triage 2022-05-24 08:24:05 UTC
(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.
Comment 13 Mikael Urankar freebsd_committer freebsd_triage 2022-06-17 06:17:38 UTC
Reopen, as this commit break an importan(In reply to Yasuhiro Kimura from comment #12)
any ETA for the ruby flavor?
Comment 14 Oleg Ginzburg 2022-07-29 12:52:40 UTC
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