From 64c75fe9a1e388869c67894c808da7bceff12331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EF=BB=BFghost-from-the-past?= Date: Wed, 14 Apr 2021 13:54:07 +0200 Subject: [PATCH] Created Ubuntu bundler broken due to ruby-thor dependency - explanation and workaround (markdown) --- ...dependency---explanation-and-workaround.md | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Ubuntu-bundler-broken-due-to-ruby-thor-dependency---explanation-and-workaround.md 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 new file mode 100644 index 0000000..659d67e --- /dev/null +++ b/Ubuntu-bundler-broken-due-to-ruby-thor-dependency---explanation-and-workaround.md @@ -0,0 +1,58 @@ +

As explained here

+

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

+

+
+

+

the following change on the files has 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 @@

+

# frozen_string_literal: true

+

+
+

+

module Bundler; end

+

-require_relative "vendor/molinillo/lib/molinillo"

+

+require "molinillo"

+

+
+

+

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

+

/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 @@

+

+
+

+

module Bundler

+

def self.require_thor_actions

+

- require_relative "vendor/thor/lib/thor/actions"

+

+ require "thor/actions"

+

end

+

end

+

-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