fixrbconfig 1.0 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,149 +7,10 @@ end
7
7
 
8
8
  OLD_PATH="/usr/lib/ruby/1.8/powerpc-darwin8.0/rbconfig.rb"
9
9
  BACKUP_PATH="/usr/lib/ruby/1.8/powerpc-darwin8.0/rbconfig.rb.bak"
10
- if File.exist?(BACKUP_PATH) then
11
- puts "rbconfig.rb seems to already have been fixed (see #{BACKUP_PATH})"
12
- exit
13
- end
14
10
  puts "This program will replace your rbconfig.rb , located in #{OLD_PATH}"
15
11
  puts "Press enter continue or ctrl-c to abort."
16
12
  gets
17
- require 'base64'
18
13
  require 'fileutils'
19
- enc = "CiMgVGhpcyBmaWxlIHdhcyBjcmVhdGVkIGJ5IG1rY29uZmlnLnJiIHdoZW4g
20
- cnVieSB3YXMgYnVpbHQuICBBbnkKIyBjaGFuZ2VzIG1hZGUgdG8gdGhpcyBm
21
- aWxlIHdpbGwgYmUgbG9zdCB0aGUgbmV4dCB0aW1lIHJ1YnkgaXMgYnVpbHQu
22
- Cgptb2R1bGUgQ29uZmlnCiAgUlVCWV9WRVJTSU9OID09ICIxLjguMiIgb3IK
23
- ICAgIHJhaXNlICJydWJ5IGxpYiB2ZXJzaW9uICgxLjguMikgZG9lc24ndCBt
24
- YXRjaCBleGVjdXRhYmxlIHZlcnNpb24gKCN7UlVCWV9WRVJTSU9OfSkiCgog
25
- IFRPUERJUiA9IEZpbGUuZGlybmFtZShfX0ZJTEVfXykuc3ViISglcicvbGli
26
- L3J1YnkvMVwuOC9wb3dlcnBjXC1kYXJ3aW44XC4wXFonLCAnJykKICBERVNU
27
- RElSID0gJycgdW5sZXNzIGRlZmluZWQ/IERFU1RESVIKICBDT05GSUcgPSB7
28
- fQogIENPTkZJR1siREVTVERJUiJdID0gREVTVERJUgogIENPTkZJR1sic3Jj
29
- ZGlyIl0gPSAiL1NvdXJjZUNhY2hlL3J1YnkvcnVieS0xOC9ydWJ5IgogIENP
30
- TkZJR1sicHJlZml4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mdldF9jcHUiXSA9ICJwb3dlcnBjIgogIENPTkZJR1sidGFy
65
- Z2V0X3ZlbmRvciJdID0gImFwcGxlIgogIENPTkZJR1sidGFyZ2V0X29zIl0g
66
- PSAiZGFyd2luOC4wIgogIENPTkZJR1siQ0MiXSA9ICJnY2MiCiAgQ09ORklH
67
- WyJhY19jdF9DQyJdID0gImdjYyIKICBDT05GSUdbIkNGTEFHUyJdID0gIiAt
68
- YXJjaCBwcGMgLWcgLU9zIC1waXBlIC1mbm8tY29tbW9uICAtYXJjaCBwcGMg
69
- LXBpcGUgLXBpcGUgLWZuby1jb21tb24iCiAgQ09ORklHWyJMREZMQUdTIl0g
70
- PSAiIC1hcmNoIHBwYyAgICAgICAgICAgICIKICBDT05GSUdbIkNQUEZMQUdT
71
- Il0gPSAiIgogIENPTkZJR1siT0JKRVhUIl0gPSAibyIKICBDT05GSUdbIkNQ
72
- UCJdID0gImdjYyAtRSIKICBDT05GSUdbIkVHUkVQIl0gPSAiZ3JlcCAtRSIK
73
- ICBDT05GSUdbIkdOVV9MRCJdID0gIm5vIgogIENPTkZJR1siQ1BQT1VURklM
74
- RSJdID0gIi1vIGNvbmZ0ZXN0LmkiCiAgQ09ORklHWyJPVVRGTEFHIl0gPSAi
75
- LW8gIgogIENPTkZJR1siWUFDQyJdID0gImJpc29uIC15IgogIENPTkZJR1si
76
- UkFOTElCIl0gPSAicmFubGliIgogIENPTkZJR1siYWNfY3RfUkFOTElCIl0g
77
- PSAicmFubGliIgogIENPTkZJR1siQVIiXSA9ICJhciIKICBDT05GSUdbImFj
78
- X2N0X0FSIl0gPSAiYXIiCiAgQ09ORklHWyJOTSJdID0gIiIKICBDT05GSUdb
79
- ImFjX2N0X05NIl0gPSAiIgogIENPTkZJR1siV0lORFJFUyJdID0gIiIKICBD
80
- T05GSUdbImFjX2N0X1dJTkRSRVMiXSA9ICIiCiAgQ09ORklHWyJETExXUkFQ
81
- Il0gPSAiIgogIENPTkZJR1siYWNfY3RfRExMV1JBUCJdID0gIiIKICBDT05G
82
- SUdbIkxOX1MiXSA9ICJsbiAtcyIKICBDT05GSUdbIlNFVF9NQUtFIl0gPSAi
83
- IgogIENPTkZJR1siTElCT0JKUyJdID0gIiIKICBDT05GSUdbIkFMTE9DQSJd
84
- ID0gIiIKICBDT05GSUdbIkRMREZMQUdTIl0gPSAiIgogIENPTkZJR1siQVJD
85
- SF9GTEFHIl0gPSAiIgogIENPTkZJR1siU1RBVElDIl0gPSAiIgogIENPTkZJ
86
- R1siQ0NETEZMQUdTIl0gPSAiIC1mbm8tY29tbW9uIgogIENPTkZJR1siTERT
87
- SEFSRUQiXSA9ICJjYyAkKFJDX0NGTEFHUykgLWR5bmFtaWMgLWJ1bmRsZSAt
88
- dW5kZWZpbmVkIHN1cHByZXNzIC1mbGF0X25hbWVzcGFjZSIKICBDT05GSUdb
89
- IkRMRVhUIl0gPSAiYnVuZGxlIgogIENPTkZJR1siRExFWFQyIl0gPSAiIgog
90
- IENPTkZJR1siTElCRVhUIl0gPSAiYSIKICBDT05GSUdbIkxJTktfU08iXSA9
91
- ICIiCiAgQ09ORklHWyJMSUJQQVRIRkxBRyJdID0gIiAtTFwiJXNcIiIKICBD
92
- T05GSUdbIlJQQVRIRkxBRyJdID0gIiIKICBDT05GSUdbIlRSWV9MSU5LIl0g
93
- PSAiIgogIENPTkZJR1siU1RSSVAiXSA9ICJzdHJpcCAtQSAtbiIKICBDT05G
94
- SUdbIkVYVFNUQVRJQyJdID0gIiIKICBDT05GSUdbInNldHVwIl0gPSAiU2V0
95
- dXAiCiAgQ09ORklHWyJNSU5JUlVCWSJdID0gIi4vbWluaXJ1YnkkKEVYRUVY
96
- VCkiCiAgQ09ORklHWyJQUkVQIl0gPSAiIgogIENPTkZJR1siQVJDSEZJTEUi
97
- XSA9ICIiCiAgQ09ORklHWyJSRE9DVEFSR0VUIl0gPSAiIgogIENPTkZJR1si
98
- WENGTEFHUyJdID0gIiIKICBDT05GSUdbIlhMREZMQUdTIl0gPSAiIC1MLiIK
99
- ICBDT05GSUdbIkxJQlJVQllfTERTSEFSRUQiXSA9ICJjYyAkKFJDX0NGTEFH
100
- UykgLWR5bmFtaWMgLWJ1bmRsZSAtdW5kZWZpbmVkIHN1cHByZXNzIC1mbGF0
101
- X25hbWVzcGFjZSIKICBDT05GSUdbIkxJQlJVQllfRExERkxBR1MiXSA9ICIi
102
- CiAgQ09ORklHWyJSVUJZX0lOU1RBTExfTkFNRSJdID0gInJ1YnkiCiAgQ09O
103
- RklHWyJydWJ5d19pbnN0YWxsX25hbWUiXSA9ICIiCiAgQ09ORklHWyJSVUJZ
104
- V19JTlNUQUxMX05BTUUiXSA9ICIiCiAgQ09ORklHWyJSVUJZX1NPX05BTUUi
105
- XSA9ICIkKFJVQllfSU5TVEFMTF9OQU1FKSIKICBDT05GSUdbIkxJQlJVQllf
106
- QSJdID0gImxpYiQoUlVCWV9TT19OQU1FKS1zdGF0aWMuYSIKICBDT05GSUdb
107
- IkxJQlJVQllfU08iXSA9ICJsaWIkKFJVQllfU09fTkFNRSkuc28uJChNQUpP
108
- UikuJChNSU5PUikuJChURUVOWSkiCiAgQ09ORklHWyJMSUJSVUJZX0FMSUFT
109
- RVMiXSA9ICJsaWIkKFJVQllfU09fTkFNRSkuc28iCiAgQ09ORklHWyJMSUJS
110
- VUJZIl0gPSAiJChMSUJSVUJZX0EpIgogIENPTkZJR1siTElCUlVCWUFSRyJd
111
- ID0gIiQoTElCUlVCWUFSR19TVEFUSUMpIgogIENPTkZJR1siTElCUlVCWUFS
112
- R19TVEFUSUMiXSA9ICIiCiAgQ09ORklHWyJMSUJSVUJZQVJHX1NIQVJFRCJd
113
- ID0gIiIKICBDT05GSUdbIlNPTElCUyJdID0gIiIKICBDT05GSUdbIkRMRExJ
114
- QlMiXSA9ICIiCiAgQ09ORklHWyJFTkFCTEVfU0hBUkVEIl0gPSAibm8iCiAg
115
- Q09ORklHWyJNQUlOTElCUyJdID0gIiIKICBDT05GSUdbIkNPTU1PTl9MSUJT
116
- Il0gPSAiIgogIENPTkZJR1siQ09NTU9OX01BQ1JPUyJdID0gIiIKICBDT05G
117
- SUdbIkNPTU1PTl9IRUFERVJTIl0gPSAiIgogIENPTkZJR1siRVhQT1JUX1BS
118
- RUZJWCJdID0gIiIKICBDT05GSUdbIk1BS0VGSUxFUyJdID0gIk1ha2VmaWxl
119
- IgogIENPTkZJR1siYXJjaCJdID0gInBvd2VycGMtZGFyd2luOC4wIgogIENP
120
- TkZJR1sic2l0ZWFyY2giXSA9ICJwb3dlcnBjLWRhcndpbjguMCIKICBDT05G
121
- SUdbInNpdGVkaXIiXSA9ICIkKHByZWZpeCkvbGliL3J1Ynkvc2l0ZV9ydWJ5
122
- IgogIENPTkZJR1siY29uZmlndXJlX2FyZ3MiXSA9ICInLS1wcmVmaXg9L3Vz
123
- cicgJy0tbWFuZGlyPS91c3Ivc2hhcmUvbWFuJyAnLS1pbmZvZGlyPS91c3Iv
124
- c2hhcmUvaW5mbycgJy0tZW5hYmxlLXB0aHJlYWQnICdDRkxBR1M9IC1hcmNo
125
- IHBwYyAtZyAtT3MgLXBpcGUgLWZuby1jb21tb24gIC1hcmNoIHBwYyAtcGlw
126
- ZScgJ0xERkxBR1M9IC1hcmNoIHBwYyAgICAgICAgICAgICciCiAgQ09ORklH
127
- WyJOUk9GRiJdID0gIi91c3IvYmluL25yb2ZmIgogIENPTkZJR1siTUFOVFlQ
128
- RSJdID0gImRvYyIKICBDT05GSUdbIkxUTElCT0JKUyJdID0gIiIKICBDT05G
129
- SUdbImFic19zcmNkaXIiXSA9ICIkKGFjX2Fic19zcmNkaXIpIgogIENPTkZJ
130
- R1siYWJzX3RvcF9zcmNkaXIiXSA9ICIkKGFjX2Fic190b3Bfc3JjZGlyKSIK
131
- ICBDT05GSUdbImJ1aWxkZGlyIl0gPSAiJChhY19idWlsZGRpcikiCiAgQ09O
132
- RklHWyJhYnNfYnVpbGRkaXIiXSA9ICIkKGFjX2Fic19idWlsZGRpcikiCiAg
133
- Q09ORklHWyJ0b3BfYnVpbGRkaXIiXSA9ICIkKGFjX3RvcF9idWlsZGRpciki
134
- CiAgQ09ORklHWyJhYnNfdG9wX2J1aWxkZGlyIl0gPSAiJChhY19hYnNfdG9w
135
- X2J1aWxkZGlyKSIKICBDT05GSUdbInJ1YnlfdmVyc2lvbiJdID0gIiQoTUFK
136
- T1IpLiQoTUlOT1IpIgogIENPTkZJR1sicnVieWxpYmRpciJdID0gIiQobGli
137
- ZGlyKS9ydWJ5LyQocnVieV92ZXJzaW9uKSIKICBDT05GSUdbImFyY2hkaXIi
138
- XSA9ICIkKHJ1YnlsaWJkaXIpLyQoYXJjaCkiCiAgQ09ORklHWyJzaXRlbGli
139
- ZGlyIl0gPSAiJChzaXRlZGlyKS8kKHJ1YnlfdmVyc2lvbikiCiAgQ09ORklH
140
- WyJzaXRlYXJjaGRpciJdID0gIiQoc2l0ZWxpYmRpcikvJChzaXRlYXJjaCki
141
- CiAgQ09ORklHWyJjb21waWxlX2RpciJdID0gIi9wcml2YXRlL3Zhci90bXAv
142
- cnVieS9ydWJ5LTE4Lm9ian4xNzIiCiAgTUFLRUZJTEVfQ09ORklHID0ge30K
143
- ICBDT05GSUcuZWFjaHt8ayx2fCBNQUtFRklMRV9DT05GSUdba10gPSB2LmR1
144
- cH0KICBkZWYgQ29uZmlnOjpleHBhbmQodmFsLCBjb25maWcgPSBDT05GSUcp
145
- CiAgICB2YWwuZ3N1YiEoL1wkXCR8XCRcKChbXigpXSspXCl8XCRceyhbXnt9
146
- XSspXH0vKSBkbyB8dmFyfAogICAgICBpZiAhKHYgPSAkMSB8fCAkMikKCSck
147
- JwogICAgICBlbHNpZiBrZXkgPSBjb25maWdbdl0KCWNvbmZpZ1t2XSA9IGZh
148
- bHNlCiAgICAgICAgQ29uZmlnOjpleHBhbmQoa2V5LCBjb25maWcpCgljb25m
149
- aWdbdl0gPSBrZXkKICAgICAgZWxzZQoJdmFyCiAgICAgIGVuZAogICAgZW5k
150
- CiAgICB2YWwKICBlbmQKICBDT05GSUcuZWFjaF92YWx1ZSBkbyB8dmFsfAog
151
- ICAgQ29uZmlnOjpleHBhbmQodmFsKQogIGVuZAplbmQKQ1JPU1NfQ09NUElM
152
- SU5HID0gbmlsIHVubGVzcyBkZWZpbmVkPyBDUk9TU19DT01QSUxJTkcK"
153
14
  unless File.stat(OLD_PATH).writable?
