Up to [cvs.NetBSD.org] / pkgsrc / lang / ruby40
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
lang/ruby40: update to 4.0.6 pkgsrc change: stop installing obsolete ChangeLog. 4.0.6 (2026-07-14) What's Changed * Bug #22070: Thread.each_caller_location(1, 1) segfaults when called from a cfunc * Bug #22075: heap-use-after-free in rb_vm_ci_lookup under parallel Ractors * Bug #22076: defined? returns nil for protected methods defined in a module even when callable * Bug #22072: [BUG] should have cvar cache entry * Bug #22074: YJIT misaligns locals when there are > 256 local variables * Bug #22064: GC compaction breaks compare-by-identity sets * Bug #22084: invokesuper from define_method in Ractor can call wrong super method or crash * Bug #22092: Array#sum takes slow path, does not perform compensated summation of Float elements when init argument is a Float * Bug #14635: Float#round(n) returns a wrong result when n is big * Bug #22079: Float#ceil gives incorrect result * Bug #22096: Freeing a mutex locked by a fiber inside fiber scheduler can crash * Bug #21996: Crash when modifying instance variables during inspect or Marshal dump * Bug #22101: ASAN heap-use-after-free in rb_data_free after TypedData dfree frees dynamic rb_data_type_t * Bug #22103: Constant-folded /o regexp crashes with dupstring of a Regexp * Bug #21991: $! stays as the first exception in Ruby Box * Feature #21881: Split the root box into the (newer) root box and the master of copied user boxes * Bug #22120: Segfault caused by ar_find_entry_hint() not checking for conversion to st_table * Bug #22129: error_highlight raises NotImplementedError for ArgumentErrors that get wrapped * Bug #21864: Inconsistencies in type coercion error messages for integers * Bug #21882: IO::Buffer#locked leaves the buffer locked when the block raises * Bug #22127: parse.y regexp crash on invalid encoding * Bug #22126: Stack underflow for partial DCE and loops * Bug #22124: void value missed in parse.y * Bug #22104: Segfault in PRISM while Bootsnap compiles aws-sdk client_api.rb * Bug #21685: Unnecessary context-switching, especially bad on multi-core machines. * Bug #22099: Keyword-only method silently accepts a positional argument * Bug #22183: parse.y interpolation inside lambda literal * Bug #22181: SEGV in branch peephole optimization due to label/insn struct aliasing * Bug #22133: Ruby's default SIGINT handling ignores Thread.handle_interrupt masking. * Bug #22189: Enumerator::Lazy#to_enum does not accept method names as strings * Bug #22191: Signal.trap(:EXIT) exception only shown if at_exit also raises
Pullup ticket #7124 - requested by taca
lang/ruby40: Security fix
Revisions pulled up:
- lang/ruby/rubyversion.mk 1.323-1.324
- lang/ruby40/Makefile 1.3
- lang/ruby40/PLIST 1.3
- lang/ruby40/distinfo 1.6-1.9
- lang/ruby40/patches/patch-.bundle_gems_rdoc-7.0.3_lib_rdoc_generator_template_aliki___header.rhtml deleted
- lang/ruby40/patches/patch-.bundle_gems_rdoc-7.0.3_lib_rdoc_parser_c.rb deleted
- lang/ruby40/patches/patch-.bundle_gems_rdoc-7.0.4_lib_rdoc_encoding.rb 1.1
- lang/ruby40/patches/patch-template_Makefile.in 1.3-1.4
---
Module Name: pkgsrc
Committed By: wiz
Date: Fri May 15 16:56:19 UTC 2026
Modified Files:
pkgsrc/lang/ruby40: Makefile distinfo
Added Files:
pkgsrc/lang/ruby40/patches: patch-template_Makefile.in
Log Message:
ruby40: fix parallel build and dtrace-related build problem
---
Module Name: pkgsrc
Committed By: wiz
Date: Fri May 15 16:58:55 UTC 2026
Modified Files:
pkgsrc/lang/ruby40: distinfo
pkgsrc/lang/ruby40/patches: patch-template_Makefile.in
Log Message:
ruby40: add upstream bug report to patch
---
Module Name: pkgsrc
Committed By: taca
Date: Tue May 19 14:58:52 UTC 2026
Modified Files:
pkgsrc/lang/ruby: rubyversion.mk
pkgsrc/lang/ruby40: PLIST distinfo
Added Files:
pkgsrc/lang/ruby40/patches:
patch-.bundle_gems_rdoc-7.0.3_lib_rdoc_parser_c.rb
Removed Files:
pkgsrc/lang/ruby40/patches:
patch-.bundle_gems_rdoc-7.0.3_lib_rdoc_generator_template_aliki___header.rhtml
Log Message:
lang/ruby40: update to 4.0.4
pkgsrc change:
* Fix rdoc problem on C locale, backported from rdoc-7.0.4.
(So, no need to patch a template file to character entity reference.)
Ruby 4.0.4 (2026-05-11)
* Bug #21955: Fiber#transfer: machine stack not released when fiber
terminates, causing FiberError: can't set a guard page
* Bug #21964: Fiber stack acquire can expand unnecessarily
* Bug #21971: Fix regexp performance regression for patterns starting with
s/k
* 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 #21954: NoMethodError instead of Gem::LoadError on gem activation
problem in Ruby 4.0.2
* Bug #21844: Inconsistent ArgumentError message for Data::define.new
* Bug #21992: Defining BasicObject#initialize causes segmentation fault
* Bug #22018: ISeq created via RubyVM::InstructionSequence.compile don't
support coverage
* Bug #21985: RubyVM::AST negative numbers do not include - in location
* Bug #21986: RubyVM::AST incorrect location for literals followed by
modifier if
* Bug #21933: Ruby::Box: named capture local variable can become nil after
non-matching lines
* Bug #21940: Ruby::Box: $_ returns stale value due to gvar_tbl caching
* Bug #22004: parse.y doesn't executes loop body with while true || true
condition
* Bug #21952: Ruby::Box double free at process exit when fiddle/import is
required in multiple boxes
* Bug #22003: .bundle extensions not built when doing out-of-source build
* Bug #22002: argument stack underflow (-1)
---
Module Name: pkgsrc
Committed By: taca
Date: Wed May 20 13:13:37 UTC 2026
Modified Files:
pkgsrc/lang/ruby: rubyversion.mk
pkgsrc/lang/ruby40: distinfo
Added Files:
pkgsrc/lang/ruby40/patches:
patch-.bundle_gems_rdoc-7.0.4_lib_rdoc_encoding.rb
Removed Files:
pkgsrc/lang/ruby40/patches:
patch-.bundle_gems_rdoc-7.0.3_lib_rdoc_parser_c.rb
Log Message:
lang/ruby40: update to 4.0.5
Ruby 4.0.5 (2026-05-20)
* CVE-2026-46727: Use-after-free in pthread-based getaddrinfo timeout
handler
* Bug #22065: make rdoc fails with invalid byte sequence in US-ASCII on Ruby
4.0.4 under C locale - Ruby - Ruby Issue Tracking System
lang/ruby40: update to 4.0.4 pkgsrc change: * Fix rdoc problem on C locale, backported from rdoc-7.0.4. (So, no need to patch a template file to character entity reference.) Ruby 4.0.4 (2026-05-11) * Bug #21955: Fiber#transfer: machine stack not released when fiber terminates, causing FiberError: can't set a guard page * Bug #21964: Fiber stack acquire can expand unnecessarily * Bug #21971: Fix regexp performance regression for patterns starting with s/k * 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 #21954: NoMethodError instead of Gem::LoadError on gem activation problem in Ruby 4.0.2 * Bug #21844: Inconsistent ArgumentError message for Data::define.new * Bug #21992: Defining BasicObject#initialize causes segmentation fault * Bug #22018: ISeq created via RubyVM::InstructionSequence.compile don't support coverage * Bug #21985: RubyVM::AST negative numbers do not include - in location * Bug #21986: RubyVM::AST incorrect location for literals followed by modifier if * Bug #21933: Ruby::Box: named capture local variable can become nil after non-matching lines * Bug #21940: Ruby::Box: $_ returns stale value due to gvar_tbl caching * Bug #22004: parse.y doesn't executes loop body with while true || true condition * Bug #21952: Ruby::Box double free at process exit when fiddle/import is required in multiple boxes * Bug #22003: .bundle extensions not built when doing out-of-source build * Bug #22002: argument stack underflow (-1)
Pullup ticket #7103 - requested by taca lang/ruby40: security fix Revisions pulled up: - lang/ruby/rubyversion.mk 1.320 - lang/ruby40/Makefile 1.2 - lang/ruby40/PLIST 1.2 - lang/ruby40/distinfo 1.5 --- Module Name: pkgsrc Committed By: taca Date: Tue May 5 14:09:07 UTC 2026 Modified Files: pkgsrc/lang/ruby: rubyversion.mk pkgsrc/lang/ruby40: Makefile PLIST distinfo Log Message: lang/ruby: update to 4.0.3 4.0.3 (2026-04-21) What's Changed * Prohibit def_method on marshal-loaded ERB instances (CVE-2026-41316)
lang/ruby: update to 4.0.3 4.0.3 (2026-04-21) What's Changed * Prohibit def_method on marshal-loaded ERB instances (CVE-2026-41316)
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