head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.2; locks; strict; comment @# @; 1.1 date 2026.05.20.13.13.37; author taca; state Exp; branches 1.1.2.1; next ; commitid tJwURG22sgqqsyGG; 1.1.2.1 date 2026.05.20.13.13.37; author maya; state dead; branches; next 1.1.2.2; commitid vmsAXvpIAQxx4DGG; 1.1.2.2 date 2026.05.21.03.07.30; author maya; state Exp; branches; next ; commitid vmsAXvpIAQxx4DGG; desc @@ 1.1 log @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 @ text @$NetBSD$ * Always convert "\r\n" to "\n" since it cause rdoc processing error. --- .bundle/gems/rdoc-7.0.4/lib/rdoc/encoding.rb.orig 2026-05-19 23:22:56.000000000 +0000 +++ .bundle/gems/rdoc-7.0.4/lib/rdoc/encoding.rb @@@@ -31,7 +31,7 @@@@ module RDoc::Encoding def self.read_file(filename, encoding, force_transcode = false) content = File.open filename, "rb" do |f| f.read end - content.gsub!("\r\n", "\n") if RUBY_PLATFORM =~ /mswin|mingw/ + content.gsub!("\r\n", "\n") utf8 = content.sub!(/\A\xef\xbb\xbf/, '') @ 1.1.2.1 log @file patch-.bundle_gems_rdoc-7.0.4_lib_rdoc_encoding.rb was added on branch pkgsrc-2026Q1 on 2026-05-21 03:07:30 +0000 @ text @d1 15 @ 1.1.2.2 log @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 @ text @a0 15 $NetBSD: patch-.bundle_gems_rdoc-7.0.4_lib_rdoc_encoding.rb,v 1.1 2026/05/20 13:13:37 taca Exp $ * Always convert "\r\n" to "\n" since it cause rdoc processing error. --- .bundle/gems/rdoc-7.0.4/lib/rdoc/encoding.rb.orig 2026-05-19 23:22:56.000000000 +0000 +++ .bundle/gems/rdoc-7.0.4/lib/rdoc/encoding.rb @@@@ -31,7 +31,7 @@@@ module RDoc::Encoding def self.read_file(filename, encoding, force_transcode = false) content = File.open filename, "rb" do |f| f.read end - content.gsub!("\r\n", "\n") if RUBY_PLATFORM =~ /mswin|mingw/ + content.gsub!("\r\n", "\n") utf8 = content.sub!(/\A\xef\xbb\xbf/, '') @