Up to [cvs.NetBSD.org] / pkgsrc / lang / ruby33
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Pullup ticket #7206 - requested by taca
lang/ruby33: Security fix
Revisions pulled up:
- lang/ruby/rubyversion.mk 1.327
- lang/ruby33/Makefile 1.13
- lang/ruby33/PLIST 1.11
- lang/ruby33/distinfo 1.19
- lang/ruby33/patches/patch-lib_erb.rb deleted
- lang/ruby33/patches/patch-lib_erb_version.rb deleted
- lang/ruby33/patches/patch-test_erb_test__erb.rb deleted
---
Module Name: pkgsrc
Committed By: taca
Date: Sat Jul 18 14:09:03 UTC 2026
Modified Files:
pkgsrc/lang/ruby: rubyversion.mk
pkgsrc/lang/ruby33: Makefile PLIST distinfo
Removed Files:
pkgsrc/lang/ruby33/patches: patch-lib_erb.rb patch-lib_erb_version.rb
patch-test_erb_test__erb.rb
Log Message:
lang/ruby33: update to 3.3.12
pkgsrc change: stop installing obsolete ChangeLog.
Note: erb's security problem was already fixed with ruby33-3.3.11nb2.
3.3.12 (2026-07-16)
What's Changed
This release includes the following security fixes.
* CVE-2026-41316: ERB @_init deserialization guard bypass via def_module /
def_method / def_class
This release updates the default gem erb to 4.0.3.1 and the bundled gem
net-imap to 0.4.25. The net-imap update fixes CVE-2026-42245,
CVE-2026-42246, CVE-2026-42256, CVE-2026-42257, CVE-2026-42258,
CVE-2026-47240, CVE-2026-47241 and CVE-2026-47242. Please see the release
notes of net-imap v0.4.24 and net-imap v0.4.25 for the details of these
fixes.
lang/ruby33: update to 3.3.12 pkgsrc change: stop installing obsolete ChangeLog. Note: erb's security problem was already fixed with ruby33-3.3.11nb2. 3.3.12 (2026-07-16) What's Changed This release includes the following security fixes. * CVE-2026-41316: ERB @_init deserialization guard bypass via def_module / def_method / def_class This release updates the default gem erb to 4.0.3.1 and the bundled gem net-imap to 0.4.25. The net-imap update fixes CVE-2026-42245, CVE-2026-42246, CVE-2026-42256, CVE-2026-42257, CVE-2026-42258, CVE-2026-47240, CVE-2026-47241 and CVE-2026-47242. Please see the release notes of net-imap v0.4.24 and net-imap v0.4.25 for the details of these fixes.
Pullup ticket #7059 - requested by taca
lang/ruby33: Security fix
Revisions pulled up:
- lang/ruby/rubyversion.mk 1.315
- lang/ruby33/Makefile 1.10
- lang/ruby33/PLIST 1.10
- lang/ruby33/distinfo 1.16
---
Module Name: pkgsrc
Committed By: taca
Date: Thu Mar 26 14:05:17 UTC 2026
Modified Files:
pkgsrc/lang/ruby: rubyversion.mk
pkgsrc/lang/ruby33: Makefile PLIST
Log Message:
lang/ruby33: update to 3.3.11
Ruby 3.3.11 (2026-03-26)
From=20release announce:
This release includes an update to the zlib gem addressing CVE-2026-278=
20,
along with some bug fixes.
This is the last release of normal maintenance for the Ruby 3.3 series.=
After this release, Ruby 3.3 enters a security maintenance phase. Duri=
ng
this phase, we will only backport security fixes and fixes for critical=
build issues, without any regular bug fixes.
The security maintenance phase is scheduled to last for one year, until=
the
end of March 2027. At that point, official support for Ruby 3.3 will e=
nd.
We recommend that you begin planning your migration to Ruby 3.4 or 4.0.=
Changes
* Bug #21625: Allow IO#wait_readable together with IO#ungetc even in te=
xt
mode
* Fix indents in Onigmo files to use spaces instead of tabs by makenowj=
ust =B7
Pull Request #14047
* Bug #13671: Regexp with lookbehind and case-insensitivity raises
RegexpError only on strings with certain characters
* Bug #21560: RUBY_MN_THREADS=3D1 causes large performance regression i=
n
Puma 7
* Bug #21668: Backport 6cc66469a007d2fb272397e5e27c20b4ce628f5e
* Bug #21652: Marshal#dump documentation out-of-date/unclear regarding =
Data
class
* Bug #21673: Segmentation Fault in IRB when refining Kernel#puts using=
Module#refine (Regression since Ruby 3.4)
* Bug #21655: segfault when building 3.3.10 with GCC 15.2.1, regression=
from
3.3.9
* Bug #21666: Math.lgamma(-1).should =3D=3D [infinity_value, 1] fails w=
ith
Fedora glibc-2.42.9000-8.fc44
* Bug #21680: Integer#digits bug starting from Ruby 3.1
* Bug #21705: UNIXServer.open(nil) segfaults on Windows
* Bug #21715: Miscompilation on x86-64-v2 due to undefined behavior in
search_nonascii in string.c
* Bug #21860: Process.fork: the child may deadlock on th->interrupt_loc=
k in
threadptr_interrupt_exec_cleanup
* Bug #21873: UnboundMethod#=3D=3D returns false for methods from
included/extended modules
* Bug #21931: GC Crash in String#% (backport
726205b354d1068147719fb42e1de743f1838ef1)
* Bug #21266: YJIT GC safety crash with proc objects as block argument
* Bug #21847: Backport syntax_suggest 2.0.3 to supported branches
* Bug #21959: rb_internal_thread_event_hooks_rw_lock is not reinitializ=
ed
after fork causing deadlocks
* Bug #21703: RUBY_CRASH_REPORT does not work when shelling out in some=
cases
* Bug #21446: StackOverflow when changing visibility in reopened refine=
ment
* Bug #21779: Do not export functions from statically linked extensions=
* Bug #21811: Fix underflow in Array#pack
* Bug #21814: 0.pow(2,-9999999999999999990) should be zero
* Bug #21819: A Data object should be frozen even if it has no members
* Bug #21961: Marshal.load freeze option fail to free linked strings
* Feature #16495: Inconsistent quotes in error messages
* Bug #21880: The ultra_safe mode of pstore bundled with Ruby 4.0 is br=
oken.
---
Module Name: pkgsrc
Committed By: kikadf
Date: Fri Mar 27 10:38:43 UTC 2026
Modified Files:
pkgsrc/lang/ruby33: distinfo
Log Message:
ruby33: fix distinfo
lang/ruby33: update to 3.3.11 Ruby 3.3.11 (2026-03-26) From release announce: This release includes an update to the zlib gem addressing CVE-2026-27820, along with some bug fixes. This is the last release of normal maintenance for the Ruby 3.3 series. After this release, Ruby 3.3 enters a security maintenance phase. During this phase, we will only backport security fixes and fixes for critical build issues, without any regular bug fixes. The security maintenance phase is scheduled to last for one year, until the end of March 2027. At that point, official support for Ruby 3.3 will end. We recommend that you begin planning your migration to Ruby 3.4 or 4.0. Changes * Bug #21625: Allow IO#wait_readable together with IO#ungetc even in text mode * Fix indents in Onigmo files to use spaces instead of tabs by makenowjust · Pull Request #14047 * Bug #13671: Regexp with lookbehind and case-insensitivity raises RegexpError only on strings with certain characters * Bug #21560: RUBY_MN_THREADS=1 causes large performance regression in Puma 7 * Bug #21668: Backport 6cc66469a007d2fb272397e5e27c20b4ce628f5e * Bug #21652: Marshal#dump documentation out-of-date/unclear regarding Data class * Bug #21673: Segmentation Fault in IRB when refining Kernel#puts using Module#refine (Regression since Ruby 3.4) * Bug #21655: segfault when building 3.3.10 with GCC 15.2.1, regression from 3.3.9 * Bug #21666: Math.lgamma(-1).should == [infinity_value, 1] fails with Fedora glibc-2.42.9000-8.fc44 * Bug #21680: Integer#digits bug starting from Ruby 3.1 * Bug #21705: UNIXServer.open(nil) segfaults on Windows * Bug #21715: Miscompilation on x86-64-v2 due to undefined behavior in search_nonascii in string.c * Bug #21860: Process.fork: the child may deadlock on th->interrupt_lock in threadptr_interrupt_exec_cleanup * Bug #21873: UnboundMethod#== returns false for methods from included/extended modules * Bug #21931: GC Crash in String#% (backport 726205b354d1068147719fb42e1de743f1838ef1) * Bug #21266: YJIT GC safety crash with proc objects as block argument * Bug #21847: Backport syntax_suggest 2.0.3 to supported branches * Bug #21959: rb_internal_thread_event_hooks_rw_lock is not reinitialized after fork causing deadlocks * Bug #21703: RUBY_CRASH_REPORT does not work when shelling out in some cases * Bug #21446: StackOverflow when changing visibility in reopened refinement * Bug #21779: Do not export functions from statically linked extensions * Bug #21811: Fix underflow in Array#pack * Bug #21814: 0.pow(2,-9999999999999999990) should be zero * Bug #21819: A Data object should be frozen even if it has no members * Bug #21961: Marshal.load freeze option fail to free linked strings * Feature #16495: Inconsistent quotes in error messages * Bug #21880: The ultra_safe mode of pstore bundled with Ruby 4.0 is broken.
lang/ruby33: update to 3.3.9 pkgsrc change: * Enable sigaltstack(2) on NetBSD refering to PR pkg/59017. * Make "make test" pass. Ruby 3.3.9 (2025-07-24) What's Changed * Bug #21286: Windows - MSYS2 just updated to GCC 15.1.0, builds failing * Bug #21220: Memory corruption in update_line_coverage() [write at index -1] * Bug #21331: heap-use-after-free caused by rehash during transform_values! * Bug #21327: Windows builds seem broken after clock_gettime changes? * Bug #21344: Segment Fault Caused by no Backported Patches * Bug #21257: YJIT can generate infinite loop when OOM * 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 #21310: YJIT optimization causes incorrect is_a? method evaluation * Bug #21354: Symbol#to_proc is not ractor safe * Bug #21340: Bump autoconf version to properly handle C23 bool/stdbool defines * Bug #21283: Some tests of TestMkmfConvertible is failing with VS2022 17.14.0 preview 4.0 * Bug #21255: Can't build Ruby with Windows SDK 10.0.26100 * Bug #21380: Use-After-Free in String#split with In-Block String Modification * Bug #21440: Cannot create instances of frozen Data subclasses * Bug #21437: Date#hash may return different values for equal dates with large years * Bug #21441: SEGV during thread cleanup if profiler calls thread_profiles_frames at wrong time * Bug #21438: use-after-free when resizing exivars * Bug #20009: Marshal.load raises exception when load dumped class include non-ASCII * Bug #21448: Random.urandom may fail to fall back to reading /dev/urandom on Linux < 3.17 * Bug #21497: building issue when using gcc15, because C23 is default * Fix bigand_int edgecase returning false by tompng · Pull Request #13987
lang/ruby33: update to 3.3.8 Ruby 3.3.8 (2025-04-09) * Bump net-imap to 0.4.19 for Ruby 3.3 (CVE-2025-25186) by nevans · Pull Request #12732 * Bug #21170: Corrupted Hash (bad VALUE and missing entry) when -1 returned from .hash * Bug #20951: Confusing handling of timezone object's #utc_to_local results * Bug #21046: Backport: TLS fix for ARM64 * Bug #21032: Module#autoload? is slow when $LOAD_PATH contains a relative path * Bug #21095: Prefer uname -n over hostname in tests. * Bug #21112: Typo in error message when an incorrect key is used with WeakKeyMap * Bug #21092: error building ruby 3.4.1 on cygwin/msys2 * Bug #21159: Module#set_temporary_name should freeze given name * Bug #21172: Race condition in register_fstring * Bug #21144: Win32: Use Windows time zone ID as the time zone name if TZ is not set * Bug #21180: SEGV while marking imemo_env->iseq * Bug #21131: IO.copy_stream: yielded string changes value when duped * Bug #19841: Marshal.dump stack overflow with recursive Time * 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 #20984: ENV.inspect is not encoding aware * Bug #21027: not() receiver should be nil * Bug #21217: Integer.sqrt produces wrong results even on input <= 1e18 * Bug #21141: Time#utc? does not work with a timezone object
lang/ruby33: update to 3.3.6 3.3.6 (2024-11-05) What's Changed * Merge JSON 2.7.2 for Ruby 3.3 by hsbt · Pull Request #11541 * Merge reline-0.5.10 by hsbt · Pull Request #11558 * Bug #20718: Objects created with Data_Make_Struct and the default free function are not freed * Bug #20737: Accidentally changed warning target on Ruby 3.3 * Bug #20723: IO#close is broken on Ruby 3.3+ when using the Fiber scheduler. * Use PRIuSIZE instead of %zu for size_t by nobu · Pull Request #9359 * Bump REXML to 3.3.9 for Ruby 3.3 by ajmyers01 · Pull Request #11972 * Bug #13831: error when try to install * Bug #20777: 3.3: RUBY_DESCRIPTION is corrupt when --yjit and --parser=prism * Bug #20704: Windows: -C option does not work for multibyte path name * Bug #20719: Float converts ASCII-incompatible string * Bug #20752: IO::Buffer#slice creates mutable IO::Buffer instance that points to readonly memory (e.g. fronzen String) * Bug #20755: IO::Buffer#transfer transfers mutable reference to String's memory but not lock ownership * Bug #20716: Different instance_method behavior in Ruby 2.7 and Ruby 3.x * Bug #20853: Hash key retrieval after Process.warmup
lang/ruby33: update to 3.3.5 pkgsrc change * Add fix from Issue #7939: Installer lock file cleanup. 3.3.5 (2024-09-03) What's Changed * retry on cancelling of getaddrinfo by ko1 · Pull Request #11131 * Bug #20633: compile error at vm_insnhelper.c when HAVE_DECL_ATOMIC_SIGNAL_FENCE is 0 * Bug #20641: lib/bundled_gems.rb makes Kernel.require over 100x slower * Bug #20650: Memory leak in Regexp capture group when timeout * Bug #20088: Ruby 3.3.0 does not cross-complie on arm64-darwin * Bug #20653: Memory leak in String#start_with? when regexp times out * Bug #20654: Floor and ceil have unexpected behaviour when ndigits is large * Update RubyGems 3.5.16 and Bundler 2.5.16 for Ruby 3.3 by hsbt · Pull Request #11252 * Bug #20668: [3.3] shareable_constant_value: literal crash * Backport warning feature for bundled gems from master by hsbt · Pull Request #11420 * Bug #20688: Use-after-free in WeakMap and WeakKeyMap * Bug #20691: Use-after-free in WeakKeyMap#clear * Merge URI-0.13.1 for Ruby 3.3 by hsbt · Pull Request #11466 * Bug #20667: Backport REXML CVE fixes * Bug #20651: false && (1 in 1) produces argument stack underflow (-1) * Bug #20649: Ripper fails to tokenize def f; (x)::A = * Bug #20344: argument stack underflow (-1) * Bug #20701: Hash argument passed as keyword splat can be mutated inside method Note: This list is automatically generated by tool/gen-github-release.rb. Because of this, some commits may be missing. Full Changelog https://github.com/ruby/ruby/compare/v3_3_4...v3_3_5
lang/ruby33: update to 3.3.4 3.3.4 (2024-07-09) * Bug #20573: Warning.warn shouldn't be called for disabled warnings * Bug #20585: Size of memory allocated by String.new(:capacity) is different from the specified value * Bug #20581: Ruby 3.3.3 install has missing deps for bundled net-pop gem * Bug #20595: Corruption of encoding name string * Bug #20598: Corruption of internal encoding string * Bug #20562: Categorize RUBY_FREE_AT_EXIT warning * Bug #20468: Segfault on safe navigation in for target * Bug #20592: Interrupting Addrinfo causes Segmentation fault on alpine * Bug #20239: Segmentation fault when using Regex on a large String * Bug #20570: Nokey behavior changed since 3.3. * Bug #20605: Add explicit compiler fence when pushing frames to ensure safe profiling
lang/ruby33: update to 3.3.3
3.3.3 (2024-06-12)
What's Changed
* Bug #20447: Ruby 3.3.1 broken on i686 due to "incompatible pointer type"
error
* Bug #20515: --with-gmp is not working - GMP support won't be built
* Bug #20516: The version of rexml in ruby 3.3.2 has not been updated since
3.2.6.
* Bug #20496: Segfault when enabling YJIT
* Bug #20522: YJIT can panic if shape transition in gen_setinstancevariable
emits a performance warning
* Bug #20517: Ripper.tokenize('"\\M-あ"') separates encoding valid string to
encoding invalid string.
* Merge RubyGems 3.5.11 and Bundler 2.5.11 for Ruby 3.3 by hsbt · Pull
Request #10870
* Don't add +YJIT to RUBY_DESCRIPTION until it's actually enabled by
casperisfine · Pull Request #10920
* Bug #20180: Inconsistent evaluation of **{} depending on position in array
* Bug #20280: Error at invalid encoding symbols
* Bug #20569: Instruction sequence generated from shareable_constant_value:
literal files may not be serialized to binary
* Bug #20499: Ruby builds on macOS store absolute paths for AR and NM in
rbconfig since Ruby 3.2.3/3.3.0
* Bug #20521: Memory leak in Ripper parsing
* Bug #20270: Options with --parser=prism
lang/ruby33: update to 3.3.2 3.3.2 (2024-05-30) * Bug #20493: Segfault on rb_io_getline_fast * Bug #20450: Ruby 3.3.1 broken with bootsnap * Bug #20169: GC.compact can raises EFAULT on IO * Bug #20192: YJIT in 3.3.0 miscompiles yield with keyword splats * Bug #20307: Hash#update from compare_by_identity hash can have unfrozen string keys * Bug #20511: Update bundled reline gem version to v0.5.7 * Bug #20204: 3.3.0 YJIT rises TypeError instead of ArgumentError with some incorrect calls * Bug #20195: 3.3.0 YJIT mishandles ruby2_keywords splat into methods taking a rest parameter * Bug #20288: rb_fiber_scheduler_close exceptions are not handled in rb_fiber_scheduler_set. * Bug #20286: TracePoint does not emit thread_end event when thread exits with exception * Bug #20292: Abort ruby by String#initialize * Bug #20445: Reduce if for decreasing counter on OP_REPEAT_INC * Bug #20296: Complex(:sym, exception: false) generate exception with weird timing * Bug #20322: rb_enc_interned_str_cstr doesn't accept null pointer for encoding * Bug #20289: Bug in Zlib::GzipReader#eof? breaks reading certain sizes of gzipped files. * Bug #20393: after_fork_ruby clears all pending interrupts for both parent and child process. * Bug #20305: commit 1d2d25dcadda0764f303183ac091d0c87b432566 breaks grapheme_clusters * Bug #20342: Top level public, private and ruby2_keywords do not work in wrapped load * Bug #20413: Enumerator can block fiber scheduler. * Bug #20427: Backport: Heap buffer overflow in Array#sort! when block modifies target array * Bug #20414: Fiber#raise should recurse to resumed_fiber rather than failing. * Bug #20453: Pointer being freed was not allocated in Regexp timeout * Bug #20494: Non-default directories are not searched when checking for a gmp header * Bug #20094: Inline while loop behavior changed unexpectedly in 3.3.0 * Bug #20502: Backport pthread_kill fix to Ruby 3.3 * Bug #20431: Ruby 3.3.0 build fail with make: *** [io_buffer.o] Error 1 * Bug #20500: Non-system directories are not searched when checking for jemalloc headers and libs, and building enc
lang/ruby33: update to 3.3.1 This is security release. Note CVE-2024-27280 and CVE-2024-27281 were already fixed by ruby31-base-3.3.0nb1. 3.3.1 (2024-04-23) * CVE-2024-27282: Arbitrary memory address read vulnerability with Regex search * CVE-2024-27281: RCE vulnerability with .rdoc_options in RDoc
lang/ruby33: add version 3.3.0 Add ruby33 version 3.3.0 (Ruby 3.3.0). Since Ruby 3.3.0 dose not contains devel/ruby-readline anymore, no ruby33-base package now. 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.3 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.