head 1.4; access; symbols pkgsrc-2026Q3:1.3.0.10 pkgsrc-2026Q3-base:1.3 pkgsrc-2026Q2:1.3.0.8 pkgsrc-2026Q2-base:1.3 pkgsrc-2026Q1:1.3.0.6 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.4 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.2 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.2.0.2 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.1.0.2 pkgsrc-2025Q1-base:1.1; locks; strict; comment @# @; 1.4 date 2026.11.20.14.39.48; author taca; state Exp; branches; next 1.3; commitid ZpUHyDtK1Vvj1d4H; 1.3 date 2025.07.26.06.17.00; author taca; state Exp; branches; next 1.2; commitid NIgNHKXw6k2RId4G; 1.2 date 2025.04.21.20.54.56; author wiz; state Exp; branches; next 1.1; commitid pdHbBWSRQH1UFXRF; 1.1 date 2025.01.02.06.51.05; author taca; state Exp; branches; next ; commitid u2YGMOkNF7oxvSDF; desc @@ 1.4 log @lang/ruby33: update to 3.3.14 3.3.14 (2026-11-18) This release fixes seven vulnerabilities have been discovered in Ruby's regular expression engine and in the case conversion of strings. Please refer in detail. What's Changed * Bug #22477: rb_ec_clear_vm_stack() can still clear the VM stack before ec->cfp = NULL on aarch64 * Bug #22479: File.realdirpath returns a wrong path when GC runs while it resolves a relative symlink * Bug #22476: rb_profile_frames() called from a signal handler segfaults while vm_make_env_each() is escaping a chain of frames * Bug #22416: Respect timezone abbreviation encodings in Time#strftime * Bug #22436: Array#zip with a method_missing-based argument leaks a stale block handler (segfault when the next C-called method yields) * Bug #22449: Out-of-bounds in Array#sample when array modified * Bug #22450: Jump value attaches block in incorrect place under parse.y * Bug #22456: IO#close hangs forever when another thread is writing to the IO from a trap handler (please backport ba68343d3a to 3.4) * JIT: Reject --{y,z}jit-exec-mem-size values that overflow the u32 reservation size by st0012 · Pull Request #19720 * Bug #22451: Coderange may be set incorrectly when concatenating a string into itself * Bug #20655: Calling continuation triggers ensure function of rb_ensure * Bug #22458: Time#strftime out-of-bound access * Bug #22461: Use-after-free in String formatting with wide character encodings * Bug #22471: Thread#name= on a terminated thread may dump core * Bug #22467: IO#readpartial can raise EFAULT during GC.compact in another thread * Bug #22480: Ruby's release tarballs are not POSIX compliant since 2018 * Bug #22491: The number of captures may change depending on the encoding of the target string * Bug #22389: Hang on GC.compact * Feature #22238: String#tr to take a Hash for multi-character replacements * Bug #22382: IO#write of a shareable String from multiple Ractors causes use-after-free * Bug #22535: Release mode segfault due to half-initialized error in singleton_method * Bug #22504: Empty keyword hash mishandled when calling a Method proc through the C API * Bug #22512: Overflow in st_init_existing_table_with_size / Hash.new(capacity:) * Bug #22495: UTF-32 strings with a byte 0x80 or more in the most significant position are reported as valid * Bug #22518: String#unpack("m") computes the buffer size with an overflowing multiplication * Bug #22517: Some String methods return a UTF-16/32 string without room for its terminator * Bug #21142: Lazy enumerator .each_with_index ignores .take(0) before it * Bug #22496: Lazy enumerator .each_with_index no longer executes block * Bug #22540: Process.spawn leaves the env, umask, and redirections applied in the parent on Windows when chdir: fails * Bug #22492: String#rindex misses a match with a leading .* in multiline mode * Bug #22494: Regexp search misses a match when an assertion precedes a leading .* * Bug #22537: IO#gets(nil, limit) stops right after a 0xFF byte * Fix memoization for the /(...){0}/ case by makenowjust · Pull Request #13169 * Bug #21304: heap-use-after-free of Array#hash via mutating hash method * Ensure safe handling of hexdump width. by ioquatix · Pull Request #16593 * Bug #21974: Cannot inspect RubyVM::AST for CDECL * Bug #22333: Assertion Failed: ary_resize_capa:RARRAY_LEN(ary) <= capacity * Bug #22410: IO#external_encoding / IO#internal_encoding segfault on an uninitialized IO * Bug #22409: ASan UAF and Assertion Failed: gc_validate_pc:CFP_PC(cfp) >= iseq_encoded: PC not set when allocating, breaking tracing * Bug #22543: Segmentation fault when compiling CONST ||= value, CONST &&= value or CONST += value under # shareable_constant_value: literal (Prism compiler) * Skip whitespace in rb_memory_view_parse_item_format fill pass by fuzzyrichie · Pull Request #19807 * Bug #22557: parse.y segmentation fault parsing malformed nested case * Check the result of compile_length_tree() at every call site by mame · Pull Request #19505 * Bug #22597: Regexp named capture names with invalid source encoding * Bug #22599: parse.y rejects valid retry after a class / class << self definition inside rescue (Invalid retry after ensure) * Bug #22433: IO#sysread and IO#pread are inconsistent for length 0 and negative numbers @ text @$NetBSD: patch-configure,v 1.3 2025/07/26 06:17:00 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:10:00.000000000 +0000 +++ configure @@@@ -8882,7 +8882,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; } @@@@ -11062,6 +11062,7 @@@@ fi stack_protector=no ;; #( *) : + stack_protector=no ;; esac if test -z "${stack_protector+set}" @@@@ -13101,18 +13102,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 @@@@ -26143,7 +26132,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 @@@@ -33034,8 +33025,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 : @@@@ -33130,9 +33123,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 : @@@@ -33354,7 +33348,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" @@@@ -35599,7 +35593,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 @@@@ -36848,22 +36842,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.3 log @lang/ruby34: update to 3.4.5 pkgsrc change: * Enable sigaltstack(2) on NetBSD refering to PR pkg/59017. Ruby 3.4.5 (2025-07-15) * Bug #21340: Bump autoconf version to properly handle C23 bool/stdbool defines * Sync lockfile from rubygems/rubygems by deivid-rodriguez · Pull Request #13472 * Bug #21438: use-after-free when resizing exivars * Ensure that memory is not freed before calling free_fast_fallback_getaddrinfo_* by shioimm · Pull Request #12661 * Fix heap-use-after-free in free_fast_fallback_getaddrinfo_entry by shioimm Pull Request #13231 * Bug #21441: SEGV during thread cleanup if profiler calls thread_profiles_frames at wrong time * Bug #21255: Can't build Ruby with Windows SDK 10.0.26100 * Backport GH-13617 for s390x by hsbt · Pull Request #13757 * Bump up resolv-0.6.2 for Ruby 3.4 by hsbt · Pull Request #13818 * Bug #21197: Prism does not accept newline after defined? keyword * Bug #21333: heap-use-after-free caused by rehash during update * Bug #21357: Crash in Hash#merge! with ruby-dev in rubocop-rspec test suite * Bug #21383: Prism leaks memory with invalid yield * Bug #21394: Memory leak in Prism's RubyVM::InstructionSequence.new * Bug #21099: TestGc#test_gc_stress_at_startup assertion failure * Bug #21395: Please backport caa6ba1a46afa1bc696adc5fe91ee992f9570c89 * Bug #21439: Crash with PM_SPLAT_NODE compiler error (Prism) * Bug #21354: Symbol#to_proc is not ractor safe * Bug #20009: Marshal.load raises exception when load dumped class include non-ASCII * Bug #21380: Use-After-Free in String#split with In-Block String Modification * Bug #21447: Fix handling of PM_CONSTANT_PATH_NODE node in keyword arguments with ARGS_SPLAT * Bug #21448: Random.urandom may fail to fall back to reading /dev/urandom on Linux < 3.17 * Bug #21440: Cannot create instances of frozen Data subclasses * Bug #21437: Date#hash may return different values for equal dates with large years * Bug #21497: building issue when using gcc15, because C23 is default * Bug #21500: Backport gcc 15 support @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.2 2025/04/21 20:54:56 wiz Exp $ 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 - @ 1.2 log @ruby*: remove Interix support @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.1 2025/01/02 06:51:05 taca Exp $ a2 2 * Avoid bash specific variable substitution. * Ignore doxygen. a3 1 * Handle SSP in pkgsrc. a4 1 * Fix argument for pthread_self() on NetBSD. @ 1.1 log @lang/ruby34: add package version 3.4.1. Add latest release of Ruby Programming Language version 3.4.1. 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. Features of Ruby are shown below. + Simple Syntax + *Normal* Object-Oriented features (ex. class, method calls) + *Advanced* Object-Oriented features (ex. Mix-in, Singleton-method) + Operator Overloading + Exception Handling + Iterators and Closures + Garbage Collection + Dynamic Loading of Object files (on some architecture) + Highly Portable (works on many UNIX machines, and on Windows, Mac, etc.) Ruby 3.4 introduces a number of new features and performance improvements, here are some of them: * Prsim parser (as a default gem). * Performance: YJIT: Verious improvements including performance. * Performance: RJIT: Experital pure-Ruby JIT compiler replace MJIT. * M:N thread scheduler. * Retirement of ext/readline. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.1 2024/01/21 08:22:03 taca Exp $ a3 1 * Adding Interix support. a49 11 @@@@ -13044,6 +13033,10 @@@@ esac ac_cv_func___builtin_setjmp=no ;; #( + interix*) : + LIBS="-lm $LIBS" + ac_cv_func_getpgrp_void=yes + ;; #( *) : ;; esac a60 9 @@@@ -31026,6 +31021,8 @@@@ fi interix*) : : ${LDSHARED='$(CC) -shared'} XLDFLAGS="$XLDFLAGS -Wl,-E" + DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(.TARGET) -Wl,--image-base,$$(($$RANDOM %4096/2*262144+1342177280))' + RPATHFLAG=' -Wl,-R%1$-s' rb_cv_dlopen=yes ;; #( freebsd*|dragonfly*) : a85 14 @@@@ -32354,7 +32354,12 @@@@ fi ;; #( interix*) : - LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)' + SOLIBS='$(LIBS)' + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)' + # link explicitly to 0x48000000 + LIBRUBY_DLDFLAGS='-Wl,-h,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) -Wl,--image-base,1207959552' + LIBRUBYARG_SHARED='-Wl,-R -Wl,${PREFIX}/lib} -L${libdir} -L. -l$(RUBY_SO_NAME)' + LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_SO_NAME).so' ;; #( cygwin*|msys*|mingw*|mswin*) : @