Bug 276466 - */ruby: Switch DEFAULT to 3.2
Summary: */ruby: Switch DEFAULT to 3.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-19 19:28 UTC by Muhammad Moinur Rahman
Modified: 2024-02-28 08:23 UTC (History)
5 users (show)

See Also:
antoine: exp-run+


Attachments
Switch ruby default (436 bytes, patch)
2024-01-19 19:28 UTC, Muhammad Moinur Rahman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Muhammad Moinur Rahman freebsd_committer freebsd_triage 2024-01-19 19:28:17 UTC
Created attachment 247787 [details]
Switch ruby default

I am planning to switch the RUBY DEFAULT to 3.2 sometimes before the next quarterly.
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2024-01-20 16:07:09 UTC
Please check gitlab support it.
Upstream roadmap: https://gitlab.com/groups/gitlab-org/-/epics/9684
Comment 2 Matthias Fechner freebsd_committer freebsd_triage 2024-01-20 17:36:44 UTC
I started a test build for 13.2 and 14.0, will take some time to complete:
https://pkg.fechner.net/index.html

Will have a look tomorrow on the result and if it went through i will check a test installation it it works.

Officially gitlab will support Ruby 3.2 from July onwards.
Comment 4 Matthias Fechner freebsd_committer freebsd_triage 2024-01-21 08:39:58 UTC
I tested it with gitlab-ce 16.7.3 successfully so from the gitlab-ce port, please feel free to continue.
Comment 5 Vladimir Druzenko freebsd_committer freebsd_triage 2024-01-21 10:15:07 UTC
(In reply to Antoine Brodin from comment #3)
> https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-01-21_08h04m49s/logs/errors/redmine50-5.0.7.log

Redmine 5.0.x doesn't support Ruby 3.2, but 5.1.x support it:
5.1 	Ruby 2.7, 3.0, 3.1, 3.2
5.0 	Ruby 2.5, 2.6, 2.7, 3.0, 3.1
https://www.redmine.org/projects/redmine/wiki/RedmineInstall
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-01-21 12:52:00 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5e56d89b4795c4b78a093a90876c104bd8574b03

commit 5e56d89b4795c4b78a093a90876c104bd8574b03
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-21 12:01:29 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 12:51:16 +0000

    misc/sdformat: Marked BROKEN with ruby32

    PR:             276466
    Approved by:    portmgr (blanket)

 misc/sdformat/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 7 commit-hook freebsd_committer freebsd_triage 2024-01-21 12:52:01 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b26da9a1af668ea79110bac4cb533a4fbce39c07

commit b26da9a1af668ea79110bac4cb533a4fbce39c07
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-21 11:53:38 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 12:51:16 +0000

    textproc/rubygem-nokogumbo: Mark BROKEN with ruby32

    - Mark DEPRECATED as upstream code has been merged into
      textproc/rubygem-nokogiri
    - Set EXPIRATION_DATE 2025-03-31 or sync with the date of ruby31 EOL

    PR:             276466

 textproc/rubygem-nokogumbo/Makefile | 4 ++++
 1 file changed, 4 insertions(+)
Comment 8 commit-hook freebsd_committer freebsd_triage 2024-01-21 12:52:02 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b38be4e54875596bc8d932d80eeb235305896305

commit b38be4e54875596bc8d932d80eeb235305896305
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-21 10:25:02 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 12:51:15 +0000

    devel/rubygem-curses: Update version 1.3.2=>1.4.4

    Changelog: https://github.com/ruby/curses/releases/tag/v1.4.4.beta.1

    PR:             276466
    Approved by:    portmgr (blanket)

 devel/rubygem-curses/Makefile | 2 +-
 devel/rubygem-curses/distinfo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 9 commit-hook freebsd_committer freebsd_triage 2024-01-21 12:52:04 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c767d321b56bb37f8879ce5d324434284fb70bcc

commit c767d321b56bb37f8879ce5d324434284fb70bcc
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-21 11:28:10 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 12:51:15 +0000

    net/rubygem-ovirt-engine-sdk: Mark BROKEN on ruby32

    PR:             276466

    Approved by:    portmgr (blanket)

 net/rubygem-ovirt-engine-sdk/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 10 commit-hook freebsd_committer freebsd_triage 2024-01-21 12:52:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f8c91cced49374980e748b42acbb9999d864478b

commit f8c91cced49374980e748b42acbb9999d864478b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-21 12:02:36 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 12:51:17 +0000

    textproc/ruby-rdtool: Marked BROKEN with ruby32

    PR:             276466

    Approved by:    portmgr (blanket)

 textproc/ruby-rdtool/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 11 commit-hook freebsd_committer freebsd_triage 2024-01-21 12:52:07 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f91dc49f546ca8928883e176faa93d9f57449d5e

commit f91dc49f546ca8928883e176faa93d9f57449d5e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-21 12:12:35 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 12:51:17 +0000

    x11-toolkits/rubygem-gtk2: Mark BROKEN with ruby32

    PR:             276466
    Approved by:    portmgr (blanket)

 x11-toolkits/rubygem-gtk2/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 12 commit-hook freebsd_committer freebsd_triage 2024-01-21 12:52:08 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b842bf9a4263bb8d05684363c817d4e7c89f09c

commit 8b842bf9a4263bb8d05684363c817d4e7c89f09c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-21 09:58:56 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 12:51:15 +0000

    archivers/rubygem-bzip2-ruby: Mark BROKEN for ruby32

    - Mark DEPRECATED as last upstream release was in 2010
    - Utilize the newly added rubygem-bzip2-ffi
    - Set EXPIRATION_DATE 2025-03-31 or the EXPIRATION DATE of ruby31

    PR:             276466

 archivers/rubygem-bzip2-ruby/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 13 commit-hook freebsd_committer freebsd_triage 2024-01-21 12:52:10 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2c2da76dd90366799ab5ee9dfa3748e14b2eb344

commit 2c2da76dd90366799ab5ee9dfa3748e14b2eb344
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-21 10:55:44 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 12:51:15 +0000

    devel/rubygem-p4ruby: Update version 2017.1.1599185=>2023.1.2544327

    - Fix build with ruby32
    - Adopt port

    Changelog: https://github.com/perforce/p4ruby/releases/tag/2023.1

    PR:             276466

 devel/rubygem-p4ruby/Makefile                      | 13 +++++---
 devel/rubygem-p4ruby/distinfo                      |  6 ++--
 ...ext__P4__extconf.rb => patch-ext_P4_extconf.rb} | 36 +++++++++++++---------
 .../patch-ext__P4__clientprogressruby.cpp (gone)   | 13 --------
 .../files/patch-ext__P4__clientuserruby.cpp (gone) | 17 ----------
 .../files/patch-ext__P4__p4clientapi.cpp (gone)    | 23 --------------
 6 files changed, 34 insertions(+), 74 deletions(-)
