Bug 286217 - [exp-run] Mk/bsd.default-versions.mk: Change default version of Ruby to 3.3
Summary: [exp-run] Mk/bsd.default-versions.mk: Change default version of Ruby to 3.3
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: Yasuhiro Kimura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-20 03:50 UTC by Yasuhiro Kimura
Modified: 2025-05-09 10:13 UTC (History)
4 users (show)

See Also:
yasu: exp-run+


Attachments
Patch file (932 bytes, patch)
2025-04-20 03:50 UTC, Yasuhiro Kimura
no flags Details | Diff
Updated patch file (937 bytes, patch)
2025-04-21 03:15 UTC, Yasuhiro Kimura
no flags Details | Diff
Updated patch file (6.95 KB, patch)
2025-04-29 09:38 UTC, Yasuhiro Kimura
no flags Details | Diff
Updated patch file (7.71 KB, patch)
2025-05-09 09:06 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 2025-04-20 03:50:20 UTC
Created attachment 259720 [details]
Patch file

With the release of 3.2.8 Ruby 3.2 series switched to security fix only phase and will be reach its EoL on March 2026. So change defult version of Ruby to 3.3.
Comment 1 Yasuhiro Kimura freebsd_committer freebsd_triage 2025-04-21 03:15:17 UTC
Created attachment 259758 [details]
Updated patch file

Chase update of ports tree.
Comment 2 Matthias Fechner freebsd_committer freebsd_triage 2025-04-21 05:30:53 UTC
I tested the new ruby version successfully after 1222 packages were updated on my test machine with gitlab.

From my side, please continue.
Thanks a lot!
Comment 4 Yasuhiro Kimura freebsd_committer freebsd_triage 2025-04-29 09:38:15 UTC
Created attachment 259991 [details]
Updated patch file

All build failures listed in comment #3 are either fixed or marked BROKEN as following.

* Fix build of audio/rubygem-ruby-shout by adding '--with-cflags="-Wno-error=int-conversion"' to CONFIGURE_ARGS.
* Build of devel/rubygem-mmap2 fails with Ruby 3.3 and later because of internal API change of Ruby. So mark BROKEN with them.
* devel/rubygem-xdg7 and sysutils/vagrant don't support Ruby 3.3 and later. So mark BROKEN with them.
* misc/sdformat and textproc/ruby-rdtool are already marked BROKEN
  with Ruby 3.2 and build with all other Ruby versions also fails with same error. So mark just BROKEN.
* Fix plist error of sysutils/puppet8.
* Fix RUN_DEPENDS of textproc/quarto.

So would you please try another exp-run with updated patch?

Regards.
Comment 5 Antoine Brodin freebsd_committer freebsd_triage 2025-05-06 15:14:41 UTC
www/redmine51 fails
Comment 6 Yasuhiro Kimura freebsd_committer freebsd_triage 2025-05-09 09:06:30 UTC
Created attachment 260281 [details]
Updated patch file

(In reply to Antoine Brodin from comment #5)

* Redmine 5.1.x doesn't support Ruby 3.3 and later. So mark www/redmine51 as BROKEN with them.

Would you please try another exp-run with updated patch?

Regards.
Comment 7 Antoine Brodin freebsd_committer freebsd_triage 2025-05-09 09:13:18 UTC
(In reply to Yasuhiro Kimura from comment #6)
If you tested it there is no need for another exp-run
Comment 8 Yasuhiro Kimura freebsd_committer freebsd_triage 2025-05-09 09:40:32 UTC
(In reply to Antoine Brodin from comment #7)

Thanks. Then I regard latest patch passes exp-run.
Comment 9 commit-hook freebsd_committer freebsd_triage 2025-05-09 10:11:55 UTC
A commit in branch main references this bug:

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

commit da2a4bdd21258e02256c60947246aab8352c5eb2
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2025-04-20 03:41:46 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2025-05-09 10:06:38 +0000

    Mk/bsd.default-versions.mk: Change default version of Ruby to 3.3

    With the release of 3.2.8 Ruby 3.2 series switched to security fix
    only phase and will be reach its EoL on March 2026. So change defult
    version of Ruby to 3.3.

    Following changes are made to pass exp-run.

    * Fix build of audio/rubygem-ruby-shout by adding
      '--with-cflags="-Wno-error=int-conversion"' to CONFIGURE_ARGS.
    * Build of devel/rubygem-mmap2 fails with Ruby 3.3 and later because
      of internal API change of Ruby. So mark BROKEN with them.
    * devel/rubygem-xdg7, sysutils/vagrant and www/redmine51 don't support
      Ruby 3.3 and later. So mark BROKEN with them.
    * misc/sdformat and textproc/ruby-rdtool are already marked BROKEN
      with Ruby 3.2 and build with all other Ruby versions also fails with
      same error. So mark just BROKEN.
    * Fix plist error of sysutils/puppet8.
    * Fix RUN_DEPENDS of textproc/quarto.

    PR:             286217
    Approved by:    self (with hat of ruby)
    Exp-run by:     antoine

 Mk/bsd.default-versions.mk        | 2 +-
 audio/rubygem-ruby-shout/Makefile | 3 ++-
 devel/rubygem-mmap2/Makefile      | 8 ++++++--
 devel/rubygem-xdg7/Makefile       | 8 +++++++-
 misc/sdformat/Makefile            | 3 ++-
 sysutils/puppet8/pkg-plist        | 2 +-
 sysutils/vagrant/Makefile         | 8 +++++++-
 textproc/quarto/Makefile          | 2 +-
 textproc/ruby-rdtool/Makefile     | 3 ++-
 www/redmine51/Makefile            | 8 ++++++--
 10 files changed, 35 insertions(+), 12 deletions(-)