[ruby-core:118320] [Ruby master Bug#20581] Ruby 3.3.3 install has missing deps for bundled net-pop gem

Issue #20581 has been reported by MatzFan (Bruce Steedman). ---------------------------------------- Bug #20581: Ruby 3.3.3 install has missing deps for bundled net-pop gem https://bugs.ruby-lang.org/issues/20581 * Author: MatzFan (Bruce Steedman) * Status: Open * ruby -v: ruby 3.3.3 (2024-06-12 revision f1c7b6f435) [x86_64-linux] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- A stackoverflow question and answer has identified an issue with the Ruby 3.3.3 install which can cause a failure when bundler installs gem dependencies. https://stackoverflow.com/a/78620570/4114896 A workaround has been described. There is a related issue with the net-pop gem here: https://github.com/ruby/net-pop/issues/26 -- https://bugs.ruby-lang.org/

Issue #20581 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Open to Assigned Assignee set to hsbt (Hiroshi SHIBATA) ---------------------------------------- Bug #20581: Ruby 3.3.3 install has missing deps for bundled net-pop gem https://bugs.ruby-lang.org/issues/20581#change-108828 * Author: MatzFan (Bruce Steedman) * Status: Assigned * Assignee: hsbt (Hiroshi SHIBATA) * ruby -v: ruby 3.3.3 (2024-06-12 revision f1c7b6f435) [x86_64-linux] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- A stackoverflow question and answer has identified an issue with the Ruby 3.3.3 install which can cause a failure when bundler installs gem dependencies. https://stackoverflow.com/a/78620570/4114896 A workaround has been described. There is a related issue with the net-pop gem here: https://github.com/ruby/net-pop/issues/26 -- https://bugs.ruby-lang.org/

Issue #20581 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Assigned to Closed Backport changed from 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN to 3.1: DONTNEED, 3.2: UNKNOWN, 3.3: REQUIRED Thank you for your report. This issue caused by https://github.com/ruby/ruby/commit/0a0338b06fcc3690346d5a3bec60bbcee85ec7ce Background: [This commit](https://github.com/ruby/ruby/commit/0a0338b06fcc3690346d5a3bec60bbcee85ec7ce) truncate default gems if bundled gems used them. But we need to apply [prepared commits](https://github.com/ruby/ruby/pull/11006) before this truncation. The diff of installation results with https://github.com/ruby/ruby/pull/11006 is here(3.3-debug-2 is applied version): ``` diff --color=auto -ru 3.3-debug/lib/ruby/gems/3.3.0/specifications/net-ftp-0.3.4.gemspec 3.3-debug-2/lib/ruby/gems/3.3.0/specifications/net-ftp-0.3.4.gemspec --- 3.3-debug/lib/ruby/gems/3.3.0/specifications/net-ftp-0.3.4.gemspec 2024-06-17 14:48:46 +++ 3.3-debug-2/lib/ruby/gems/3.3.0/specifications/net-ftp-0.3.4.gemspec 2024-06-17 14:51:22 @@ -15,8 +15,13 @@ s.homepage = "https://github.com/ruby/net-ftp".freeze s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.6.0".freeze) - s.rubygems_version = "3.3.5".freeze + s.rubygems_version = "3.5.11".freeze s.summary = "Support for the File Transfer Protocol.".freeze s.installed_by_version = "3.5.11".freeze if s.respond_to? :installed_by_version + + s.specification_version = 4 + + s.add_runtime_dependency(%q<net-protocol>.freeze, [">= 0".freeze]) + s.add_runtime_dependency(%q<time>.freeze, [">= 0".freeze]) end diff --color=auto -ru 3.3-debug/lib/ruby/gems/3.3.0/specifications/net-imap-0.4.9.1.gemspec 3.3-debug-2/lib/ruby/gems/3.3.0/specifications/net-imap-0.4.9.1.gemspec --- 3.3-debug/lib/ruby/gems/3.3.0/specifications/net-imap-0.4.9.1.gemspec 2024-06-17 14:48:46 +++ 3.3-debug-2/lib/ruby/gems/3.3.0/specifications/net-imap-0.4.9.1.gemspec 2024-06-17 14:51:22 @@ -16,13 +16,15 @@ s.homepage = "https://github.com/ruby/net-imap".freeze s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.7.3".freeze) - s.rubygems_version = "3.3.5".freeze + s.rubygems_version = "3.5.11".freeze s.summary = "Ruby client api for Internet Message Access Protocol".freeze s.installed_by_version = "3.5.11".freeze if s.respond_to? :installed_by_version s.specification_version = 4 + s.add_runtime_dependency(%q<net-protocol>.freeze, [">= 0".freeze]) s.add_runtime_dependency(%q<date>.freeze, [">= 0".freeze]) s.add_development_dependency(%q<digest>.freeze, [">= 0".freeze]) + s.add_development_dependency(%q<strscan>.freeze, [">= 0".freeze]) end diff --color=auto -ru 3.3-debug/lib/ruby/gems/3.3.0/specifications/net-pop-0.1.2.gemspec 3.3-debug-2/lib/ruby/gems/3.3.0/specifications/net-pop-0.1.2.gemspec --- 3.3-debug/lib/ruby/gems/3.3.0/specifications/net-pop-0.1.2.gemspec 2024-06-17 14:48:46 +++ 3.3-debug-2/lib/ruby/gems/3.3.0/specifications/net-pop-0.1.2.gemspec 2024-06-17 14:51:22 @@ -15,8 +15,12 @@ s.email = ["matz@ruby-lang.org".freeze] s.homepage = "https://github.com/ruby/net-pop".freeze s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] - s.rubygems_version = "3.3.5".freeze + s.rubygems_version = "3.5.11".freeze s.summary = "Ruby client library for POP3.".freeze s.installed_by_version = "3.5.11".freeze if s.respond_to? :installed_by_version + + s.specification_version = 4 + + s.add_runtime_dependency(%q<net-protocol>.freeze, [">= 0".freeze]) end diff --color=auto -ru 3.3-debug/lib/ruby/gems/3.3.0/specifications/prime-0.1.2.gemspec 3.3-debug-2/lib/ruby/gems/3.3.0/specifications/prime-0.1.2.gemspec --- 3.3-debug/lib/ruby/gems/3.3.0/specifications/prime-0.1.2.gemspec 2024-06-17 14:48:46 +++ 3.3-debug-2/lib/ruby/gems/3.3.0/specifications/prime-0.1.2.gemspec 2024-06-17 14:51:22 @@ -15,8 +15,13 @@ s.homepage = "https://github.com/ruby/prime".freeze s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.5.0".freeze) - s.rubygems_version = "3.3.5".freeze + s.rubygems_version = "3.5.11".freeze s.summary = "Prime numbers and factorization library.".freeze s.installed_by_version = "3.5.11".freeze if s.respond_to? :installed_by_version + + s.specification_version = 4 + + s.add_runtime_dependency(%q<singleton>.freeze, [">= 0".freeze]) + s.add_runtime_dependency(%q<forwardable>.freeze, [">= 0".freeze]) end ``` ---------------------------------------- Bug #20581: Ruby 3.3.3 install has missing deps for bundled net-pop gem https://bugs.ruby-lang.org/issues/20581#change-108839 * Author: MatzFan (Bruce Steedman) * Status: Closed * Assignee: hsbt (Hiroshi SHIBATA) * ruby -v: ruby 3.3.3 (2024-06-12 revision f1c7b6f435) [x86_64-linux] * Backport: 3.1: DONTNEED, 3.2: UNKNOWN, 3.3: REQUIRED ---------------------------------------- A stackoverflow question and answer has identified an issue with the Ruby 3.3.3 install which can cause a failure when bundler installs gem dependencies. https://stackoverflow.com/a/78620570/4114896 A workaround has been described. There is a related issue with the net-pop gem here: https://github.com/ruby/net-pop/issues/26 -- https://bugs.ruby-lang.org/

Issue #20581 has been updated by k0kubun (Takashi Kokubun). Backport changed from 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONE ruby_3_3 commit:01762837b7f98934e402c6888e15de32a673b0fd. ---------------------------------------- Bug #20581: Ruby 3.3.3 install has missing deps for bundled net-pop gem https://bugs.ruby-lang.org/issues/20581#change-109021 * Author: MatzFan (Brian Cohen) * Status: Closed * Assignee: hsbt (Hiroshi SHIBATA) * ruby -v: ruby 3.3.3 (2024-06-12 revision f1c7b6f435) [x86_64-linux] * Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONE ---------------------------------------- A stackoverflow question and answer has identified an issue with the Ruby 3.3.3 install which can cause a failure when bundler installs gem dependencies. https://stackoverflow.com/a/78620570/4114896 A workaround has been described. There is a related issue with the net-pop gem here: https://github.com/ruby/net-pop/issues/26 -- https://bugs.ruby-lang.org/
participants (3)
-
hsbt (Hiroshi SHIBATA)
-
k0kubun (Takashi Kokubun)
-
MatzFan (Bruce Steedman)