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
This commit is contained in:
Yasuhiro Kimura 2025-04-20 12:41:46 +09:00
parent fbac8b5cf2
commit da2a4bdd21
10 changed files with 35 additions and 12 deletions

View File

@ -145,7 +145,7 @@ PYTHON_DEFAULT?= 3.11
# Possible values: 2.7
PYTHON2_DEFAULT?= 2.7
# Possible values: 3.2, 3.3, 3.4, 3.5
RUBY_DEFAULT?= 3.2
RUBY_DEFAULT?= 3.3
# Possible values: rust, rust-nightly
RUST_DEFAULT?= rust
# Possible values: 4.16, 4.19, 4.20

View File

@ -11,7 +11,8 @@ LICENSE= BSD3CLAUSE
LIB_DEPENDS= libshout.so:audio/libshout
CONFIGURE_ARGS= --with-opt-include="${LOCALBASE}/include"
CONFIGURE_ARGS= --with-cflags="-Wno-error=int-conversion" \
--with-opt-include="${LOCALBASE}/include"
USES= gem
.include <bsd.port.mk>

View File

@ -12,10 +12,14 @@ LICENSE= RUBY
USES= gem
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
.if ${RUBY_VER} >= 3.3
BROKEN= mmap.c:1108:24: error: no member named 'rmatch' in 'struct RMatch'
.endif
.if ${OPSYS} == FreeBSD
CONFIGURE_ARGS+= --with-cflags="-Wno-error=incompatible-function-pointer-types"
.endif
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -20,4 +20,10 @@ NO_ARCH= yes
PORTSCOUT= limit:^7\.
.include <bsd.port.mk>
.include <bsd.port.pre.mk>
.if ${RUBY_VER} >= 3.3
BROKEN= ruby 3.3 and later is not supported
.endif
.include <bsd.port.post.mk>

View File

@ -10,6 +10,8 @@ WWW= https://bitbucket.org/osrf/sdformat/src/default/
LICENSE= APACHE20
BROKEN= tools/xmlschema.rb:268:in `<main>': undefined method `exists?' for File:Class (NoMethodError)
BUILD_DEPENDS= ignition-cmake==2:devel/ignition-cmake \
ignition-tools>0:devel/ignition-tools \
rubygem-rexml>0:textproc/rubygem-rexml
@ -21,7 +23,6 @@ RUN_DEPENDS= ignition-tools>0:devel/ignition-tools
USES= cmake compiler:c++17-lang pkgconfig ruby:build
USE_LDCONFIG= yes
BROKEN_RUBY32= yes
CMAKE_OFF= BUILD_TESTING

View File

@ -89,7 +89,7 @@ bin/puppet
%%ETCDIR%%/vendor_modules/scheduled_task/examples/delete_task_v1.pp
%%ETCDIR%%/vendor_modules/scheduled_task/hiera.yaml
%%ETCDIR%%/vendor_modules/scheduled_task/lib/puppet/provider/scheduled_task/taskscheduler_api2.rb
%%ETCDIR%%/vendor_modules/scheduled_task/lib/puppet/provider/scheduled_task/win%%RUBY_SUFFIX%%_taskscheduler.rb
%%ETCDIR%%/vendor_modules/scheduled_task/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb
%%ETCDIR%%/vendor_modules/scheduled_task/lib/puppet/type/scheduled_task.rb
%%ETCDIR%%/vendor_modules/scheduled_task/lib/puppet_x/puppetlabs/scheduled_task/error.rb
%%ETCDIR%%/vendor_modules/scheduled_task/lib/puppet_x/puppetlabs/scheduled_task/task.rb

View File

@ -78,6 +78,12 @@ REMOVE_TARGETS= .envrc .runner.sh .vimrc .yardopts flake.lock flake.nix Gemfile
REMOVE_TARGETS_EXT= gem_make.out mkmf.log
.include <bsd.port.pre.mk>
.if ${RUBY_VER} >= 3.3
BROKEN= ruby 3.3 and later is not supported
.endif
post-patch:
@${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|g' \
${WRKSRC}/bin/vagrant \
@ -115,4 +121,4 @@ post-install-ZSH-on:
${MKDIR} ${STAGEDIR}${PREFIX}/share/share/zsh/site-functions
${RLN} ${STAGEDIR}${PREFIX}/lib/ruby/gems/${RUBY_VER}/gems/${PORTNAME}-${PORTVERSION}/contrib/zsh/_vagrant ${STAGEDIR}${PREFIX}/share/share/zsh/site-functions
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -20,7 +20,7 @@ RUN_DEPENDS= bash:shells/bash \
typst:textproc/typst \
deno-dom>0:www/deno-dom \
tex-xetex>0:print/tex-xetex \
${LOCALBASE}/lib/ruby/gems/3.2/gems/dartsass-1.49.8/exe/linux/sass:textproc/rubygem-dartsass \
rubygem-dartsass>0:textproc/rubygem-dartsass \
${PYTHON_PKGNAMEPREFIX}jupyter>0:devel/py-jupyter@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pipenv>0:devel/py-pipenv@${PY_FLAVOR} \
${JULIA_RUN_DEPENS} \

View File

@ -9,12 +9,13 @@ MAINTAINER= ruby@FreeBSD.org
COMMENT= RD to HTML/man/etc. converter (RD is to Ruby as POD is to Perl)
WWW= https://github.com/uwabami/rdtool
BROKEN= hook /wrkdirs/usr/ports/textproc/ruby-rdtool/work/rdtool-0.6.38/lib/rd/pre-setup.rb failed: undefined method 'exists?' for module FileTest
BUILD_DEPENDS= racc:devel/rubygem-racc
USES= ruby:setup
USE_GITHUB= yes
GH_ACCOUNT= uwabami
BROKEN_RUBY32= yes
RUBY_MODNAME= rd

View File

@ -78,7 +78,11 @@ THIN_RUN_DEPENDS= rubygem-thin>=1.6.2:www/rubygem-thin
THIN_SUB_LIST= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
THIN_VARS= USE_RC_SUBR=redmine
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
.if ${RUBY_VER} >= 3.3
BROKEN= ruby 3.3 and later is not supported
.endif
post-extract:
@${RM} -r ${WRKSRC}/.hgignore ${WRKSRC}/.gitignore ${WRKSRC}/.github \
@ -121,4 +125,4 @@ post-install:
${RM} ${STAGEDIR}${WWWDIR}/package.json \
${STAGEDIR}${WWWDIR}/yarn.lock
.include <bsd.port.mk>
.include <bsd.port.post.mk>