Re: git: 097770c474d4 - main - Mk/bsd.default-versions.mk: Change default version of Ruby
- Reply: Matthias Fechner : "Re: git: 097770c474d4 - main - Mk/bsd.default-versions.mk: Change default version of Ruby"
- In reply to: Matthias Fechner : "Re: git: 097770c474d4 - main - Mk/bsd.default-versions.mk: Change default version of Ruby"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Mar 2023 06:54:35 UTC
From: Matthias Fechner <mfechner@freebsd.org>
Subject: Re: git: 097770c474d4 - main - Mk/bsd.default-versions.mk: Change default version of Ruby
Date: Thu, 16 Mar 2023 07:48:25 +0200
> Dear Yasuhiro,
>
> Am 15.03.2023 um 09:10 schrieb Yasuhiro Kimura:
>> Mk/bsd.default-versions.mk: Change default version of Ruby
>> * Change default version of Ruby from 3.0 to 3.1.
>> * Bump PORTREVISION of lang/ruby3[01]. They need to be rebuilt as only
>> default ruby package includes ${PREFIX}/bin/ruby and
>> ${PREFIX}/man/man1/ruby.1.gz symlinks.
>> * Add entry about change of default Ruby version to UPDATING.
>> PR: 268586
>> Exp-run by: antoine
>> Approved by: meta (ruby, maintainer)
>
> could you please have a look here:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270252
>
> It seems that the upgrade to ruby 3.1 has broken www/gitlab-ce.
>
> Do you have any idea how to fix this?
>
> Gruß
> Matthias
1. According to the bug report runtime error happens with following
error message.
LoadError: cannot load such file -- net/smtp
2. There is following entry in the "Standard libraries updates"
section of Ruby 3.1.0 Release Notes
(https://www.ruby-lang.org/en/news/2021/12/25/ruby-3-1-0-released/)
-----------------------------------------------------------------
The following default gems are now bundled gems. You need to add
the following libraries to Gemfile under the bundler environment.
* net-ftp 0.1.3
* net-imap 0.2.2
* net-pop 0.1.1
* net-smtp 0.3.1
* matrix 0.4.2
* prime 0.1.2
* debug 1.4.0
-----------------------------------------------------------------
3. Our Ruby ports (lang/rubyXY) don't include bundled gems.
So it seems www/gitlab-ce and/or its dependencies implicitly require
net-smtp without adding it to Gemfile.
---
Yasuhiro Kimura