Comment 14 commit-hook freebsd_committer freebsd_triage 2024-01-21 12:52:11 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7ef56d4130c03b7d371831c813cb8fc53e7618eb

commit 7ef56d4130c03b7d371831c813cb8fc53e7618eb
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-21 12:05:45 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 12:51:17 +0000

    www/redmine50: Marked BROKEN with ruby32

    - Upstream supports only ruby31 with this version as mentioned here:
    https://www.redmine.org/projects/redmine/wiki/RedmineInstall [1]
    - Mark DEPRECATED
    - Set EXPIRATION_DATE 2025-03-31 or sync with the EXPIRATION_DATE of
      ruby31
    - BUMPING so that it shows warning before installation or upgrade

    PR:             276466
    Reported by:    vvd [1]
    Approved by:    portmgr (blanket)

 www/redmine50/Makefile | 5 +++++
 1 file changed, 5 insertions(+)
Comment 15 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2024-01-21 12:53:56 UTC
(In reply to Antoine Brodin from comment #3)
Hi Antoine. One more time please.
Comment 16 Antoine Brodin freebsd_committer freebsd_triage 2024-01-22 16:27:52 UTC
Exp-run seems fine
Comment 17 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2024-01-24 10:42:54 UTC
(In reply to Antoine Brodin from comment #16)
Thanks. I will push this 1 week before next quarterly.
Comment 18 Matthias Fechner freebsd_committer freebsd_triage 2024-01-25 11:55:56 UTC
Why not push it now?
That would give us enough time to fix hidden problems before a new quarterly branch is created.
Comment 19 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2024-01-26 12:56:13 UTC
(In reply to Matthias Fechner from comment #18)
I think this is too early. Maybe we can adjust 2/3 weeks before the next quarterly rather than 1 week. Do you think that you might need larger timeframe(>2 weeks) to fix any issues if pertaining?
Comment 20 Matthias Fechner freebsd_committer freebsd_triage 2024-01-26 13:36:11 UTC
(In reply to Muhammad Moinur Rahman from comment #19)
I do not see the problem that we need to do something. Exp-run shows that everything should be ok.

Put I see the problem for the users of e.g. redmine50.
It will not work for them, if we upgrade to new ruby version.

If we upgrade to new ruby version, they can use the quarterly branch to fix problems and if we do the change now they will have a grace period of about 8 weeks before redmine50 get unsable.

If you make the ruby change 1-2 weeks before quarterly updates to 2024Q2, they are under pressure to upgrade redmine to a newer version in this 1-2 week window (I do not know the upgrade process, but maybe they need to create a backup using redmine which would not be possible anymore).

In my opinion waiting here just reduces the reaction period for the users.
And most users will get aware of it if the application breaks, not before.
Comment 21 cebulon 2024-01-26 14:17:50 UTC
textproc/rubygem-rdiscount
only build after upgrade (used latest 2.2.7.3)
Comment 22 Vladimir Druzenko freebsd_committer freebsd_triage 2024-01-26 14:25:40 UTC
Can we just set RUBY_VER=3.1 in www/redmine50/Makefile?
Comment 23 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2024-01-26 14:28:16 UTC
(In reply to Vladimir Druzenko from comment #22)
I don't think that's how it works as so far I remember there is no flavor support for ruby.
Comment 24 commit-hook freebsd_committer freebsd_triage 2024-01-26 14:36:45 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9f689d71957733d94afe480302ada9fcf54990cc

commit 9f689d71957733d94afe480302ada9fcf54990cc
Author:     Matthias Fechner <mfechner@FreeBSD.org>
AuthorDate: 2024-01-26 14:35:17 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2024-01-26 14:35:17 +0000

    textproc/rubygem-rdiscount: update to 2.2.7.3

    Changelog:
    https://github.com/davidfstr/rdiscount/blob/master/CHANGELOG.md#version-2273-december-31-2023

    PR:             276466
    Reported by:    23 at albigro.eu

 textproc/rubygem-rdiscount/Makefile | 2 +-
 textproc/rubygem-rdiscount/distinfo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 25 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2024-02-28 08:23:54 UTC
Committed at 

https://cgit.freebsd.org/ports/commit/?id=d0833d76bb573f8694627e82fe44e56df049d252

Somehow I made a mistake with the PR number.