From: v.ondruch@... Date: 2020-06-24T13:01:36+00:00 Subject: [ruby-core:98932] [Ruby master Bug#16904] rubygems: psych: superclass mismatch for class Mark (TypeError) Issue #16904 has been updated by vo.x (Vit Ondruch). Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN to 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: REQUIRED This was fixed in master: https://github.com/ruby/ruby/commit/a18e81d797135de6e143a600e4f4d2b00ab23bf9 https://github.com/ruby/ruby/commit/5aa5aad48aa3effce60de3559d9bd107bfc9a91d https://github.com/ruby/ruby/commit/07dca5c02c95322a39833705d3acd87b3adb00ac https://github.com/ruby/ruby/commit/f0f138aa5d5857fb435bfaef95201d530f6d35da https://github.com/ruby/ruby/commit/b9d431a7b129635356d03bb0bbdb9b5060a35729 Closing this to trigger backport request. ---------------------------------------- Bug #16904: rubygems: psych: superclass mismatch for class Mark (TypeError) https://bugs.ruby-lang.org/issues/16904#change-86307 * Author: jaruga (Jun Aruga) * Status: Open * Priority: Normal * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: REQUIRED ---------------------------------------- Is it possible to backport the following commits into Ruby? Remove explicit `psych` activation https://github.com/rubygems/rubygems/commit/1ccf0912a161d20e0c4a7b139fd76e8739a411ba bundler: Remove explicit `psych` activation. https://github.com/rubygems/rubygems/commit/88478bb56945ffa9868491cacd0bc74d9d73c848 It causes the following kind of error when psych is installed as not default gem but regular gem. It's a Fedora Ruby specific case. **This is not the case of Ruby built from source normally.** ``` $ cat test.rb require 'psych' Gem.load_yaml # <= The error happens. ``` ``` $ ruby test.rb /usr/lib64/gems/ruby/psych-3.1.0/psych.so: warning: already initialized constant Psych::Parser::ANY ... /usr/share/gems/gems/psych-3.1.0/lib/psych/parser.rb:34:in `': superclass mismatch for class Mark (TypeError) ``` It is possibly also related to https://github.com/ruby/psych/issues/386 . Thank you. -- https://bugs.ruby-lang.org/ Unsubscribe: