head 1.2; access; symbols pkgsrc-2026Q3:1.1.0.6 pkgsrc-2026Q3-base:1.1 pkgsrc-2026Q2:1.1.0.4 pkgsrc-2026Q2-base:1.1 pkgsrc-2026Q1:1.1.0.2 pkgsrc-2026Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2026.11.20.14.43.38; author taca; state Exp; branches; next 1.1; commitid DlttLAzFERfD2d4H; 1.1 date 2026.02.03.16.00.33; author taca; state Exp; branches; next ; commitid ZHiSjLRhbW9FMWsG; desc @@ 1.2 log @lang/ruby40: update to 4.0.10 4.0.10 (2026-11-18) Security fixes This release fixes seven vulnerabilities. See Security advisories: multiple vulnerabilities in Regexp and String case conversion for details. * GHSA-34m4-m9fh-gqp5: Heap buffer overflow in case conversion of strings (#20005) * GHSA-7x2q-68qv-6p8x: Double free in regular expression compilation (#20001) * GHSA-87fm-7w84-j2px: Integer overflow in case conversion of strings (#20006) * GHSA-wpqw-5qxg-m68r: Out-of-bounds read in case-insensitive regular expression matching (#20002) * GHSA-3p8q-wmhx-vm2w: Heap buffer overflow in regular expression compilation (#20000) * GHSA-7whj-cfh7-xgm4: Heap buffer overflow in Regexp#to_s (#20004) * GHSA-pvgc-g7gj-pv6h: Out-of-bounds read in case-insensitive backreference matching (#20003) Rest of changes are too many to write here, please refer in detail. @ text @$NetBSD: patch-configure,v 1.1 2026/02/03 16:00:33 taca Exp $ * Ignore VCS. * Retain _XOPEN_SOURCE, fixes eventmachine. * Explictly stop display with color. * Remove bogus MJIT disabling on SunOS. --- configure.orig 2026-11-18 22:24:54.000000000 +0000 +++ configure @@@@ -8903,7 +8903,7 @@@@ else case e in #( then : case "$target_os" in #( - darwin*) : + nodarwin*) : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for real target cpu" >&5 printf %s "checking for real target cpu... " >&6; } @@@@ -11111,6 +11111,7 @@@@ fi stack_protector=no ;; #( *) : + stack_protector=no ;; esac if test -z "${stack_protector+set}" @@@@ -13150,18 +13151,6 @@@@ then : CPPFLAGS="$CPPFLAGS ${rb_opt}" ;; esac done - # _XOPEN_SOURCE should not be defined for C++ on Solaris. - # RUBY_APPEND_OPTIONS(CXXFLAGS) - for rb_opt in -U_XOPEN_SOURCE; do - case " ${CXXFLAGS-} " in #( - *" ${rb_opt} "*) : - ;; #( - ' ') : - CXXFLAGS="${rb_opt}" ;; #( - *) : - CXXFLAGS="$CXXFLAGS ${rb_opt}" ;; -esac - done fi @@@@ -26264,7 +26253,9 @@@@ then : #include #include #ifndef alloca -# ifdef __GNUC__ +# if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) +# include +# elif defined __GNUC__ # define alloca __builtin_alloca # elif defined _MSC_VER # include @@@@ -33158,8 +33149,10 @@@@ fi ;; #( freebsd*|dragonfly*) : + RUBY_SO_NAME="${RUBY_SO_NAME}"'.$(RUBY_PROGRAM_VERSION)' LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)' - LIBRUBY_SONAME='$(LIBRUBY_SO)' + LIBRUBY_SONAME='lib$(RUBY_BASE_NAME).$(RUBY_API_VERSION).$(SOEXT)' + LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_INSTALL_NAME).$(SOEXT)' if test "$rb_cv_binary_elf" != "yes" then : @@@@ -33254,9 +33247,10 @@@@ esac ;; #( darwin*) : + RUBY_SO_NAME="${RUBY_SO_NAME}"'.$(RUBY_PROGRAM_VERSION)' LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT)' - LIBRUBY_SONAME='$(LIBRUBY_SO)' - LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).$(SOEXT)' + LIBRUBY_SONAME='lib$(RUBY_BASE_NAME).$(RUBY_API_VERSION).$(SOEXT)' + LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_INSTALL_NAME).$(SOEXT)' if test "$load_relative" = yes then : @@@@ -33478,7 +33472,7 @@@@ then : esac rpathflag=`IFS="$PATH_SEPARATOR" echo x "$rpathflag" | - sed "s/^x *//;s${IFS}"'%1\\$-s'"${IFS}${libprefix}${IFS}g;s${IFS}%s${IFS}${libprefix}${IFS}g" + sed "s/^x *//;s${IFS}"'%1\\$-s'"${IFS}${libprefix}${IFS}g;s${IFS}%s${IFS}${PREFIX}/lib${IFS}g" ` LIBRUBY_RPATHFLAGS="${LIBRUBY_RPATHFLAGS:+$LIBRUBY_RPATHFLAGS }${rpathflag}" LIBRUBYARG_SHARED="${LIBRUBY_RPATHFLAGS:+$LIBRUBY_RPATHFLAGS }$LIBRUBYARG_SHARED" @@@@ -35770,7 +35764,7 @@@@ guard=INCLUDE_RUBY_CONFIG_H ( if test "x$CONFIGURE_TTY" = xyes then : - color=--color + color=--color=never else case e in #( e) color= ;; esac @@@@ -37033,22 +37027,7 @@@@ which seems to be undefined. Please mak "Makefile":F) tmpmk=confmk$$.tmp { - if test ${VCS+set} -then : - - : - -elif git_dir=`$GIT --work-tree="$srcdir" --git-dir="$srcdir/.git" rev-parse --git-dir 2>/dev/null` -then : - - VCS='$(GIT)' - -else case e in #( - e) VCS='echo cannot' - ;; -esac -fi case "$VCS" in #( '$(GIT)'|git) : VCSUP='$(VCS) pull --rebase $(GITPULLOPTIONS)' ;; #( @ 1.1 log @lang/ruby40: add version 4.0.1 Add Ruby 4.0.1 as lang/ruby40. Ruby is an interpreted object-oriented programming language often used for web development. It also offers many scripting features to process plain text and serialized files, or manage system tasks. It is simple, straightforward, and extensible. Ruby 4.0 introduces a number of new features and performance improvements, here are some of them: * Ruby Box a new (experimental) feature to provide separation about definitions * Performance: ZJIT a new just-in-time (JIT) compiler, which is developed as the next generation of YJIT It is not enabled on pkgsrc for now. * Ractor Improvements * Stdlib updates * Retirement of RJIT: Experital pure-Ruby JIT compiler @ text @d1 1 a1 1 $NetBSD$ d8 1 a8 1 --- configure.orig 2024-12-12 01:10:15.000000000 +0000 d10 1 a10 1 @@@@ -8722,7 +8722,7 @@@@ else $as_nop d19 1 a19 1 @@@@ -10843,6 +10843,7 @@@@ fi d27 1 a27 1 @@@@ -12802,18 +12803,6 @@@@ then : d46 1 a46 1 @@@@ -25598,7 +25591,9 @@@@ else d57 1 a57 1 @@@@ -32235,8 +32232,10 @@@@ fi d69 1 a69 1 @@@@ -32329,9 +32328,10 @@@@ esac d82 1 a82 1 @@@@ -32545,7 +32550,7 @@@@ then : d91 1 a91 1 @@@@ -34717,7 +34722,7 @@@@ guard=INCLUDE_RUBY_CONFIG_H d97 4 a100 4 else $as_nop color= fi @@@@ -35956,21 +35961,7 @@@@ which seems to be undefined. Please mak d114 2 a115 2 -else $as_nop - d117 2 a118 1 - @