154
15
  puts "Can't write to file '#{OLD_PATH}'"
155
16
  puts "try running the command using `sudo fixrbconfig`"
@@ -157,9 +18,9 @@ unless File.stat(OLD_PATH).writable?
157
18
  end
158
19
  puts "Backing up original rbconfig.rb in #{BACKUP_PATH}"
159
20
  FileUtils.cp(OLD_PATH, BACKUP_PATH)
160
- rbconfig = Base64.decode64(enc)
21
+ rbconfig = File.read(File.join( File.dirname(File.dirname(__FILE__)), "usr/lib/ruby/1.8/powerpc-darwin8.0/rbconfig.rb"))
161
22
  File.open(OLD_PATH, "w") do |file|
162
- file.write(rbconfig)
23
+ file.write(rbconfig)
163
24
  end
164
25
  puts
165
26
  puts
@@ -7,149 +7,14 @@ end
7
7
 
8
8
  OLD_PATH="/usr/lib/ruby/1.8/powerpc-darwin8.0/rbconfig.rb"
9
9
  BACKUP_PATH="/usr/lib/ruby/1.8/powerpc-darwin8.0/rbconfig.rb.bak"
10
- if File.exist?(BACKUP_PATH) then
11
- puts "rbconfig.rb seems to already have been fixed (see #{BACKUP_PATH})"
12
- exit
13
- end
10
+ #if File.exist?(BACKUP_PATH) then
11
+ #puts "rbconfig.rb seems to already have been fixed (see #{BACKUP_PATH})"
12
+ #exit
13
+ #end
14
14
  puts "This program will replace your rbconfig.rb , located in #{OLD_PATH}"
