diff options
author | Dan Langille <dvl@FreeBSD.org> | 2022-02-20 12:13:41 +0000 |
---|---|---|
committer | Dan Langille <dvl@FreeBSD.org> | 2022-02-20 13:06:12 +0000 |
commit | 7b279c9e09e1d27a385b7400842622b03a60c5bb (patch) | |
tree | 4e0a25c98d94637b6c6509053798f3e17cc657c0 /devel/ruby-gems/files/patch-bundler-remove.patch | |
parent | databases/cego: upgrade 2.47.16 -> 2.47.22 (diff) |
devel/ruby-gems: Update to 3.3.7
These are fixes Ruby 3.0
Changes were compiled against all dependencies of devel/ruby-gems and
they all built cleanly.
There are five known build failures, all prexisting:
* devel/rubygem-xdg5: requires Ruby 3.0
* devel/rubygem-xdg: requires Ruby 3.1
* graphics/rubygem-objectdetect: port explicitly marked broken
* mail/rubygem-tmail: port explicitly marked broken
* science/cdcl: marked broken, unfetchable
Plus, science/rubygem-ruby-dcl gets skipped because of science/cdcl
PR: 258108
Approved by: ruby (zi@)
Diffstat (limited to 'devel/ruby-gems/files/patch-bundler-remove.patch')
-rw-r--r-- | devel/ruby-gems/files/patch-bundler-remove.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/devel/ruby-gems/files/patch-bundler-remove.patch b/devel/ruby-gems/files/patch-bundler-remove.patch new file mode 100644 index 000000000000..cc0c271578b8 --- /dev/null +++ b/devel/ruby-gems/files/patch-bundler-remove.patch @@ -0,0 +1,42 @@ +commit b110d12e9c3bd2d153886681ff42c53c59ecd12d +Author: Thibault Jouan <tj@a13.fr> +AuthorDate: Mon Oct 11 23:54:27 2021 +0000 +Commit: Thibault Jouan <tj@a13.fr> +CommitDate: Wed Oct 13 11:49:25 2021 +0000 + + Prevent bundler installation + + Since RubyGems 3.1 the `setup' command also installs bundler and the + `USE_BUNDLER_FOR_GEMDEPS' environment variable has been removed. + + We have to manually patch this command to remove bundler installation. + +diff --git lib/rubygems/commands/setup_command.rb lib/rubygems/commands/setup_command.rb +index 2f7f29575..8fef1c539 100644 +--- lib/rubygems/commands/setup_command.rb ++++ lib/rubygems/commands/setup_command.rb +@@ -180,8 +180,6 @@ def execute + # Can be removed one we drop support for bundler 2.2.3 (the last version installing man files to man_dir) + remove_old_man_files man_dir if man_dir && File.exist?(man_dir) + +- install_default_bundler_gem bin_dir +- + if mode = options[:dir_mode] + @mkdirs.uniq! + File.chmod(mode, @mkdirs) +@@ -311,7 +309,6 @@ def shebang + + def install_lib(lib_dir) + libs = { 'RubyGems' => 'lib' } +- libs['Bundler'] = 'bundler/lib' + libs.each do |tool, path| + say "Installing #{tool}" if @verbose + +@@ -520,7 +517,6 @@ def remove_old_bin_files(bin_dir) + + def remove_old_lib_files(lib_dir) + lib_dirs = { File.join(lib_dir, 'rubygems') => 'lib/rubygems' } +- lib_dirs[File.join(lib_dir, 'bundler')] = 'bundler/lib/bundler' + lib_dirs.each do |old_lib_dir, new_lib_dir| + lib_files = files_in(new_lib_dir) + |