Up to [cvs.NetBSD.org] / pkgsrc / lang / ruby34
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Pullup ticket #7276 - requested by taca
lang/ruby34: Security fix
Revisions pulled up:
- lang/ruby/rubyversion.mk 1.332
- lang/ruby34/Makefile 1.13
- lang/ruby34/distinfo 1.19-1.20
- lang/ruby34/patches/patch-lib_resolv.rb deleted
- lang/ruby34/patches/patch-template_Makefile.in 1.2
---
Module Name: pkgsrc
Committed By: taca
Date: Tue Sep 22 09:29:37 UTC 2026
Modified Files:
pkgsrc/lang/ruby34: distinfo
pkgsrc/lang/ruby34/patches: patch-template_Makefile.in
Log Message:
lang/ruby34: Fix ruby-rjit option
Fix build problem with ruby-rjit PKG_OPTIONS provided by PR pkg/60763.
No PKGREVISION bump since it is simply build problem.
---
Module Name: pkgsrc
Committed By: taca
Date: Thu Sep 24 15:28:57 UTC 2026
Modified Files:
pkgsrc/lang/ruby: rubyversion.mk
pkgsrc/lang/ruby34: Makefile distinfo
Removed Files:
pkgsrc/lang/ruby34/patches: patch-lib_resolv.rb
Log Message:
lang/ruby34: update to 3.4.11
3.4.11 (2026-09-23)
* Bug #22196: Heap-use-after-free in fiber_switch with transfer-termina=
ted
async tasks on 3.4.10
* Guard fiber target across fiber_store. by samuel-williams-shopify =B7=
Pull
Request #17951
* Bug #21842: Encoding of rb_interned_str
* Bug #22126: Stack underflow for partial DCE and loops
* Bug #22124: void value missed in parse.y
* Bug #22183: parse.y interpolation inside lambda literal
* Bug #22099: Keyword-only method silently accepts a positional argumen=
t
* Bug #22133: Ruby's default SIGINT handling ignores Thread.handle_inte=
rrupt
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 r=
aises
* Bug #22198: win32: heap overflow in Kernel#system
* Bug #20958: fix ENV.keys encoding on windows
* Bug #11438: native_thread_init_stack() get machine.stack_start unequa=
l to
thread's stack start address, x86 win32
* Bug #22218: Line TracePoint misses executed loop condition after a gu=
ard
* Bug #22223: Socket.tcp with connect_timeout returns a phantom "connec=
ted"
socket for a refused connection on macOS 27 (kernel answers EISCONN o=
n
connect retry; SO_ERROR never consulted)
* Bug #22290: Adding instance variables to anonymous object may bloat a=
ll
future classes
* Bug #22269: Coverage.line_stub clobbers already-collected coverage da=
ta
* Bug #22257: Prepending a module to an already-included module leaves =
stale
super caches
* Handle spurious wakeups in Thread#join. by samuel-williams-shopify =B7=
Pull
Request #13532
* Bug #22311: Build crashes on macOS 26 with the macOS 27 SDK because
pipe2() and dup3() are unavailable
* Bug #22259: Arrays sharding a buffer segfault when concatenating with=
each
other
* Bug #22264: Warning missing from parse.y hash literals
* Bug #22303: EncodingError from interpolating symbol crashes whole pro=
cess
* Bug #22315: heap-use-after-free in String unpack with a block that mu=
tates
the receiver
* Bug #22318: heap uaf triggered in array.flatten
* Bug #22319: heap buffer overflow triggered by array's zip function
* Bug #22322: AddressSanitizer: use-after-poison in econv_description
/ruby-src/build/../transcode.c
* Bug #22321: Assertion Failed:
rb_vm_search_method_slowpath:RB_TYPE_2_P(klass, RUBY_T_CLASS,
RUBY_T_ICLASS): klass: T_MODULE
* Bug #22334: Assertion Failed: VM_ENV_FLAGS:FIXNUM_P(flags)
* Bug #22336: IO:Buffer Heap uaf
* Bug #9932: Permutation - Segment fault
* Bug #22330: heap uaf from string.encode()
* Bug #22340: Win32: File.stat succeeds on symbolic-link loops on Windo=
ws
* Bug #22335: Stack corruption with >31 keyword args and refined Intege=
r#=3D=3D
* Bug #22338: [Backport] win32: create directory symlinks for relative
directory targets
lang/ruby34: update to 3.4.11 3.4.11 (2026-09-23) * Bug #22196: Heap-use-after-free in fiber_switch with transfer-terminated async tasks on 3.4.10 * Guard fiber target across fiber_store. by samuel-williams-shopify · Pull Request #17951 * Bug #21842: Encoding of rb_interned_str * Bug #22126: Stack underflow for partial DCE and loops * Bug #22124: void value missed in parse.y * Bug #22183: parse.y interpolation inside lambda literal * Bug #22099: Keyword-only method silently accepts a positional argument * 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 * Bug #22198: win32: heap overflow in Kernel#system * Bug #20958: fix ENV.keys encoding on windows * Bug #11438: native_thread_init_stack() get machine.stack_start unequal to thread's stack start address, x86 win32 * Bug #22218: Line TracePoint misses executed loop condition after a guard * Bug #22223: Socket.tcp with connect_timeout returns a phantom "connected" socket for a refused connection on macOS 27 (kernel answers EISCONN on connect retry; SO_ERROR never consulted) * Bug #22290: Adding instance variables to anonymous object may bloat all future classes * Bug #22269: Coverage.line_stub clobbers already-collected coverage data * Bug #22257: Prepending a module to an already-included module leaves stale super caches * Handle spurious wakeups in Thread#join. by samuel-williams-shopify · Pull Request #13532 * Bug #22311: Build crashes on macOS 26 with the macOS 27 SDK because pipe2() and dup3() are unavailable * Bug #22259: Arrays sharding a buffer segfault when concatenating with each other * Bug #22264: Warning missing from parse.y hash literals * Bug #22303: EncodingError from interpolating symbol crashes whole process * Bug #22315: heap-use-after-free in String unpack with a block that mutates the receiver * Bug #22318: heap uaf triggered in array.flatten * Bug #22319: heap buffer overflow triggered by array's zip function * Bug #22322: AddressSanitizer: use-after-poison in econv_description /ruby-src/build/../transcode.c * Bug #22321: Assertion Failed: rb_vm_search_method_slowpath:RB_TYPE_2_P(klass, RUBY_T_CLASS, RUBY_T_ICLASS): klass: T_MODULE * Bug #22334: Assertion Failed: VM_ENV_FLAGS:FIXNUM_P(flags) * Bug #22336: IO:Buffer Heap uaf * Bug #9932: Permutation - Segment fault * Bug #22330: heap uaf from string.encode() * Bug #22340: Win32: File.stat succeeds on symbolic-link loops on Windows * Bug #22335: Stack corruption with >31 keyword args and refined Integer#== * Bug #22338: [Backport] win32: create directory symlinks for relative directory targets
lang/ruby34: update resolv gem Update resolv gem to 0.7.2 to fix CVE-2026-80212 and CVE-2026-80213. Bump PKGREVISION.
ruby34: fix parallel build and dtrace-related build problem
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: improve rdoc * Fix rdoc problem on C locale, backported from rdoc-7.0.4. * Remove pkglint warning. Bump PKGREVISION.
Pullup ticket #7104 - requested by taca lang/ruby34: security fix Revisions pulled up: - lang/ruby/rubyversion.mk 1.321 - lang/ruby34/Makefile 1.8 - lang/ruby34/distinfo 1.14 - lang/ruby34/patches/patch-lib_erb.rb 1.1 - lang/ruby34/patches/patch-lib_erb_version.rb 1.1 - lang/ruby34/patches/patch-test_erb_test__erb.rb 1.1 --- Module Name: pkgsrc Committed By: taca Date: Wed May 6 05:15:35 UTC 2026 Modified Files: pkgsrc/lang/ruby: rubyversion.mk pkgsrc/lang/ruby34: Makefile distinfo Added Files: pkgsrc/lang/ruby34/patches: patch-lib_erb.rb patch-lib_erb_version.rb patch-test_erb_test__erb.rb Log Message: lang/ruby34: update default gem erb to 4.0.4.1 Update default gem erb to 4.0.4.1 to fix security problem of CVE-2026-41316. Bump PKGREVISION.
lang/ruby34: update default gem erb to 4.0.4.1 Update default gem erb to 4.0.4.1 to fix security problem of CVE-2026-41316. Bump PKGREVISION.
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
Pullup ticket #6988 - requested by taca lang/ruby34: Security fix Revisions pulled up: - lang/ruby/rubyversion.mk 1.301 - lang/ruby34/Makefile 1.6 - lang/ruby34/distinfo 1.8 - lang/ruby34/patches/patch-ext_win32_lib_win32_resolv.rb 1.1 - lang/ruby34/patches/patch-ext_win32_resolv_resolv.c 1.1 - lang/ruby34/patches/patch-lib_resolv.rb 1.1 - lang/ruby34/patches/patch-test_resolv_test__dns.rb 1.1 --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 13 15:39:55 UTC 2025 Modified Files: pkgsrc/lang/ruby: rubyversion.mk pkgsrc/lang/ruby34: Makefile distinfo Added Files: pkgsrc/lang/ruby34/patches: patch-ext_win32_lib_win32_resolv.rb patch-ext_win32_resolv_resolv.c patch-lib_resolv.rb patch-test_resolv_test__dns.rb Log Message: lang/ruby34: update resolv gem Update resolve gem to 0.6.2 to fix security problem of CVE-2025-24294. Bump PKGREVISION.
lang/ruby34: update resolv gem Update resolve gem to 0.6.2 to fix security problem of CVE-2025-24294. Bump PKGREVISION.
lang/ruby34: stop sorting @extensions of Gem::Specification There is a gem (google-protobuf) depends on order of @extensions of Gem::Specification to build its extensions. This sorting was introduced from Ruby 3.4.3 (via RubyGems 3.6.7). So, stop sorting for @extensions to build such a gem again. Bump PKGREVISION.
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: Fix build problem on NetBSD 9/i386 On NetBSD/i386 9 with gcc 7.x, it cause error on compiling vm.c (really vm_exec.c). Since gcc 8 has no problem, set GCC_REQD to 8.
lang/ruby34: Fix PRISM parser behavior on NetBSD Fix segmentation fault when execute ruby binary without argument reported by ryoon@ and mef@. prism/prism.c use "fgets" as functions's parameter and the parameter is function pointer. On NetBSD, fgets(3) was called instead of passed function pointer. So, replace "fgets" to other name. Bump PKGREVISION.
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.