FreeBSD Bugzilla – Attachment 222028 Details for
Bug 253104
devel/ruby-gems: building with ruby 3.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
make code ruby 3.0 ready
devel-ruby-gems-patch.diff (text/plain), 1.76 KB, created by
Sir l33tname
on 2021-01-30 18:40:58 UTC
(
hide
)
Description:
make code ruby 3.0 ready
Filename:
MIME Type:
Creator:
Sir l33tname
Created:
2021-01-30 18:40:58 UTC
Size:
1.76 KB
patch
obsolete
>Index: devel/ruby-gems/files/patch-lib_rubygems_package.rb >=================================================================== >--- devel/ruby-gems/files/patch-lib_rubygems_package.rb (nonexistent) >+++ devel/ruby-gems/files/patch-lib_rubygems_package.rb (working copy) >@@ -0,0 +1,27 @@ >+--- lib/rubygems/package.rb.orig 2020-02-18 06:58:15 UTC >++++ lib/rubygems/package.rb >+@@ -486,7 +486,7 @@ EOM >+ path = File.expand_path(path + File::SEPARATOR + basename) >+ lstat = File.lstat path rescue nil >+ if !lstat || !lstat.directory? >+- unless normalize_path(path).start_with? normalize_path(destination_dir) and (FileUtils.mkdir path, mkdir_options rescue false) >++ unless normalize_path(path).start_with? normalize_path(destination_dir) and (FileUtils.mkdir path, **mkdir_options rescue false) >+ raise Gem::Package::PathError.new(file_name, destination_dir) >+ end >+ end >+@@ -502,13 +502,9 @@ EOM >+ when 'metadata' then >+ @spec = Gem::Specification.from_yaml entry.read >+ when 'metadata.gz' then >+- args = [entry] >+- args << { :external_encoding => Encoding::UTF_8 } if >+- Zlib::GzipReader.method(:wrap).arity != 1 >+- >+- Zlib::GzipReader.wrap(*args) do |gzio| >++ Zlib::GzipReader.wrap(entry, external_encoding: Encoding::UTF_8) do |gzio| >+ @spec = Gem::Specification.from_yaml gzio.read >+- end >++ end >+ end >+ end >+ > >Property changes on: devel/ruby-gems/files/patch-lib_rubygems_package.rb >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253104
: 222028