blob: 3a01b984660412c65040370709e8e45c6cd167d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-setup.rb,v 1.1 2015/06/08 14:55:17 taca Exp $
Fix build problem on Ruby 2.2 and later.
--- setup.rb.orig 2004-10-30 14:17:39.000000000 +0000
+++ setup.rb
@@ -256,7 +256,7 @@ class ConfigTable_class
end
-c = ::Config::CONFIG
+c = ::RbConfig::CONFIG
rubypath = c['bindir'] + '/' + c['ruby_install_name']
@@ -1246,7 +1246,7 @@ class Installer
def ruby_extentions(dir)
Dir.open(dir) {|d|
- ents = d.select {|fname| /\.#{::Config::CONFIG['DLEXT']}\z/ =~ fname }
+ ents = d.select {|fname| /\.#{::RbConfig::CONFIG['DLEXT']}\z/ =~ fname }
if ents.empty?
setup_rb_error "no ruby extention exists: 'ruby #{$0} setup' first"
end
|