15
15
  puts "Press enter continue or ctrl-c to abort."
16
16
  gets
17
- require 'base64'
18
17
  require 'fileutils'
19
- enc = "CiMgVGhpcyBmaWxlIHdhcyBjcmVhdGVkIGJ5IG1rY29uZmlnLnJiIHdoZW4g
20
- cnVieSB3YXMgYnVpbHQuICBBbnkKIyBjaGFuZ2VzIG1hZGUgdG8gdGhpcy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siTUFK
55
- T1IiXSA9ICIxIgogIENPTkZJR1siTUlOT1IiXSA9ICI4IgogIENPTkZJR1si
56
- VEVFTlkiXSA9ICIyIgogIENPTkZJR1siYnVpbGQiXSA9ICJwb3dlcnBjLWFw
57
- cGxlLWRhcndpbjguMCIKICBDT05GSUdbImJ1aWxkX2NwdSJdID0gInBvd2Vy
58
- cGMiCiAgQ09ORklHWyJidWlsZF92ZW5kb3IiXSA9ICJhcHBsZSIKICBDT05G
59
- SUdbImJ1aWxkX29zIl0gPSAiZGFyd2luOC4wIgogIENPTkZJR1siaG9zdCJd
60
- ID0gInBvd2VycGMtYXBwbGUtZGFyd2luOC4wIgogIENPTkZJR1siaG9zdF9j
61
- cHUiXSA9ICJwb3dlcnBjIgogIENPTkZJR1siaG9zdF92ZW5kb3IiXSA9ICJh
62
- cHBsZSIKICBDT05GSUdbImhvc3Rfb3MiXSA9ICJkYXJ3aW44LjAiCiAgQ09O
63
- RklHWyJ0YXJnZXQiXSA9ICJwb3dlcnBjLWFwcGxlLWRhcndpbjguMCIKICBD
64
- T05GSUdbInRhcmdldF9jcHUiXSA9ICJwb3dlcnBjIgogIENPTkZJR1sidGFy
65
- Z2V0X3ZlbmRvciJdID0gImFwcGxlIgogIENPTkZJR1sidGFyZ2V0X29zIl0g
66
- PSAiZGFyd2luOC4wIgogIENPTkZJR1siQ0MiXSA9ICJnY2MiCiAgQ09ORklH
67
- WyJhY19jdF9DQyJdID0gImdjYyIKICBDT05GSUdbIkNGTEFHUyJdID0gIiAt
68
- YXJjaCBwcGMgLWcgLU9zIC1waXBlIC1mbm8tY29tbW9uICAtYXJjaCBwcGMg
69
- LXBpcGUgLXBpcGUgLWZuby1jb21tb24iCiAgQ09ORklHWyJMREZMQUdTIl0g
70
- PSAiIC1hcmNoIHBwYyAgICAgICAgICAgICIKICBDT05GSUdbIkNQUEZMQUdT
71
- Il0gPSAiIgogIENPTkZJR1siT0JKRVhUIl0gPSAibyIKICBDT05GSUdbIkNQ
72
- UCJdID0gImdjYyAtRSIKICBDT05GSUdbIkVHUkVQIl0gPSAiZ3JlcCAtRSIK
73
- ICBDT05GSUdbIkdOVV9MRCJdID0gIm5vIgogIENPTkZJR1siQ1BQT1VURklM
74
- RSJdID0gIi1vIGNvbmZ0ZXN0LmkiCiAgQ09ORklHWyJPVVRGTEFHIl0gPSAi
75
- LW8gIgogIENPTkZJR1siWUFDQyJdID0gImJpc29uIC15IgogIENPTkZJR1si
76
- UkFOTElCIl0gPSAicmFubGliIgogIENPTkZJR1siYWNfY3RfUkFOTElCIl0g
77
- PSAicmFubGliIgogIENPTkZJR1siQVIiXSA9ICJhciIKICBDT05GSUdbImFj
78
- X2N0X0FSIl0gPSAiYXIiCiAgQ09ORklHWyJOTSJdID0gIiIKICBDT05GSUdb
79
- ImFjX2N0X05NIl0gPSAiIgogIENPTkZJR1siV0lORFJFUyJdID0gIiIKICBD
80
- T05GSUdbImFjX2N0X1dJTkRSRVMiXSA9ICIiCiAgQ09ORklHWyJETExXUkFQ
81
- Il0gPSAiIgogIENPTkZJR1siYWNfY3RfRExMV1JBUCJdID0gIiIKICBDT05G
82
- SUdbIkxOX1MiXSA9ICJsbiAtcyIKICBDT05GSUdbIlNFVF9NQUtFIl0gPSAi
83
- IgogIENPTkZJR1siTElCT0JKUyJdID0gIiIKICBDT05GSUdbIkFMTE9DQSJd
84
- ID0gIiIKICBDT05GSUdbIkRMREZMQUdTIl0gPSAiIgogIENPTkZJR1siQVJD
85
- SF9GTEFHIl0gPSAiIgogIENPTkZJR1siU1RBVElDIl0gPSAiIgogIENPTkZJ
86
- R1siQ0NETEZMQUdTIl0gPSAiIC1mbm8tY29tbW9uIgogIENPTkZJR1siTERT
87
- SEFSRUQiXSA9ICJjYyAkKFJDX0NGTEFHUykgLWR5bmFtaWMgLWJ1bmRsZSAt
88
- dW5kZWZpbmVkIHN1cHByZXNzIC1mbGF0X25hbWVzcGFjZSIKICBDT05GSUdb
89
- IkRMRVhUIl0gPSAiYnVuZGxlIgogIENPTkZJR1siRExFWFQyIl0gPSAiIgog
90
- IENPTkZJR1siTElCRVhUIl0gPSAiYSIKICBDT05GSUdbIkxJTktfU08iXSA9
91
- ICIiCiAgQ09ORklHWyJMSUJQQVRIRkxBRyJdID0gIiAtTFwiJXNcIiIKICBD
92
- T05GSUdbIlJQQVRIRkxBRyJdID0gIiIKICBDT05GSUdbIlRSWV9MSU5LIl0g
93
- PSAiIgogIENPTkZJR1siU1RSSVAiXSA9ICJzdHJpcCAtQSAtbiIKICBDT05G
94
- SUdbIkVYVFNUQVRJQyJdID0gIiIKICBDT05GSUdbInNldHVwIl0gPSAiU2V0
95
- dXAiCiAgQ09ORklHWyJNSU5JUlVCWSJdID0gIi4vbWluaXJ1YnkkKEVYRUVY
96
- VCkiCiAgQ09ORklHWyJQUkVQIl0gPSAiIgogIENPTkZJR1siQVJDSEZJTEUi
97
- XSA9ICIiCiAgQ09ORklHWyJSRE9DVEFSR0VUIl0gPSAiIgogIENPTkZJR1si
98
- WENGTEFHUyJdID0gIiIKICBDT05GSUdbIlhMREZMQUdTIl0gPSAiIC1MLiIK
99
- ICBDT05GSUdbIkxJQlJVQllfTERTSEFSRUQiXSA9ICJjYyAkKFJDX0NGTEFH
100
- UykgLWR5bmFtaWMgLWJ1bmRsZSAtdW5kZWZpbmVkIHN1cHByZXNzIC1mbGF0
101
- X25hbWVzcGFjZSIKICBDT05GSUdbIkxJQlJVQllfRExERkxBR1MiXSA9ICIi
102
- CiAgQ09ORklHWyJSVUJZX0lOU1RBTExfTkFNRSJdID0gInJ1YnkiCiAgQ09O
103
- RklHWyJydWJ5d19pbnN0YWxsX25hbWUiXSA9ICIiCiAgQ09ORklHWyJSVUJZ
104
- V19JTlNUQUxMX05BTUUiXSA9ICIiCiAgQ09ORklHWyJSVUJZX1NPX05BTUUi
105
- XSA9ICIkKFJVQllfSU5TVEFMTF9OQU1FKSIKICBDT05GSUdbIkxJQlJVQllf
106
- QSJdID0gImxpYiQoUlVCWV9TT19OQU1FKS1zdGF0aWMuYSIKICBDT05GSUdb
107
- IkxJQlJVQllfU08iXSA9ICJsaWIkKFJVQllfU09fTkFNRSkuc28uJChNQUpP
108
- UikuJChNSU5PUikuJChURUVOWSkiCiAgQ09ORklHWyJMSUJSVUJZX0FMSUFT
109
- RVMiXSA9ICJsaWIkKFJVQllfU09fTkFNRSkuc28iCiAgQ09ORklHWyJMSUJS
110
- VUJZIl0gPSAiJChMSUJSVUJZX0EpIgogIENPTkZJR1siTElCUlVCWUFSRyJd
111
- ID0gIiQoTElCUlVCWUFSR19TVEFUSUMpIgogIENPTkZJR1siTElCUlVCWUFS
112
- R19TVEFUSUMiXSA9ICIiCiAgQ09ORklHWyJMSUJSVUJZQVJHX1NIQVJFRCJd
113
- ID0gIiIKICBDT05GSUdbIlNPTElCUyJdID0gIiIKICBDT05GSUdbIkRMRExJ
114
- QlMiXSA9ICIiCiAgQ09ORklHWyJFTkFCTEVfU0hBUkVEIl0gPSAibm8iCiAg
115
- Q09ORklHWyJNQUlOTElCUyJdID0gIiIKICBDT05GSUdbIkNPTU1PTl9MSUJT
116
- Il0gPSAiIgogIENPTkZJR1siQ09NTU9OX01BQ1JPUyJdID0gIiIKICBDT05G
117
- SUdbIkNPTU1PTl9IRUFERVJTIl0gPSAiIgogIENPTkZJR1siRVhQT1JUX1BS
118
- RUZJWCJdID0gIiIKICBDT05GSUdbIk1BS0VGSUxFUyJdID0gIk1ha2VmaWxl
119
- IgogIENPTkZJR1siYXJjaCJdID0gInBvd2VycGMtZGFyd2luOC4wIgogIENP
120
- TkZJR1sic2l0ZWFyY2giXSA9ICJwb3dlcnBjLWRhcndpbjguMCIKICBDT05G
121
- SUdbInNpdGVkaXIiXSA9ICIkKHByZWZpeCkvbGliL3J1Ynkvc2l0ZV9ydWJ5
122
- IgogIENPTkZJR1siY29uZmlndXJlX2FyZ3MiXSA9ICInLS1wcmVmaXg9L3Vz
123
- cicgJy0tbWFuZGlyPS91c3Ivc2hhcmUvbWFuJyAnLS1pbmZvZGlyPS91c3Iv
124
- c2hhcmUvaW5mbycgJy0tZW5hYmxlLXB0aHJlYWQnICdDRkxBR1M9IC1hcmNo
125
- IHBwYyAtZyAtT3MgLXBpcGUgLWZuby1jb21tb24gIC1hcmNoIHBwYyAtcGlw
126
- ZScgJ0xERkxBR1M9IC1hcmNoIHBwYyAgICAgICAgICAgICciCiAgQ09ORklH
127
- WyJOUk9GRiJdID0gIi91c3IvYmluL25yb2ZmIgogIENPTkZJR1siTUFOVFlQ
128
- RSJdID0gImRvYyIKICBDT05GSUdbIkxUTElCT0JKUyJdID0gIiIKICBDT05G
129
- SUdbImFic19zcmNkaXIiXSA9ICIkKGFjX2Fic19zcmNkaXIpIgogIENPTkZJ
130
- R1siYWJzX3RvcF9zcmNkaXIiXSA9ICIkKGFjX2Fic190b3Bfc3JjZGlyKSIK
131
- ICBDT05GSUdbImJ1aWxkZGlyIl0gPSAiJChhY19idWlsZGRpcikiCiAgQ09O
132
- RklHWyJhYnNfYnVpbGRkaXIiXSA9ICIkKGFjX2Fic19idWlsZGRpcikiCiAg
133
- Q09ORklHWyJ0b3BfYnVpbGRkaXIiXSA9ICIkKGFjX3RvcF9idWlsZGRpciki
134
- CiAgQ09ORklHWyJhYnNfdG9wX2J1aWxkZGlyIl0gPSAiJChhY19hYnNfdG9w
135
- X2J1aWxkZGlyKSIKICBDT05GSUdbInJ1YnlfdmVyc2lvbiJdID0gIiQoTUFK
136
- T1IpLiQoTUlOT1IpIgogIENPTkZJR1sicnVieWxpYmRpciJdID0gIiQobGli
137
- ZGlyKS9ydWJ5LyQocnVieV92ZXJzaW9uKSIKICBDT05GSUdbImFyY2hkaXIi
138
- XSA9ICIkKHJ1YnlsaWJkaXIpLyQoYXJjaCkiCiAgQ09ORklHWyJzaXRlbGli
139
- ZGlyIl0gPSAiJChzaXRlZGlyKS8kKHJ1YnlfdmVyc2lvbikiCiAgQ09ORklH
140
- WyJzaXRlYXJjaGRpciJdID0gIiQoc2l0ZWxpYmRpcikvJChzaXRlYXJjaCki
141
- CiAgQ09ORklHWyJjb21waWxlX2RpciJdID0gIi9wcml2YXRlL3Zhci90bXAv
142
- cnVieS9ydWJ5LTE4Lm9ian4xNzIiCiAgTUFLRUZJTEVfQ09ORklHID0ge30K
143
- ICBDT05GSUcuZWFjaHt8ayx2fCBNQUtFRklMRV9DT05GSUdba10gPSB2LmR1
144
- cH0KICBkZWYgQ29uZmlnOjpleHBhbmQodmFsLCBjb25maWcgPSBDT05GSUcp
145
- CiAgICB2YWwuZ3N1YiEoL1wkXCR8XCRcKChbXigpXSspXCl8XCRceyhbXnt9
146
- XSspXH0vKSBkbyB8dmFyfAogICAgICBpZiAhKHYgPSAkMSB8fCAkMikKCSck
147
- JwogICAgICBlbHNpZiBrZXkgPSBjb25maWdbdl0KCWNvbmZpZ1t2XSA9IGZh
148
- bHNlCiAgICAgICAgQ29uZmlnOjpleHBhbmQoa2V5LCBjb25maWcpCgljb25m
149
- aWdbdl0gPSBrZXkKICAgICAgZWxzZQoJdmFyCiAgICAgIGVuZAogICAgZW5k
150
- CiAgICB2YWwKICBlbmQKICBDT05GSUcuZWFjaF92YWx1ZSBkbyB8dmFsfAog
151
- ICAgQ29uZmlnOjpleHBhbmQodmFsKQogIGVuZAplbmQKQ1JPU1NfQ09NUElM
152
- SU5HID0gbmlsIHVubGVzcyBkZWZpbmVkPyBDUk9TU19DT01QSUxJTkcK"
153
18
  unless File.stat(OLD_PATH).writable?
