Up to [cvs.NetBSD.org] / pkgsrc / lang / ruby34
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
lang/ruby34: update to 3.4.10 pkgsrc change: * Don't install ChangeLog files since recent version of them dose not provided any more. Ruby 3.4.10 (2026-06-30) * Bug #21992: Defining BasicObject#initialize causes segmentation fault * Bug #22004: parse.y doesn't executes loop body with while true || true condition * Bug #22018: ISeq created via RubyVM::InstructionSequence.compile don't support coverage * Bug #21941: Local variable becomes nil when YJIT enabled mid-method with fork/signal/ensure * Bug #21947: Timeout.timeout doesn't use Timeout::ExitException when Fiber scheduler is in use. * Bug #21847: Backport syntax_suggest 2.0.3 to supported branches * Bug #21880: The ultra_safe mode of pstore bundled with Ruby 4.0 is broken. * Bug #22070: Thread.each_caller_location(1, 1) segfaults when called from a cfunc * Bug #21955: Fiber#transfer: machine stack not released when fiber terminates, causing FiberError: can't set a guard page * Bug #21961: Marshal.load freeze option fail to freeze linked strings * Bug #21959: rb_internal_thread_event_hooks_rw_lock is not reinitialized after fork causing deadlocks * Bug #21985: RubyVM::AST negative numbers do not include - in location * Bug #22017: Backport win32-resolv * Bug #21927: Prism: misleading error message for forwarding in lambda argument * Bug #21925: Prism misparses standalone "in" pattern matching in "case/in" * Bug #21831: Prism doesn't count underscores in the fraction part of rational float * Bug #21986: RubyVM::AST incorrect location for literals followed by modifier if * Bug #22003: .bundle extensions not built when doing out-of-source build * Bug #22002: argument stack underflow (-1) * Bug #22076: defined? returns nil for protected methods defined in a module even when callable * Bug #22074: YJIT misaligns locals when there are > 256 local variables * Bug #22079: Float#ceil gives incorrect result * Bug #21882: IO::Buffer#locked leaves the buffer locked when the block raises * Bug #22112: Backport for IO::Buffer USF issues * Bug #22092: Array#sum takes slow path, does not perform compensated summation of Float elements when init argument is a Float * Bug #22101: ASAN heap-use-after-free in rb_data_free after TypedData dfree frees dynamic rb_data_type_t * Bug #22120: Segfault caused by ar_find_entry_hint() not checking for conversion to st_table
lang/ruby34: update to 3.4.6
Ruby 3.4.6 (2025-09-15)
What's Changed
* Bug #21514: Rust deprecation warning building
ruby-3.4.5/yjit/src/codegen.rs
* Bug #21259: The Prism compiler wrongly creates a line number of zero
* Bug #21188: PRISM does not end reading from tty with ^D twice
* Bug #21546: prefix in ruby.pc is wrong when --enable-load-relative
* Bug #21402: ruby2_keywords affects methods/procs with post arguments
* Bug #19417: Regexp \p{Word} and [[:word:]] do not match Unicode
Other_Number character
* Bug #21535: NoMethodError becomes NameErrorwhen using ... delegation and
method call indirection
* YJIT: Add more information to an assert message by k0kubun · Pull Request
#14481
* Bug #21567: Crash when $LOADED_FEATURES is modified during require
* Bug #21561: Wrong encoding for File.dirname result on Windows
* Bump Prism version to 1.5.1 by k0kubun · Pull Request #14549
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
lang/ruby34: update to 3.4.4 Ruby 3.4.4 (2025-05-14) * YJIT: Split the block on optimized getlocal/setlocal by k0kubun · Pull Request #13331 * Bug #21257: YJIT can generate infinite loop when OOM * Bug #21286: Windows - MSYS2 just updated to GCC 15.1.0, builds failing * Bug #21327: Windows builds seem broken after clock_gettime changes? * Bug #21331: heap-use-after-free caused by rehash during transform_values! * Bug #21289: Fix C level backtraces for USE_ELF Default gem net-imap is updated to 0.5.8 including fix for CVE-2025-43857.
lang/ruby34: update to 3.4.3 Ruby 3.4.3 (2025-04-14) * Bug #21145: Prism accepts newlines in-between curly unicode escape * Bug #21153: ::Foo ||= p 1 should parse * Bug #21030: Bug: #step with Range<ActiveSupport::Duration> behavior broken on Ruby 3.4.1 * Bug #21131: IO.copy_stream: yielded string changes value when duped * Feature #19521: Support for Module#name= and Class#name=. * Bug #21159: Module#set_temporary_name should freeze given name * Bug #21161: Crash when locale is set to Turkish tr_TR.UTF-8 * Bug #21144: Win32: Use Windows time zone ID as the time zone name if TZ is not set * Bug #21170: Corrupted Hash (bad VALUE and missing entry) when -1 returned from .hash * Bug #21172: Race condition in register_fstring * Bug #21163: Inconsistencies in Kernel.Float compared to other number parsing methods * Bug #21173: RUBY_FREE_AT_EXIT does not work when error in -r * Bug #21179: Introduction Happy Eyeballs Version 2 broke Socket.tcp from secondary Ractors * Bug #19841: Marshal.dump stack overflow with recursive Time * Bug #21180: SEGV while marking imemo_env->iseq * Bug #21186: Inconsistent parsing of ?あand 0 * Bug #21094: Module#set_temporary_name does not affect a name of a nested module * Bug #21195: Crash when using IO#timeout * Bug #21196: Ruby 3.4 ignores visibility when passing arguments using ... * Bug #21141: Time#utc? does not work with a timezone object * Bug #21211: Incomplete Backtrace for Socket Errors in Ruby 3.4+ * Bug #21197: Prism does not accept newline after defined? keyword * Bug #21183: Ractor error with Prism::VERSION * Bug #21217: Integer.sqrt produces wrong results even on input <= 1e18 * Bug #21220: Memory corruption in update_line_coverage() [write at index -1]
lang/ruby34: update to 3.4.2
pkgsrc change: stop building YJIT_LIBS each time.
* Bug #21024: Ruby including generates compilation warning with GCC 15,
header is deprecated in C++17,
* Bug #21021: "try to mark T_NONE object" with 3.4.1
* Bug #20997: YJIT panic assertion left == right failed: leave instruction
expects stack size 1, but was: 2
* Bug #20981: rb_undefine_finalizer is missing
* Bug #20989: Segmentation fault in Ripper when lexing /#{"\xcd"}/
* Bug #21003: unexpected warning about ignored block
* Bug #21002: Please include license information of turbo_tests
* Bug #21001: unexpected nil result from proc with ensure and next
* Bug #21010: Endless method definition of []= is SyntaxError in parse.y but
allowed in Prism
* Bug #20992: eval(ascii_encoded_code) raises EncodingError when multibyte
local variable exists
* Bug #21017: --with-parser=parse.y configure option does not work
* Bug #21014: Prism doesn't set node_id on iseqs correctly
* Bug #21027: not() receiver should be nil
* Bug #20995: exception escapes block given to IO.popen("-") in child
process
* Bug #21008: Array#sum, Enumerator#sum, Numeric subclass
* Bug #21044: Prism maximum recursion depth is 1_000, parse.y is 10_000
* Bug #21031: Incompatibility with prism and parse.y when eval'ing unnamed
forwarding variables
* Bug #21085: [BUG] Stack consistency error with -ne
* Bug #21048: [Prism] rescue in modifier form with condition behaves
differently
* Bug #21046: Backport: TLS fix for ARM64
* Bug #21012: Compiling a['a','b'],=1 with parse.y fails
* Bug #21038: Preserve errno in rb_fiber_scheduler_unblock
* Bug #21032: Module#autoload? is slow when $LOAD_PATH contains a relative
path
* Bug #21092: error building ruby 3.4.1 on cygwin/msys2
* Bug #21095: Prefer uname -n over hostname in tests.
* Bug #21103: Binding problem with delegate methods
* Bug #21088: TCPSocket.new raises Socket::ResolutionError instead of
Errno::ECONNREFUSED for hosts defined in /etc/hosts
* Bug #21112: Typo in error message when an incorrect key is used with
WeakKeyMap
* Bug #21117: Inconsistent behaviour between "_1" and "it" variables
* Bug #21114: Prism hangs up while parsing deeply nested def
* Bug #20984: ENV.inspect is not encoding aware
* Bug #20982: Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4
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.