Re: git: eca58e376812 - main - Mk/bsd.default-versions.mk: Switch default version of Ruby from 2.7 to 3.0,Re: git: eca58e376812 - main - Mk/bsd.default-versions.mk: Switch default version of Ruby from 2.7 to 3.0

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Sat, 23 Apr 2022 01:00:48 UTC
From: Bryan Drewery <bdrewery@FreeBSD.org>
Subject: Re: git: eca58e376812 - main - Mk/bsd.default-versions.mk: Switch
 default version of Ruby from 2.7 to 3.0,Re: git: eca58e376812 - main - Mk/bsd.default-versions.mk: Switch default version of Ruby from 2.7 to 3.0
Date: Fri, 22 Apr 2022 16:09:59 -0700

> On 4/21/2022 7:08 AM, Yasuhiro Kimura wrote:
>> The branch main has been updated by yasu:
>> URL:
>> https://cgit.FreeBSD.org/ports/commit/?id=eca58e3768122a0ef093f62ad91760e4341f5df1
>> commit eca58e3768122a0ef093f62ad91760e4341f5df1
>> Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
>> AuthorDate: 2022-03-05 04:08:26 +0000
>> Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
>> CommitDate: 2022-04-21 14:08:24 +0000
>>      Mk/bsd.default-versions.mk: Switch default version of Ruby from 2.7 to
>>      3.0
>>           How to upgrade is described in the entry of 20220421 in UPDATING.
>>           PR:             262350
>>      Exp-run by:     antoine
>> ---
>>   Mk/bsd.default-versions.mk |  2 +-
>>   UPDATING                   | 24 ++++++++++++++++++++++++
>>   2 files changed, 25 insertions(+), 1 deletion(-)
>> diff --git a/Mk/bsd.default-versions.mk b/Mk/bsd.default-versions.mk
>> index 0c6bff24d655..4365b31ef1c4 100644
>> --- a/Mk/bsd.default-versions.mk
>> +++ b/Mk/bsd.default-versions.mk
>> @@ -116,7 +116,7 @@ PYTHON2_DEFAULT?=	2.7
>>   # Possible values: 3.7, 3.8, 3.9, 3.10, 3.11
>>   PYTHON3_DEFAULT?=	3.8
>>   # Possible values: 2.7, 3.0, 3.1, 3.2
>> -RUBY_DEFAULT?=		2.7
>> +RUBY_DEFAULT?=		3.0
> 
> This breaks port builds because lang/ruby30 did not know it was
> default when it was last built. Nothing makes ruby30 rebuild. So it
> does not provide /usr/local/bin/ruby file.
> 
> The old default ruby, and new default, needs to be PORTREVISION bumped
> to force a rebuild to get the new plist.

Thanks for reporting it. Fixed with 8fd85e6135eb.

Regards.

---
Yasuhiro Kimura