154
19
  puts "Can't write to file '#{OLD_PATH}'"
155
20
  puts "try running the command using `sudo fixrbconfig`"
@@ -157,10 +22,12 @@ unless File.stat(OLD_PATH).writable?
157
22
  end
158
23
  puts "Backing up original rbconfig.rb in #{BACKUP_PATH}"
159
24
  FileUtils.cp(OLD_PATH, BACKUP_PATH)
160
- rbconfig = Base64.decode64(enc)
161
- File.open(OLD_PATH, "w") do |file|
162
- file.write(rbconfig)
163
- end
25
+ rbconfig = File.read(File.join( File.dirname(File.dirname(__FILE__)), "usr/lib/ruby/1.8/powerpc-darwin8.0/rbconfig.rb"))
26
+ #File.open(OLD_PATH, "w") do |file|
27
+ #file.write(rbconfig)
28
+ puts(rbconfig)
29
+ #end
164
30
  puts
165
31
  puts
166
32
  puts "All Done! You should be able to compile C extensions now!"
33
+ puts
@@ -0,0 +1,167 @@
1
+
2
+ # This file was created by mkconfig.rb when ruby was built. Any
3
+ # changes made to this file will be lost the next time ruby is built.
4
+
5
+ module Config
6
+ RUBY_VERSION == "1.8.2" or
7
+ raise "ruby lib version (1.8.2) doesn't match executable version (#{RUBY_VERSION})"
8
+
9
+ TOPDIR = File.dirname(__FILE__).sub!(%r'/lib/ruby/1\.8/powerpc\-darwin8\.0\Z', '')
10
+ DESTDIR = '' unless defined? DESTDIR
11
+ CONFIG = {}
12
+ CONFIG["DESTDIR"] = DESTDIR
13
+ CONFIG["srcdir"] = "/SourceCache/ruby/ruby-18/ruby"
14
+ CONFIG["prefix"] = (TOPDIR || DESTDIR + "/usr")
15
+ CONFIG["ruby_install_name"] = "ruby"
16
+ CONFIG["EXEEXT"] = ""
17
+ CONFIG["SHELL"] = "/bin/sh"
18
+ CONFIG["PATH_SEPARATOR"] = ":"
19
+ CONFIG["PACKAGE_NAME"] = ""
20
+ CONFIG["PACKAGE_TARNAME"] = ""
21
+ CONFIG["PACKAGE_VERSION"] = ""
22
+ CONFIG["PACKAGE_STRING"] = ""
23
+ CONFIG["PACKAGE_BUGREPORT"] = ""
24
+ CONFIG["exec_prefix"] = "$(prefix)"
25
+ CONFIG["bindir"] = "$(exec_prefix)/bin"
26
+ CONFIG["sbindir"] = "$(exec_prefix)/sbin"
27
+ CONFIG["libexecdir"] = "$(exec_prefix)/libexec"
28
+ CONFIG["datadir"] = "$(prefix)/share"
29
+ CONFIG["sysconfdir"] = "$(prefix)/etc"
30
+ CONFIG["sharedstatedir"] = "$(prefix)/com"
31
+ CONFIG["localstatedir"] = "$(prefix)/var"
32
+ CONFIG["libdir"] = "$(exec_prefix)/lib"
33
+ CONFIG["includedir"] = "$(prefix)/include"
34
+ CONFIG["oldincludedir"] = "/usr/include"
35
+ CONFIG["infodir"] = "$(DESTDIR)/usr/share/info"
36
+ CONFIG["mandir"] = "$(DESTDIR)/usr/share/man"
37
+ CONFIG["build_alias"] = ""
38
+ CONFIG["host_alias"] = ""
39
+ CONFIG["target_alias"] = ""
40
+ CONFIG["ECHO_C"] = ""
41
+ CONFIG["ECHO_N"] = "-n"
42
+ CONFIG["ECHO_T"] = ""
43
+ CONFIG["LIBS"] = "-lpthread -ldl -lobjc "
44
+ CONFIG["MAJOR"] = "1"
45
+ CONFIG["MINOR"] = "8"
46
+ CONFIG["TEENY"] = "2"
47
+ CONFIG["build"] = "powerpc-apple-darwin8.0"
48
+ CONFIG["build_cpu"] = "powerpc"
49
+ CONFIG["build_vendor"] = "apple"
50
+ CONFIG["build_os"] = "darwin8.0"
51
+ CONFIG["host"] = "powerpc-apple-darwin8.0"
52
+ CONFIG["host_cpu"] = "powerpc"
53
+ CONFIG["host_vendor"] = "apple"
54
+ CONFIG["host_os"] = "darwin8.0"
55
+ CONFIG["target"] = "powerpc-apple-darwin8.0"
56
+ CONFIG["target_cpu"] = "powerpc"
57
+ CONFIG["target_vendor"] = "apple"
58
+ CONFIG["target_os"] = "darwin8.0"
59
+ CONFIG["CC"] = "gcc"
60
+ CONFIG["ac_ct_CC"] = "gcc"
61
+ CONFIG["CFLAGS"] = " -arch ppc -g -Os -pipe -fno-common -arch ppc -pipe -pipe -fno-common"
62
+ CONFIG["LDFLAGS"] = " -arch ppc "
63
+ CONFIG["CPPFLAGS"] = ""
64
+ CONFIG["OBJEXT"] = "o"
65
+ CONFIG["CPP"] = "gcc -E"
66
+ CONFIG["EGREP"] = "grep -E"
67
+ CONFIG["GNU_LD"] = "no"
68
+ CONFIG["CPPOUTFILE"] = "-o conftest.i"
69
+ CONFIG["OUTFLAG"] = "-o "
70
+ CONFIG["YACC"] = "bison -y"
71
+ CONFIG["RANLIB"] = "ranlib"
72
+ CONFIG["ac_ct_RANLIB"] = "ranlib"
73
+ CONFIG["AR"] = "ar"
74
+ CONFIG["ac_ct_AR"] = "ar"
75
+ CONFIG["NM"] = ""
76
+ CONFIG["ac_ct_NM"] = ""
77
+ CONFIG["WINDRES"] = ""
78
+ CONFIG["ac_ct_WINDRES"] = ""
79
+ CONFIG["DLLWRAP"] = ""
80
+ CONFIG["ac_ct_DLLWRAP"] = ""
81
+ CONFIG["LN_S"] = "ln -s"
82
+ CONFIG["SET_MAKE"] = ""
83
+ CONFIG["LIBOBJS"] = ""
84
+ CONFIG["ALLOCA"] = ""
85
+ CONFIG["DLDFLAGS"] = ""
86
+ CONFIG["ARCH_FLAG"] = ""
87
+ CONFIG["STATIC"] = ""
88
+ CONFIG["CCDLFLAGS"] = " -fno-common"
89
+ CONFIG["LDSHARED"] = "cc -dynamic -bundle -undefined suppress -flat_namespace"
90
+ CONFIG["DLEXT"] = "bundle"
91
+ CONFIG["DLEXT2"] = ""
92
+ CONFIG["LIBEXT"] = "a"
93
+ CONFIG["LINK_SO"] = ""
94
+ CONFIG["LIBPATHFLAG"] = " -L\"%s\""
95
+ CONFIG["RPATHFLAG"] = ""
96
+ CONFIG["TRY_LINK"] = ""
97
+ CONFIG["STRIP"] = "strip -A -n"
98
+ CONFIG["EXTSTATIC"] = ""
99
+ CONFIG["setup"] = "Setup"
100
+ CONFIG["MINIRUBY"] = "./miniruby$(EXEEXT)"
101
+ CONFIG["PREP"] = ""
102
+ CONFIG["ARCHFILE"] = ""
103
+ CONFIG["RDOCTARGET"] = ""
104
+ CONFIG["XCFLAGS"] = ""
105
+ CONFIG["XLDFLAGS"] = " -L."
106
+ CONFIG["LIBRUBY_LDSHARED"] = "cc -dynamic -bundle -undefined suppress -flat_namespace"
107
+ CONFIG["LIBRUBY_DLDFLAGS"] = ""
108
+ CONFIG["RUBY_INSTALL_NAME"] = "ruby"
109
+ CONFIG["rubyw_install_name"] = ""
110
+ CONFIG["RUBYW_INSTALL_NAME"] = ""
111
+ CONFIG["RUBY_SO_NAME"] = "$(RUBY_INSTALL_NAME)"
112
+ CONFIG["LIBRUBY_A"] = "lib$(RUBY_SO_NAME)-static.a"
113
+ CONFIG["LIBRUBY_SO"] = "lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR).$(TEENY)"
114
+ CONFIG["LIBRUBY_ALIASES"] = "lib$(RUBY_SO_NAME).so"
115
+ CONFIG["LIBRUBY"] = "$(LIBRUBY_A)"
116
+ CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_SHARED)"
117
+ CONFIG["LIBRUBYARG_STATIC"] = ""
118
+ CONFIG["LIBRUBYARG_SHARED"] = "-lruby"
119
+ CONFIG["SOLIBS"] = ""
120
+ CONFIG["DLDLIBS"] = ""
121
+ CONFIG["ENABLE_SHARED"] = "no"
122
+ CONFIG["MAINLIBS"] = ""
123
+ CONFIG["COMMON_LIBS"] = ""
124
+ CONFIG["COMMON_MACROS"] = ""
125
+ CONFIG["COMMON_HEADERS"] = ""
126
+ CONFIG["EXPORT_PREFIX"] = ""
127
+ CONFIG["MAKEFILES"] = "Makefile"
128
+ CONFIG["arch"] = "powerpc-darwin8.0"
129
+ CONFIG["sitearch"] = "powerpc-darwin8.0"
130
+ CONFIG["sitedir"] = "$(prefix)/lib/ruby/site_ruby"
131
+ CONFIG["configure_args"] = "'--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-pthread' 'CFLAGS= -arch ppc -g -Os -pipe -fno-common -arch ppc -pipe' 'LDFLAGS= -arch ppc '"
132
+ CONFIG["NROFF"] = "/usr/bin/nroff"
133
+ CONFIG["MANTYPE"] = "doc"
134
+ CONFIG["LTLIBOBJS"] = ""
135
+ CONFIG["abs_srcdir"] = "$(ac_abs_srcdir)"
136
+ CONFIG["abs_top_srcdir"] = "$(ac_abs_top_srcdir)"
137
+ CONFIG["builddir"] = "$(ac_builddir)"
138
+ CONFIG["abs_builddir"] = "$(ac_abs_builddir)"
139
+ CONFIG["top_builddir"] = "$(ac_top_builddir)"
140
+ CONFIG["abs_top_builddir"] = "$(ac_abs_top_builddir)"
141
+ CONFIG["ruby_version"] = "$(MAJOR).$(MINOR)"
142
+ CONFIG["rubylibdir"] = "$(libdir)/ruby/$(ruby_version)"
143
+ CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
144
+ CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"
145
+ CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)"
146
+ CONFIG["compile_dir"] = "/private/var/tmp/ruby/ruby-18.obj~172"
147
+ MAKEFILE_CONFIG = {}
148
+ CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
149
+ def Config::expand(val, config = CONFIG)
150
+ val.gsub!(/\$\$|\$\(([^()]+)\)|\$\{([^{}]+)\}/) do |var|
151
+ if !(v = $1 || $2)
152
+ '$'
153
+ elsif key = config[v]
154
+ config[v] = false
155
+ Config::expand(key, config)
156
+ config[v] = key
157
+ else
158
+ var
159
+ end
160
+ end
161
+ val
162
+ end
163
+ CONFIG.each_value do |val|
164
+ Config::expand(val)
165
+ end
166
+ end
167
+ CROSS_COMPILING = nil unless defined? CROSS_COMPILING
@@ -0,0 +1,167 @@
1
+
2
+ # This file was created by mkconfig.rb when ruby was built. Any
3
+ # changes made to this file will be lost the next time ruby is built.
4
+
5
+ module Config
6
+ RUBY_VERSION == "1.8.2" or
7
+ raise "ruby lib version (1.8.2) doesn't match executable version (#{RUBY_VERSION})"
8
+
9
+ TOPDIR = File.dirname(__FILE__).sub!(%r'/lib/ruby/1\.8/powerpc\-darwin8\.0\Z', '')
10
+ DESTDIR = '' unless defined? DESTDIR
11
+ CONFIG = {}
12
+ CONFIG["DESTDIR"] = DESTDIR
13
+ CONFIG["srcdir"] = "/SourceCache/ruby/ruby-18/ruby"
14
+ CONFIG["prefix"] = (TOPDIR || DESTDIR + "/usr")
15
+ CONFIG["ruby_install_name"] = "ruby"
16
+ CONFIG["EXEEXT"] = ""
17
+ CONFIG["SHELL"] = "/bin/sh"
18
+ CONFIG["PATH_SEPARATOR"] = ":"
19
+ CONFIG["PACKAGE_NAME"] = ""
20
+ CONFIG["PACKAGE_TARNAME"] = ""
21
+ CONFIG["PACKAGE_VERSION"] = ""
22
+ CONFIG["PACKAGE_STRING"] = ""
23
+ CONFIG["PACKAGE_BUGREPORT"] = ""
24
+ CONFIG["exec_prefix"] = "$(prefix)"
25
+ CONFIG["bindir"] = "$(exec_prefix)/bin"
26
+ CONFIG["sbindir"] = "$(exec_prefix)/sbin"
27
+ CONFIG["libexecdir"] = "$(exec_prefix)/libexec"
28
+ CONFIG["datadir"] = "$(prefix)/share"
29
+ CONFIG["sysconfdir"] = "$(prefix)/etc"
30
+ CONFIG["sharedstatedir"] = "$(prefix)/com"
31
+ CONFIG["localstatedir"] = "$(prefix)/var"
32
+ CONFIG["libdir"] = "$(exec_prefix)/lib"
33
+ CONFIG["includedir"] = "$(prefix)/include"
34
+ CONFIG["oldincludedir"] = "/usr/include"
35
+ CONFIG["infodir"] = "$(DESTDIR)/usr/share/info"
36
+ CONFIG["mandir"] = "$(DESTDIR)/usr/share/man"
37
+ CONFIG["build_alias"] = ""
38
+ CONFIG["host_alias"] = ""
39
+ CONFIG["target_alias"] = ""
40
+ CONFIG["ECHO_C"] = ""
41
+ CONFIG["ECHO_N"] = "-n"
42
+ CONFIG["ECHO_T"] = ""
43
+ CONFIG["LIBS"] = "-lpthread -ldl -lobjc "
44
+ CONFIG["MAJOR"] = "1"
45
+ CONFIG["MINOR"] = "8"
46
+ CONFIG["TEENY"] = "2"
47
+ CONFIG["build"] = "powerpc-apple-darwin8.0"
48
+ CONFIG["build_cpu"] = "powerpc"
49
+ CONFIG["build_vendor"] = "apple"
50
+ CONFIG["build_os"] = "darwin8.0"
51
+ CONFIG["host"] = "powerpc-apple-darwin8.0"
52
+ CONFIG["host_cpu"] = "powerpc"
53
+ CONFIG["host_vendor"] = "apple"
54
+ CONFIG["host_os"] = "darwin8.0"
55
+ CONFIG["target"] = "powerpc-apple-darwin8.0"
56
+ CONFIG["target_cpu"] = "powerpc"
57
+ CONFIG["target_vendor"] = "apple"
58
+ CONFIG["target_os"] = "darwin8.0"
59
+ CONFIG["CC"] = "gcc"
60
+ CONFIG["ac_ct_CC"] = "gcc"
61
+ CONFIG["CFLAGS"] = " -arch ppc -g -Os -pipe -fno-common -arch ppc -pipe -pipe -fno-common"
62
+ CONFIG["LDFLAGS"] = " -arch ppc "
63
+ CONFIG["CPPFLAGS"] = ""
64
+ CONFIG["OBJEXT"] = "o"
65
+ CONFIG["CPP"] = "gcc -E"
66
+ CONFIG["EGREP"] = "grep -E"
67
+ CONFIG["GNU_LD"] = "no"
68
+ CONFIG["CPPOUTFILE"] = "-o conftest.i"
69
+ CONFIG["OUTFLAG"] = "-o "
70
+ CONFIG["YACC"] = "bison -y"
71
+ CONFIG["RANLIB"] = "ranlib"
72
+ CONFIG["ac_ct_RANLIB"] = "ranlib"
73
+ CONFIG["AR"] = "ar"
74
+ CONFIG["ac_ct_AR"] = "ar"
75
+ CONFIG["NM"] = ""
76
+ CONFIG["ac_ct_NM"] = ""
77
+ CONFIG["WINDRES"] = ""
78
+ CONFIG["ac_ct_WINDRES"] = ""
79
+ CONFIG["DLLWRAP"] = ""
80
+ CONFIG["ac_ct_DLLWRAP"] = ""
81
+ CONFIG["LN_S"] = "ln -s"
82
+ CONFIG["SET_MAKE"] = ""
83
+ CONFIG["LIBOBJS"] = ""
84
+ CONFIG["ALLOCA"] = ""
85
+ CONFIG["DLDFLAGS"] = ""
86
+ CONFIG["ARCH_FLAG"] = ""
87
+ CONFIG["STATIC"] = ""
88
+ CONFIG["CCDLFLAGS"] = " -fno-common"
89
+ CONFIG["LDSHARED"] = "cc -dynamic -bundle -undefined suppress -flat_namespace"
90
+ CONFIG["DLEXT"] = "bundle"
91
+ CONFIG["DLEXT2"] = ""
92
+ CONFIG["LIBEXT"] = "a"
93
+ CONFIG["LINK_SO"] = ""
94
+ CONFIG["LIBPATHFLAG"] = " -L\"%s\""
95
+ CONFIG["RPATHFLAG"] = ""
96
+ CONFIG["TRY_LINK"] = ""
97
+ CONFIG["STRIP"] = "strip -A -n"
98
+ CONFIG["EXTSTATIC"] = ""
99
+ CONFIG["setup"] = "Setup"
100
+ CONFIG["MINIRUBY"] = "./miniruby$(EXEEXT)"
101
+ CONFIG["PREP"] = ""
102
+ CONFIG["ARCHFILE"] = ""
103
+ CONFIG["RDOCTARGET"] = ""
104
+ CONFIG["XCFLAGS"] = ""
105
+ CONFIG["XLDFLAGS"] = " -L."
106
+ CONFIG["LIBRUBY_LDSHARED"] = "cc -dynamic -bundle -undefined suppress -flat_namespace"
107
+ CONFIG["LIBRUBY_DLDFLAGS"] = ""
108
+ CONFIG["RUBY_INSTALL_NAME"] = "ruby"
109
+ CONFIG["rubyw_install_name"] = ""
110
+ CONFIG["RUBYW_INSTALL_NAME"] = ""
111
+ CONFIG["RUBY_SO_NAME"] = "$(RUBY_INSTALL_NAME)"
112
+ CONFIG["LIBRUBY_A"] = "lib$(RUBY_SO_NAME)-static.a"
113
+ CONFIG["LIBRUBY_SO"] = "lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR).$(TEENY)"
114
+ CONFIG["LIBRUBY_ALIASES"] = "lib$(RUBY_SO_NAME).so"
115
+ CONFIG["LIBRUBY"] = "$(LIBRUBY_A)"
116
+ CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_SHARED)"
117
+ CONFIG["LIBRUBYARG_STATIC"] = ""
118
+ CONFIG["LIBRUBYARG_SHARED"] = "-lruby"
119
+ CONFIG["SOLIBS"] = ""
120
+ CONFIG["DLDLIBS"] = ""
121
+ CONFIG["ENABLE_SHARED"] = "no"
122
+ CONFIG["MAINLIBS"] = ""
123
+ CONFIG["COMMON_LIBS"] = ""
124
+ CONFIG["COMMON_MACROS"] = ""
125
+ CONFIG["COMMON_HEADERS"] = ""
126
+ CONFIG["EXPORT_PREFIX"] = ""
127
+ CONFIG["MAKEFILES"] = "Makefile"
128
+ CONFIG["arch"] = "powerpc-darwin8.0"
129
+ CONFIG["sitearch"] = "powerpc-darwin8.0"
130
+ CONFIG["sitedir"] = "$(prefix)/lib/ruby/site_ruby"
131
+ CONFIG["configure_args"] = "'--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-pthread' 'CFLAGS= -arch ppc -g -Os -pipe -fno-common -arch ppc -pipe' 'LDFLAGS= -arch ppc '"
132
+ CONFIG["NROFF"] = "/usr/bin/nroff"
133
+ CONFIG["MANTYPE"] = "doc"
134
+ CONFIG["LTLIBOBJS"] = ""
135
+ CONFIG["abs_srcdir"] = "$(ac_abs_srcdir)"
136
+ CONFIG["abs_top_srcdir"] = "$(ac_abs_top_srcdir)"
137
+ CONFIG["builddir"] = "$(ac_builddir)"
138
+ CONFIG["abs_builddir"] = "$(ac_abs_builddir)"
139
+ CONFIG["top_builddir"] = "$(ac_top_builddir)"
140
+ CONFIG["abs_top_builddir"] = "$(ac_abs_top_builddir)"
141
+ CONFIG["ruby_version"] = "$(MAJOR).$(MINOR)"
142
+ CONFIG["rubylibdir"] = "$(libdir)/ruby/$(ruby_version)"
143
+ CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
144
+ CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"
145
+ CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)"
146
+ CONFIG["compile_dir"] = "/private/var/tmp/ruby/ruby-18.obj~172"
147
+ MAKEFILE_CONFIG = {}
148
+ CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
149
+ def Config::expand(val, config = CONFIG)
150
+ val.gsub!(/\$\$|\$\(([^()]+)\)|\$\{([^{}]+)\}/) do |var|
151
+ if !(v = $1 || $2)
152
+ '$'
153
+ elsif key = config[v]
154
+ config[v] = false
155
+ Config::expand(key, config)
156
+ config[v] = key
157
+ else
158
+ var
159
+ end
160
+ end
161
+ val
162
+ end
163
+ CONFIG.each_value do |val|
164
+ Config::expand(val)
165
+ end
166
+ end
167
+ CROSS_COMPILING = nil unless defined? CROSS_COMPILING
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.10
2
+ rubygems_version: 0.8.10.4
3
3
  specification_version: 1
4
4
  name: fixrbconfig
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.0"
7
- date: 2005-04-29
6
+ version: "1.2"
7
+ date: 2005-07-01 00:00:00 -04:00
8
8
  summary: "Fixes the rbconfig.rb that ships with Mac OS X 10.4 (Tiger), which makes it
9
9
  impossible to compile C extensions"
10
10
  require_paths:
@@ -25,11 +25,19 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
25
25
  version: 0.0.0
26
26
  version:
27
27
  platform: ruby
28
+ signing_key:
29
+ cert_chain:
28
30
  authors:
29
31
  - Chad Fowler
30
32
  files:
31
33
  - bin/fixrbconfig
32
34
  - bin/fixrbconfig~
35
+ - usr/lib
36
+ - usr/lib/ruby
37
+ - usr/lib/ruby/1.8
38
+ - usr/lib/ruby/1.8/powerpc-darwin8.0
39
+ - usr/lib/ruby/1.8/powerpc-darwin8.0/rbconfig.rb
40
+ - usr/lib/ruby/1.8/powerpc-darwin8.0/rbconfig.rb~
33
41
  test_files: []
34
42
  rdoc_options: []
35
43
  extra_rdoc_files: []