From 3839350b1b2e5e08a5318dd69ac6cbfccd7908ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EF=BB=BFghost-from-the-past?= Date: Wed, 14 Apr 2021 14:08:56 +0200 Subject: [PATCH] Updated Ubuntu bundler broken due to ruby thor dependency explanation and workaround (markdown) --- ...dependency---explanation-and-workaround.md | 34 +++++++------------ 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/Ubuntu-bundler-broken-due-to-ruby-thor-dependency---explanation-and-workaround.md b/Ubuntu-bundler-broken-due-to-ruby-thor-dependency---explanation-and-workaround.md index 659d67e..22bf9e1 100644 --- a/Ubuntu-bundler-broken-due-to-ruby-thor-dependency---explanation-and-workaround.md +++ b/Ubuntu-bundler-broken-due-to-ruby-thor-dependency---explanation-and-workaround.md @@ -1,16 +1,14 @@ -

As explained here

-

- https://bugs.launchpad.net/ubuntu/+source/ruby-thor/+bug/1885424 +

If when you run bundler you get and error saying "TypeError: superclass mismatch for class Command", this is due to the problem explained in this link https://bugs.launchpad.net/ubuntu/+source/ruby-thor/+bug/1885424

+

This happens for the Ubuntu and Debian distributions.The problem is in their fork of bundler not in the original upstream version at https://github.com/rubygems/rubygems

+

The files involved are:

+

/usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendored_molinillo.rb

+

/usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendored_thor.rb


-

the following change on the files has broken their magic...

+

the following changes on the files had broken their magic...

-----------------------------------------------------------------------------

-

/usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendored_molinillo.rb

-

-
-

--- a/lib/bundler/vendored_molinillo.rb

+++ b/lib/bundler/vendored_molinillo.rb

@@ -1,4 +1,4 @@

@@ -25,13 +23,6 @@

-----------------------------------------------------------------------------

-

/usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendored_thor.rb

-

-
-

-

-
-

--- a/lib/bundler/vendored_thor.rb

+++ b/lib/bundler/vendored_thor.rb

@@ -2,7 +2,7 @@

@@ -47,12 +38,11 @@

-require_relative "vendor/thor/lib/thor"

+require "thor"

-----------------------------------------------------------------------------

-

you can revert the changes or the files from the master branch of github https://github.com/rubygems/rubygems -

- also you need to copy from the master branch the directories

-

vendor/thor and vendor/molinillo

-

- into the directory /usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendor
+

-

------------

\ No newline at end of file +

you can revert the changes or copy the files from the upstream master branch https://github.com/rubygems/rubygems +

+

Once the modifications done, the files will refer to the relative /vendor/molinillo and /vendor/thor directories that were removed in the fork of Ubuntu/Debian so you need to copy both directories from the upstream into

+

/usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendor

+

You can run now bundler with its magic restored :)

\ No newline at end of file