Skip to content

Commit

Permalink
Merge pull request #3355 from MSch/fix-installing-bundled-gems-2.2.1
Browse files Browse the repository at this point in the history
Add fix_installing_bundled_gems.patch for Ruby 2.2.1
  • Loading branch information
mpapis committed Mar 23, 2015
2 parents b6590b4 + a58579f commit 99cb5f6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions patches/ruby/2.2.1/fix_installing_bundled_gems.patch
@@ -0,0 +1,14 @@
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -725,9 +725,9 @@
end
# fix directory permissions
# TODO: Gem.install should accept :dir_mode option or something
- File.chmod($dir_mode, *Dir.glob(with_destdir(Gem.dir)+"/**/"))
+ File.chmod($dir_mode, *Dir.glob(with_destdir(gem_dir)+"/**/"))
# fix .gemspec permissions
- File.chmod($data_mode, *Dir.glob(with_destdir(Gem.dir)+"/specifications/*.gemspec"))
+ File.chmod($data_mode, *Dir.glob(with_destdir(gem_dir)+"/specifications/*.gemspec"))
else
puts "skip installing bundle gems because of lacking zlib"
end
1 change: 1 addition & 0 deletions patchsets/ruby/2.2.1/default
@@ -0,0 +1 @@
fix_installing_bundled_gems

0 comments on commit 99cb5f6

Please sign in to comment.