Bug 244787 - [exp-run] switch default Ruby to 2.7
Summary: [exp-run] switch default Ruby to 2.7
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ruby (Nobody)
Depends on:
Reported: 2020-03-13 09:46 UTC by Koichiro Iwao
Modified: 2020-11-30 02:21 UTC (History)
6 users (show)

See Also:
antoine: exp-run+

patch-ruby27-default (444 bytes, text/plain)
2020-03-13 09:46 UTC, Koichiro Iwao
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Koichiro Iwao freebsd_committer 2020-03-13 09:46:19 UTC
Created attachment 212377 [details]

As usual, switch to Ruby 2.7.
Comment 1 Matthias Fechner freebsd_committer 2020-03-13 18:36:52 UTC
I tested ruby 2.7 with gitlab-ce and it does not work.
I see a lot of errors so we have to wait till gitlab is working with ruby 2.7.

Lets see, maybe the next version works (they release normally on the 22.).
Comment 2 Matthias Fechner freebsd_committer 2020-03-14 04:09:42 UTC
To give you more details, I see error like:
==> /usr/local/www/gitlab-ce/log/production.log <==

ArgumentError (wrong number of arguments (given 3, expected 1..2)):

lib/gitlab/request_profiler/middleware.rb:17:in `call'
lib/gitlab/middleware/go.rb:20:in `call'
lib/gitlab/etag_caching/middleware.rb:13:in `call'
lib/gitlab/middleware/multipart.rb:117:in `call'
lib/gitlab/middleware/read_only/controller.rb:53:in `call'
lib/gitlab/middleware/read_only.rb:18:in `call'
lib/gitlab/middleware/basic_health_check.rb:25:in `call'
lib/gitlab/middleware/request_context.rb:23:in `call'
config/initializers/fix_local_cache_middleware.rb:9:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:49:in `call'
lib/gitlab/middleware/release_env.rb:12:in `call'

So there seems to be an API change which is not fully compatible with gitlab, yet.
Comment 3 Matthias Fechner freebsd_committer 2020-11-23 08:11:26 UTC
the new Gitlab-ce 13.6.0 requires now ruby 2.7.
I tested it successfully and have no constraints to commit this change.

After ruby 2.7 is the new default version, I will commit the update for gitlab-ce 13.6.0.
Comment 4 Matthias Fechner freebsd_committer 2020-11-23 12:31:53 UTC
I upgrade now some ports that failed on my local tests.
Do do not get any builds errors anymore.

I think a exp-run can now by executed.
Comment 6 commit-hook freebsd_committer 2020-11-24 15:54:04 UTC
A commit references this bug:

Author: mfechner
Date: Tue Nov 24 15:53:28 UTC 2020
New revision: 556164
URL: https://svnweb.freebsd.org/changeset/ports/556164

  Mark port as broken with ruby 2.7.
  The page:
  also tells, that this port will not be maintained anymore.

  PR:		244787

Comment 7 commit-hook freebsd_committer 2020-11-24 16:01:06 UTC
A commit references this bug:

Author: mfechner
Date: Tue Nov 24 16:00:12 UTC 2020
New revision: 556168
URL: https://svnweb.freebsd.org/changeset/ports/556168

  Update to 2.2.0 which fixes compiliation errors with ruby 2.7.

  PR:		244787

Comment 8 commit-hook freebsd_committer 2020-11-24 16:05:08 UTC
A commit references this bug:

Author: mfechner
Date: Tue Nov 24 16:05:01 UTC 2020
New revision: 556169
URL: https://svnweb.freebsd.org/changeset/ports/556169

  Marked it as broken for ruby 2.7.
  Seems to be a dead project, last upgrade 2010-02-07 and homepage does not load anymore

  PR:		244787

Comment 9 commit-hook freebsd_committer 2020-11-24 16:13:11 UTC
A commit references this bug:

Author: mfechner
Date: Tue Nov 24 16:12:39 UTC 2020
New revision: 556170
URL: https://svnweb.freebsd.org/changeset/ports/556170

  Mark puppet5 to be broken with ruby 2.7.
  Maybe a newer version puppet 6.x or 7.x must be used to work with ruby 2.7.

  PR:		244787

Comment 10 Matthias Fechner freebsd_committer 2020-11-24 16:14:23 UTC
All 4 ports are fixed for ruby 2.7.
Comment 11 Antoine Brodin freebsd_committer 2020-11-28 08:50:14 UTC
Exp-run looks fine
Comment 12 commit-hook freebsd_committer 2020-11-28 14:54:54 UTC
A commit references this bug:

Author: mfechner
Date: Sat Nov 28 14:54:12 UTC 2020
New revision: 556492
URL: https://svnweb.freebsd.org/changeset/ports/556492

  Switch default version of Ruby from 2.6 to 2.7.

  For detailed list of changes, please check the Ruby website:

  How to upgrade is described in UPDATING entry 20201128.

  PR:		244787
  Submitted by:	meta@
  Exp-Run:	https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244787
  Thanks to:	antoine, meta

Comment 13 Matthias Fechner freebsd_committer 2020-11-28 16:03:02 UTC
Committed, thanks.
Comment 14 Koichiro Iwao freebsd_committer 2020-11-30 02:21:45 UTC
Thanks for your work!