mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 10:56:22 +00:00
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
|
--- rubygems/platform.rb.orig
|
||
|
+++ rubygems/platform.rb
|
||
|
@@ -89,7 +89,7 @@
|
||
|
when /^dalvik(\d+)?$/ then [ 'dalvik', $1 ]
|
||
|
when /^dotnet$/ then [ 'dotnet', nil ]
|
||
|
when /^dotnet([\d.]*)/ then [ 'dotnet', $1 ]
|
||
|
- when /linux/ then [ 'linux', $1 ]
|
||
|
+ when /linux-?(\w+)?/ then [ 'linux', $1 ]
|
||
|
when /mingw32/ then [ 'mingw32', nil ]
|
||
|
when /(mswin\d+)(\_(\d+))?/ then
|
||
|
os, version = $1, $3
|
||
|
--- rubygems.rb.orig
|
||
|
+++ rubygems.rb
|
||
|
@@ -764,10 +764,7 @@
|
||
|
def self.platforms
|
||
|
@platforms ||= []
|
||
|
if @platforms.empty?
|
||
|
- # XXX: Patched to avoid installing platform-specific gems with binaries
|
||
|
- # linked against glibc.
|
||
|
- @platforms = [Gem::Platform::RUBY]
|
||
|
- #@platforms = [Gem::Platform::RUBY, Gem::Platform.local]
|
||
|
+ @platforms = [Gem::Platform::RUBY, Gem::Platform.local]
|
||
|
end
|
||
|
@platforms
|
||
|
end
|