passenger 2.2.5 → 2.2.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of passenger might be problematic. Click here for more details.

Files changed (100) hide show
  1. data/NEWS +31 -1
  2. data/bin/passenger-install-apache2-module +7 -1
  3. data/bin/passenger-install-nginx-module +1 -1
  4. data/bin/passenger-memory-stats +3 -3
  5. data/doc/Users guide Apache.html +112 -13
  6. data/doc/Users guide Apache.txt +70 -9
  7. data/doc/Users guide Nginx.html +1 -1
  8. data/doc/cxxapi/Bucket_8h-source.html +1 -1
  9. data/doc/cxxapi/Configuration_8h-source.html +1 -1
  10. data/doc/cxxapi/DirectoryMapper_8h-source.html +7 -7
  11. data/doc/cxxapi/Hooks_8h-source.html +1 -1
  12. data/doc/cxxapi/annotated.html +1 -1
  13. data/doc/cxxapi/classHooks-members.html +1 -1
  14. data/doc/cxxapi/classHooks.html +1 -1
  15. data/doc/cxxapi/classPassenger_1_1DirectoryMapper-members.html +1 -1
  16. data/doc/cxxapi/classPassenger_1_1DirectoryMapper.html +1 -1
  17. data/doc/cxxapi/classes.html +1 -1
  18. data/doc/cxxapi/definitions_8h-source.html +1 -1
  19. data/doc/cxxapi/files.html +1 -1
  20. data/doc/cxxapi/functions.html +1 -1
  21. data/doc/cxxapi/functions_func.html +1 -1
  22. data/doc/cxxapi/graph_legend.html +1 -1
  23. data/doc/cxxapi/group__Configuration.html +1 -1
  24. data/doc/cxxapi/group__Core.html +1 -1
  25. data/doc/cxxapi/group__Hooks.html +1 -1
  26. data/doc/cxxapi/group__Support.html +1 -1
  27. data/doc/cxxapi/main.html +1 -1
  28. data/doc/cxxapi/modules.html +1 -1
  29. data/doc/rdoc/classes/ConditionVariable.html +59 -59
  30. data/doc/rdoc/classes/Exception.html +11 -11
  31. data/doc/rdoc/classes/GC.html +4 -4
  32. data/doc/rdoc/classes/IO.html +14 -14
  33. data/doc/rdoc/classes/PhusionPassenger.html +13 -13
  34. data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +8 -8
  35. data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +26 -26
  36. data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +98 -98
  37. data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +61 -61
  38. data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +8 -8
  39. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess.html +32 -32
  40. data/doc/rdoc/classes/PhusionPassenger/Application.html +14 -14
  41. data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +12 -12
  42. data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +4 -4
  43. data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +12 -12
  44. data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +5 -5
  45. data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +42 -42
  46. data/doc/rdoc/classes/PhusionPassenger/NativeSupport.html +24 -24
  47. data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +8 -8
  48. data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +8 -8
  49. data/doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner.html +62 -66
  50. data/doc/rdoc/classes/PhusionPassenger/Railz/CGIFixed.html +23 -23
  51. data/doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner.html +30 -30
  52. data/doc/rdoc/classes/PhusionPassenger/Railz/RequestHandler.html +8 -8
  53. data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +23 -23
  54. data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +4 -4
  55. data/doc/rdoc/classes/PhusionPassenger/Utils.html +384 -384
  56. data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +36 -36
  57. data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +4 -4
  58. data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +7 -7
  59. data/doc/rdoc/classes/PlatformInfo.html +234 -200
  60. data/doc/rdoc/classes/RakeExtensions.html +4 -4
  61. data/doc/rdoc/classes/Signal.html +27 -27
  62. data/doc/rdoc/created.rid +1 -1
  63. data/doc/rdoc/files/DEVELOPERS_TXT.html +1 -1
  64. data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +1 -1
  65. data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +1 -1
  66. data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +1 -1
  67. data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +1 -1
  68. data/doc/rdoc/files/lib/phusion_passenger/admin_tools/control_process_rb.html +1 -1
  69. data/doc/rdoc/files/lib/phusion_passenger/application_rb.html +1 -1
  70. data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +1 -1
  71. data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +1 -1
  72. data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +1 -1
  73. data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +1 -1
  74. data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +1 -1
  75. data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +1 -1
  76. data/doc/rdoc/files/lib/phusion_passenger/railz/application_spawner_rb.html +1 -3
  77. data/doc/rdoc/files/lib/phusion_passenger/railz/framework_spawner_rb.html +1 -1
  78. data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +1 -1
  79. data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +10 -9
  80. data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +1 -1
  81. data/doc/rdoc/fr_method_index.html +148 -147
  82. data/ext/apache2/DirectoryMapper.h +6 -6
  83. data/ext/common/Utils.cpp +31 -5
  84. data/ext/common/Version.h +1 -1
  85. data/ext/nginx/Configuration.c +4 -8
  86. data/ext/nginx/Configuration.h +2 -2
  87. data/ext/nginx/ContentHandler.c +11 -7
  88. data/ext/oxt/thread.hpp +12 -11
  89. data/lib/phusion_passenger/constants.rb +1 -1
  90. data/lib/phusion_passenger/dependencies.rb +40 -25
  91. data/lib/phusion_passenger/platform_info.rb +28 -11
  92. data/lib/phusion_passenger/railz/application_spawner.rb +3 -7
  93. data/lib/phusion_passenger/templates/apache2/deployment_example.txt.erb +7 -4
  94. data/lib/phusion_passenger/utils.rb +1 -0
  95. data/test/integration_tests/apache2_tests.rb +16 -0
  96. data/test/integration_tests/nginx_tests.rb +46 -0
  97. data/test/stub/MessageServer.dSYM/Contents/Info.plist +25 -0
  98. data/test/stub/MessageServer.dSYM/Contents/Resources/DWARF/MessageServer +0 -0
  99. data/test/stub/wsgi/passenger_wsgi.pyc +0 -0
  100. metadata +4 -2
@@ -80,10 +80,10 @@ Object
80
80
 
81
81
  <div class="sectiontitle">Methods</div>
82
82
  <ul>
83
- <li><a href="#M000095">done!</a></li>
84
- <li><a href="#M000096">method_missing</a></li>
85
- <li><a href="#M000094">new</a></li>
86
- <li><a href="#M000097">respond_to?</a></li>
83
+ <li><a href="#M000096">done!</a></li>
84
+ <li><a href="#M000097">method_missing</a></li>
85
+ <li><a href="#M000095">new</a></li>
86
+ <li><a href="#M000098">respond_to?</a></li>
87
87
  </ul>
88
88
 
89
89
 
@@ -94,17 +94,17 @@ Object
94
94
  <div class="sectiontitle">Public Class methods</div>
95
95
  <div class="method">
96
96
  <div class="title">
97
- <a name="M000094"></a><b>new</b>(sink)
97
+ <a name="M000095"></a><b>new</b>(sink)
98
98
  </div>
99
99
  <div class="sourcecode">
100
- <p class="source-link">[ <a href="javascript:toggleSource('M000094_source')" id="l_M000094_source">show source</a> ]</p>
101
- <div id="M000094_source" class="dyn-source">
100
+ <p class="source-link">[ <a href="javascript:toggleSource('M000095_source')" id="l_M000095_source">show source</a> ]</p>
101
+ <div id="M000095_source" class="dyn-source">
102
102
  <pre>
103
- <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 205</span>
104
- 205: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">sink</span>)
105
- 206: <span class="ruby-ivar">@sink</span> = <span class="ruby-identifier">sink</span> <span class="ruby-operator">||</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-value str">&quot;/dev/null&quot;</span>, <span class="ruby-value str">&quot;w&quot;</span>)
106
- 207: <span class="ruby-ivar">@buffer</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>
107
- 208: <span class="ruby-keyword kw">end</span>
103
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 206</span>
104
+ 206: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">sink</span>)
105
+ 207: <span class="ruby-ivar">@sink</span> = <span class="ruby-identifier">sink</span> <span class="ruby-operator">||</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-value str">&quot;/dev/null&quot;</span>, <span class="ruby-value str">&quot;w&quot;</span>)
106
+ 208: <span class="ruby-ivar">@buffer</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>
107
+ 209: <span class="ruby-keyword kw">end</span>
108
108
  </pre>
109
109
  </div>
110
110
  </div>
@@ -112,51 +112,51 @@ Object
112
112
  <div class="sectiontitle">Public Instance methods</div>
113
113
  <div class="method">
114
114
  <div class="title">
115
- <a name="M000095"></a><b>done!</b>()
115
+ <a name="M000096"></a><b>done!</b>()
116
116
  </div>
117
117
  <div class="sourcecode">
118
- <p class="source-link">[ <a href="javascript:toggleSource('M000095_source')" id="l_M000095_source">show source</a> ]</p>
119
- <div id="M000095_source" class="dyn-source">
118
+ <p class="source-link">[ <a href="javascript:toggleSource('M000096_source')" id="l_M000096_source">show source</a> ]</p>
119
+ <div id="M000096_source" class="dyn-source">
120
120
  <pre>
121
- <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 210</span>
122
- 210: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">done!</span>
123
- 211: <span class="ruby-identifier">result</span> = <span class="ruby-ivar">@buffer</span>.<span class="ruby-identifier">string</span>
124
- 212: <span class="ruby-ivar">@buffer</span> = <span class="ruby-keyword kw">nil</span>
125
- 213: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>
126
- 214: <span class="ruby-keyword kw">end</span>
121
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 211</span>
122
+ 211: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">done!</span>
123
+ 212: <span class="ruby-identifier">result</span> = <span class="ruby-ivar">@buffer</span>.<span class="ruby-identifier">string</span>
124
+ 213: <span class="ruby-ivar">@buffer</span> = <span class="ruby-keyword kw">nil</span>
125
+ 214: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>
126
+ 215: <span class="ruby-keyword kw">end</span>
127
127
  </pre>
128
128
  </div>
129
129
  </div>
130
130
  </div>
131
131
  <div class="method">
132
132
  <div class="title">
133
- <a name="M000096"></a><b>method_missing</b>(*args, &amp;block)
133
+ <a name="M000097"></a><b>method_missing</b>(*args, &amp;block)
134
134
  </div>
135
135
  <div class="sourcecode">
136
- <p class="source-link">[ <a href="javascript:toggleSource('M000096_source')" id="l_M000096_source">show source</a> ]</p>
137
- <div id="M000096_source" class="dyn-source">
136
+ <p class="source-link">[ <a href="javascript:toggleSource('M000097_source')" id="l_M000097_source">show source</a> ]</p>
137
+ <div id="M000097_source" class="dyn-source">
138
138
  <pre>
139
- <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 216</span>
140
- 216: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
141
- 217: <span class="ruby-ivar">@buffer</span>.<span class="ruby-identifier">send</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@buffer</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">:reopen</span>
142
- 218: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@sink</span>.<span class="ruby-identifier">send</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
143
- 219: <span class="ruby-keyword kw">end</span>
139
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 217</span>
140
+ 217: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
141
+ 218: <span class="ruby-ivar">@buffer</span>.<span class="ruby-identifier">send</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@buffer</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">:reopen</span>
142
+ 219: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@sink</span>.<span class="ruby-identifier">send</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
143
+ 220: <span class="ruby-keyword kw">end</span>
144
144
  </pre>
145
145
  </div>
146
146
  </div>
147
147
  </div>
148
148
  <div class="method">
149
149
  <div class="title">
150
- <a name="M000097"></a><b>respond_to?</b>(symbol, include_private = false)
150
+ <a name="M000098"></a><b>respond_to?</b>(symbol, include_private = false)
151
151
  </div>
152
152
  <div class="sourcecode">
153
- <p class="source-link">[ <a href="javascript:toggleSource('M000097_source')" id="l_M000097_source">show source</a> ]</p>
154
- <div id="M000097_source" class="dyn-source">
153
+ <p class="source-link">[ <a href="javascript:toggleSource('M000098_source')" id="l_M000098_source">show source</a> ]</p>
154
+ <div id="M000098_source" class="dyn-source">
155
155
  <pre>
156
- <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 221</span>
157
- 221: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">symbol</span>, <span class="ruby-identifier">include_private</span> = <span class="ruby-keyword kw">false</span>)
158
- 222: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@sink</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">symbol</span>, <span class="ruby-identifier">include_private</span>)
159
- 223: <span class="ruby-keyword kw">end</span>
156
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 222</span>
157
+ 222: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">symbol</span>, <span class="ruby-identifier">include_private</span> = <span class="ruby-keyword kw">false</span>)
158
+ 223: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@sink</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">symbol</span>, <span class="ruby-identifier">include_private</span>)
159
+ 224: <span class="ruby-keyword kw">end</span>
160
160
  </pre>
161
161
  </div>
162
162
  </div>
@@ -85,7 +85,7 @@ given Ruby on Rails Gem version specification.
85
85
 
86
86
  <div class="sectiontitle">Methods</div>
87
87
  <ul>
88
- <li><a href="#M000098">new</a></li>
88
+ <li><a href="#M000154">new</a></li>
89
89
  </ul>
90
90
 
91
91
 
@@ -106,7 +106,7 @@ given Ruby on Rails Gem version specification.
106
106
  <div class="sectiontitle">Public Class methods</div>
107
107
  <div class="method">
108
108
  <div class="title">
109
- <a name="M000098"></a><b>new</b>(message, gem_version_spec)
109
+ <a name="M000154"></a><b>new</b>(message, gem_version_spec)
110
110
  </div>
111
111
  <div class="description">
112
112
  <ul>
@@ -120,8 +120,8 @@ caused this error.
120
120
  </ul>
121
121
  </div>
122
122
  <div class="sourcecode">
123
- <p class="source-link">[ <a href="javascript:toggleSource('M000098_source')" id="l_M000098_source">show source</a> ]</p>
124
- <div id="M000098_source" class="dyn-source">
123
+ <p class="source-link">[ <a href="javascript:toggleSource('M000154_source')" id="l_M000154_source">show source</a> ]</p>
124
+ <div id="M000154_source" class="dyn-source">
125
125
  <pre>
126
126
  <span class="ruby-comment cmt"># File lib/phusion_passenger/exceptions.rb, line 33</span>
127
127
  33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">gem_version_spec</span>)
@@ -84,8 +84,8 @@ Class for spawning <a href="../WSGI.html">WSGI</a> applications.
84
84
 
85
85
  <div class="sectiontitle">Methods</div>
86
86
  <ul>
87
- <li><a href="#M000037">spawn_application</a></li>
88
87
  <li><a href="#M000038">spawn_application</a></li>
88
+ <li><a href="#M000039">spawn_application</a></li>
89
89
  </ul>
90
90
 
91
91
  <div class="sectiontitle">Included Modules</div>
@@ -108,11 +108,11 @@ Class for spawning <a href="../WSGI.html">WSGI</a> applications.
108
108
  <div class="sectiontitle">Public Class methods</div>
109
109
  <div class="method">
110
110
  <div class="title">
111
- <a name="M000037"></a><b>spawn_application</b>(*args)
111
+ <a name="M000038"></a><b>spawn_application</b>(*args)
112
112
  </div>
113
113
  <div class="sourcecode">
114
- <p class="source-link">[ <a href="javascript:toggleSource('M000037_source')" id="l_M000037_source">show source</a> ]</p>
115
- <div id="M000037_source" class="dyn-source">
114
+ <p class="source-link">[ <a href="javascript:toggleSource('M000038_source')" id="l_M000038_source">show source</a> ]</p>
115
+ <div id="M000038_source" class="dyn-source">
116
116
  <pre>
117
117
  <span class="ruby-comment cmt"># File lib/phusion_passenger/wsgi/application_spawner.rb, line 36</span>
118
118
  36: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">spawn_application</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
@@ -126,7 +126,7 @@ Class for spawning <a href="../WSGI.html">WSGI</a> applications.
126
126
  <div class="sectiontitle">Public Instance methods</div>
127
127
  <div class="method">
128
128
  <div class="title">
129
- <a name="M000038"></a><b>spawn_application</b>(app_root, lower_privilege = true, lowest_user = &quot;nobody&quot;, environment = &quot;production&quot;)
129
+ <a name="M000039"></a><b>spawn_application</b>(app_root, lower_privilege = true, lowest_user = &quot;nobody&quot;, environment = &quot;production&quot;)
130
130
  </div>
131
131
  <div class="description">
132
132
  <p>
@@ -149,8 +149,8 @@ exit() during startup.
149
149
  </ul>
150
150
  </div>
151
151
  <div class="sourcecode">
152
- <p class="source-link">[ <a href="javascript:toggleSource('M000038_source')" id="l_M000038_source">show source</a> ]</p>
153
- <div id="M000038_source" class="dyn-source">
152
+ <p class="source-link">[ <a href="javascript:toggleSource('M000039_source')" id="l_M000039_source">show source</a> ]</p>
153
+ <div id="M000039_source" class="dyn-source">
154
154
  <pre>
155
155
  <span class="ruby-comment cmt"># File lib/phusion_passenger/wsgi/application_spawner.rb, line 49</span>
156
156
  49: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">spawn_application</span>(<span class="ruby-identifier">app_root</span>, <span class="ruby-identifier">lower_privilege</span> = <span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">lowest_user</span> = <span class="ruby-value str">&quot;nobody&quot;</span>, <span class="ruby-identifier">environment</span> = <span class="ruby-value str">&quot;production&quot;</span>)
@@ -76,7 +76,7 @@ that information through constants.
76
76
  <p>
77
77
  Users can change the detection behavior by setting the environment variable
78
78
  <tt>APXS2</tt> to the correct &#8216;apxs&#8217; (or &#8216;<a
79
- href="PlatformInfo.html#M000014">apxs2</a>&#8217;) binary, as provided by
79
+ href="PlatformInfo.html#M000013">apxs2</a>&#8217;) binary, as provided by
80
80
  Apache.
81
81
  </p>
82
82
  </div>
@@ -85,28 +85,29 @@ Apache.
85
85
 
86
86
  <div class="sectiontitle">Methods</div>
87
87
  <ul>
88
- <li><a href="#M000019">apache2_bindir</a></li>
89
- <li><a href="#M000024">apache2_module_cflags</a></li>
90
- <li><a href="#M000025">apache2_module_ldflags</a></li>
91
- <li><a href="#M000020">apache2_sbindir</a></li>
92
- <li><a href="#M000015">apache2ctl</a></li>
93
- <li><a href="#M000017">apr_config</a></li>
94
- <li><a href="#M000030">apr_config_needed_for_building_apache_modules?</a></li>
95
- <li><a href="#M000026">apr_flags</a></li>
96
- <li><a href="#M000027">apr_libs</a></li>
97
- <li><a href="#M000018">apu_config</a></li>
98
- <li><a href="#M000028">apu_flags</a></li>
99
- <li><a href="#M000029">apu_libs</a></li>
100
- <li><a href="#M000014">apxs2</a></li>
101
- <li><a href="#M000023">debugging_cflags</a></li>
102
- <li><a href="#M000011">find_command</a></li>
103
- <li><a href="#M000016">httpd</a></li>
104
- <li><a href="#M000031">library_extension</a></li>
105
- <li><a href="#M000032">linux_distro</a></li>
106
- <li><a href="#M000021">portability_cflags</a></li>
107
- <li><a href="#M000022">portability_ldflags</a></li>
108
- <li><a href="#M000012">rake</a></li>
109
- <li><a href="#M000013">rspec</a></li>
88
+ <li><a href="#M000018">apache2_bindir</a></li>
89
+ <li><a href="#M000023">apache2_module_cflags</a></li>
90
+ <li><a href="#M000024">apache2_module_ldflags</a></li>
91
+ <li><a href="#M000019">apache2_sbindir</a></li>
92
+ <li><a href="#M000014">apache2ctl</a></li>
93
+ <li><a href="#M000016">apr_config</a></li>
94
+ <li><a href="#M000029">apr_config_needed_for_building_apache_modules?</a></li>
95
+ <li><a href="#M000025">apr_flags</a></li>
96
+ <li><a href="#M000026">apr_libs</a></li>
97
+ <li><a href="#M000017">apu_config</a></li>
98
+ <li><a href="#M000027">apu_flags</a></li>
99
+ <li><a href="#M000028">apu_libs</a></li>
100
+ <li><a href="#M000013">apxs2</a></li>
101
+ <li><a href="#M000022">debugging_cflags</a></li>
102
+ <li><a href="#M000010">find_command</a></li>
103
+ <li><a href="#M000015">httpd</a></li>
104
+ <li><a href="#M000030">library_extension</a></li>
105
+ <li><a href="#M000031">linux_distro</a></li>
106
+ <li><a href="#M000032">linux_distro_tags</a></li>
107
+ <li><a href="#M000020">portability_cflags</a></li>
108
+ <li><a href="#M000021">portability_ldflags</a></li>
109
+ <li><a href="#M000011">rake</a></li>
110
+ <li><a href="#M000012">rspec</a></li>
110
111
  </ul>
111
112
 
112
113
 
@@ -144,7 +145,7 @@ The correct &#8216;gem&#8217; command for this Ruby interpreter.
144
145
  <div class="sectiontitle">Public Class methods</div>
145
146
  <div class="method">
146
147
  <div class="title">
147
- <a name="M000019"></a><b>apache2_bindir</b>()
148
+ <a name="M000018"></a><b>apache2_bindir</b>()
148
149
  </div>
149
150
  <div class="description">
150
151
  <p>
@@ -152,8 +153,8 @@ The absolute path to the Apache 2 &#8216;bin&#8217; directory.
152
153
  </p>
153
154
  </div>
154
155
  <div class="sourcecode">
155
- <p class="source-link">[ <a href="javascript:toggleSource('M000019_source')" id="l_M000019_source">show source</a> ]</p>
156
- <div id="M000019_source" class="dyn-source">
156
+ <p class="source-link">[ <a href="javascript:toggleSource('M000018_source')" id="l_M000018_source">show source</a> ]</p>
157
+ <div id="M000018_source" class="dyn-source">
157
158
  <pre>
158
159
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 312</span>
159
160
  312: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2_bindir</span>
@@ -169,7 +170,7 @@ The absolute path to the Apache 2 &#8216;bin&#8217; directory.
169
170
  </div>
170
171
  <div class="method">
171
172
  <div class="title">
172
- <a name="M000024"></a><b>apache2_module_cflags</b>(with_apr_flags = true)
173
+ <a name="M000023"></a><b>apache2_module_cflags</b>(with_apr_flags = true)
173
174
  </div>
174
175
  <div class="description">
175
176
  <p>
@@ -178,8 +179,8 @@ Possibly includes APR and APU compiler flags.
178
179
  </p>
179
180
  </div>
180
181
  <div class="sourcecode">
181
- <p class="source-link">[ <a href="javascript:toggleSource('M000024_source')" id="l_M000024_source">show source</a> ]</p>
182
- <div id="M000024_source" class="dyn-source">
182
+ <p class="source-link">[ <a href="javascript:toggleSource('M000023_source')" id="l_M000023_source">show source</a> ]</p>
183
+ <div id="M000023_source" class="dyn-source">
183
184
  <pre>
184
185
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 384</span>
185
186
  384: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2_module_cflags</span>(<span class="ruby-identifier">with_apr_flags</span> = <span class="ruby-keyword kw">true</span>)
@@ -198,52 +199,54 @@ Possibly includes APR and APU compiler flags.
198
199
  397: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">apxs2_flags</span>.<span class="ruby-identifier">split</span>
199
200
  398: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^\-x/</span> }
200
201
  399: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^\-Xa/</span> }
201
- 400: <span class="ruby-identifier">apxs2_flags</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>)
202
- 401: <span class="ruby-keyword kw">end</span>
203
- 402:
204
- 403: <span class="ruby-identifier">apxs2_flags</span>.<span class="ruby-identifier">strip!</span>
205
- 404: <span class="ruby-identifier">flags</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">apxs2_flags</span>
206
- 405: <span class="ruby-keyword kw">end</span>
207
- 406: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">httpd</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/darwin/</span>
208
- 407: <span class="ruby-comment cmt"># The default Apache install on OS X is a universal binary.</span>
209
- 408: <span class="ruby-comment cmt"># Figure out which architectures it's compiled for and do the same</span>
210
- 409: <span class="ruby-comment cmt"># thing for mod_passenger. We use the 'file' utility to do this.</span>
211
- 410: <span class="ruby-comment cmt">#</span>
212
- 411: <span class="ruby-comment cmt"># Running 'file' on the Apache executable usually outputs something</span>
213
- 412: <span class="ruby-comment cmt"># like this:</span>
214
- 413: <span class="ruby-comment cmt">#</span>
215
- 414: <span class="ruby-comment cmt"># /usr/sbin/httpd: Mach-O universal binary with 4 architectures</span>
216
- 415: <span class="ruby-comment cmt"># /usr/sbin/httpd (for architecture ppc7400): Mach-O executable ppc</span>
217
- 416: <span class="ruby-comment cmt"># /usr/sbin/httpd (for architecture ppc64): Mach-O 64-bit executable ppc64</span>
218
- 417: <span class="ruby-comment cmt"># /usr/sbin/httpd (for architecture i386): Mach-O executable i386</span>
219
- 418: <span class="ruby-comment cmt"># /usr/sbin/httpd (for architecture x86_64): Mach-O 64-bit executable x86_64</span>
220
- 419: <span class="ruby-comment cmt">#</span>
221
- 420: <span class="ruby-comment cmt"># But on some machines, it may output just:</span>
202
+ 400: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^\-fast/</span> }
203
+ 401: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^\-mt/</span> }
204
+ 402: <span class="ruby-identifier">apxs2_flags</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>)
205
+ 403: <span class="ruby-keyword kw">end</span>
206
+ 404:
207
+ 405: <span class="ruby-identifier">apxs2_flags</span>.<span class="ruby-identifier">strip!</span>
208
+ 406: <span class="ruby-identifier">flags</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">apxs2_flags</span>
209
+ 407: <span class="ruby-keyword kw">end</span>
210
+ 408: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">httpd</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/darwin/</span>
211
+ 409: <span class="ruby-comment cmt"># The default Apache install on OS X is a universal binary.</span>
212
+ 410: <span class="ruby-comment cmt"># Figure out which architectures it's compiled for and do the same</span>
213
+ 411: <span class="ruby-comment cmt"># thing for mod_passenger. We use the 'file' utility to do this.</span>
214
+ 412: <span class="ruby-comment cmt">#</span>
215
+ 413: <span class="ruby-comment cmt"># Running 'file' on the Apache executable usually outputs something</span>
216
+ 414: <span class="ruby-comment cmt"># like this:</span>
217
+ 415: <span class="ruby-comment cmt">#</span>
218
+ 416: <span class="ruby-comment cmt"># /usr/sbin/httpd: Mach-O universal binary with 4 architectures</span>
219
+ 417: <span class="ruby-comment cmt"># /usr/sbin/httpd (for architecture ppc7400): Mach-O executable ppc</span>
220
+ 418: <span class="ruby-comment cmt"># /usr/sbin/httpd (for architecture ppc64): Mach-O 64-bit executable ppc64</span>
221
+ 419: <span class="ruby-comment cmt"># /usr/sbin/httpd (for architecture i386): Mach-O executable i386</span>
222
+ 420: <span class="ruby-comment cmt"># /usr/sbin/httpd (for architecture x86_64): Mach-O 64-bit executable x86_64</span>
222
223
  421: <span class="ruby-comment cmt">#</span>
223
- 422: <span class="ruby-comment cmt"># /usr/sbin/httpd: Mach-O fat file with 4 architectures</span>
224
+ 422: <span class="ruby-comment cmt"># But on some machines, it may output just:</span>
224
225
  423: <span class="ruby-comment cmt">#</span>
225
- 424: <span class="ruby-comment cmt"># (http://code.google.com/p/phusion-passenger/issues/detail?id=236)</span>
226
- 425: <span class="ruby-identifier">output</span> = <span class="ruby-node">`file &quot;#{httpd}&quot;`</span>.<span class="ruby-identifier">strip</span>
227
- 426: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">output</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/Mach-O fat file/</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">output</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/for architecture/</span>
228
- 427: <span class="ruby-identifier">architectures</span> = [<span class="ruby-value str">&quot;-arch i386 -arch ppc -arch x86_64 -arch ppc64&quot;</span>]
229
- 428: <span class="ruby-keyword kw">else</span>
230
- 429: <span class="ruby-identifier">architectures</span> = []
231
- 430: <span class="ruby-identifier">output</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">&quot;\n&quot;</span>).<span class="ruby-identifier">grep</span>(<span class="ruby-regexp re">/for architecture/</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
232
- 431: <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/for architecture (.*?)\)/</span>
233
- 432: <span class="ruby-identifier">architectures</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;-arch #{$1}&quot;</span>
234
- 433: <span class="ruby-keyword kw">end</span>
235
- 434: <span class="ruby-keyword kw">end</span>
236
- 435: <span class="ruby-identifier">flags</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">architectures</span>.<span class="ruby-identifier">compact</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>)
237
- 436: <span class="ruby-keyword kw">end</span>
238
- 437: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">flags</span>.<span class="ruby-identifier">compact</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>).<span class="ruby-identifier">strip</span>
239
- 438: <span class="ruby-keyword kw">end</span>
226
+ 424: <span class="ruby-comment cmt"># /usr/sbin/httpd: Mach-O fat file with 4 architectures</span>
227
+ 425: <span class="ruby-comment cmt">#</span>
228
+ 426: <span class="ruby-comment cmt"># (http://code.google.com/p/phusion-passenger/issues/detail?id=236)</span>
229
+ 427: <span class="ruby-identifier">output</span> = <span class="ruby-node">`file &quot;#{httpd}&quot;`</span>.<span class="ruby-identifier">strip</span>
230
+ 428: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">output</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/Mach-O fat file/</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">output</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/for architecture/</span>
231
+ 429: <span class="ruby-identifier">architectures</span> = [<span class="ruby-value str">&quot;-arch i386 -arch ppc -arch x86_64 -arch ppc64&quot;</span>]
232
+ 430: <span class="ruby-keyword kw">else</span>
233
+ 431: <span class="ruby-identifier">architectures</span> = []
234
+ 432: <span class="ruby-identifier">output</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">&quot;\n&quot;</span>).<span class="ruby-identifier">grep</span>(<span class="ruby-regexp re">/for architecture/</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
235
+ 433: <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/for architecture (.*?)\)/</span>
236
+ 434: <span class="ruby-identifier">architectures</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;-arch #{$1}&quot;</span>
237
+ 435: <span class="ruby-keyword kw">end</span>
238
+ 436: <span class="ruby-keyword kw">end</span>
239
+ 437: <span class="ruby-identifier">flags</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">architectures</span>.<span class="ruby-identifier">compact</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>)
240
+ 438: <span class="ruby-keyword kw">end</span>
241
+ 439: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">flags</span>.<span class="ruby-identifier">compact</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>).<span class="ruby-identifier">strip</span>
242
+ 440: <span class="ruby-keyword kw">end</span>
240
243
  </pre>
241
244
  </div>
242
245
  </div>
243
246
  </div>
244
247
  <div class="method">
245
248
  <div class="title">
246
- <a name="M000025"></a><b>apache2_module_ldflags</b>()
249
+ <a name="M000024"></a><b>apache2_module_ldflags</b>()
247
250
  </div>
248
251
  <div class="description">
249
252
  <p>
@@ -252,22 +255,22 @@ includes APR and APU linker flags.
252
255
  </p>
253
256
  </div>
254
257
  <div class="sourcecode">
255
- <p class="source-link">[ <a href="javascript:toggleSource('M000025_source')" id="l_M000025_source">show source</a> ]</p>
256
- <div id="M000025_source" class="dyn-source">
258
+ <p class="source-link">[ <a href="javascript:toggleSource('M000024_source')" id="l_M000024_source">show source</a> ]</p>
259
+ <div id="M000024_source" class="dyn-source">
257
260
  <pre>
258
- <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 443</span>
259
- 443: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2_module_ldflags</span>
260
- 444: <span class="ruby-identifier">flags</span> = <span class="ruby-node">&quot;-fPIC #{apr_libs} #{apu_libs}&quot;</span>
261
- 445: <span class="ruby-identifier">flags</span>.<span class="ruby-identifier">strip!</span>
262
- 446: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">flags</span>
263
- 447: <span class="ruby-keyword kw">end</span>
261
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 445</span>
262
+ 445: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2_module_ldflags</span>
263
+ 446: <span class="ruby-identifier">flags</span> = <span class="ruby-node">&quot;-fPIC #{apr_libs} #{apu_libs}&quot;</span>
264
+ 447: <span class="ruby-identifier">flags</span>.<span class="ruby-identifier">strip!</span>
265
+ 448: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">flags</span>
266
+ 449: <span class="ruby-keyword kw">end</span>
264
267
  </pre>
265
268
  </div>
266
269
  </div>
267
270
  </div>
268
271
  <div class="method">
269
272
  <div class="title">
270
- <a name="M000020"></a><b>apache2_sbindir</b>()
273
+ <a name="M000019"></a><b>apache2_sbindir</b>()
271
274
  </div>
272
275
  <div class="description">
273
276
  <p>
@@ -275,8 +278,8 @@ The absolute path to the Apache 2 &#8216;sbin&#8217; directory.
275
278
  </p>
276
279
  </div>
277
280
  <div class="sourcecode">
278
- <p class="source-link">[ <a href="javascript:toggleSource('M000020_source')" id="l_M000020_source">show source</a> ]</p>
279
- <div id="M000020_source" class="dyn-source">
281
+ <p class="source-link">[ <a href="javascript:toggleSource('M000019_source')" id="l_M000019_source">show source</a> ]</p>
282
+ <div id="M000019_source" class="dyn-source">
280
283
  <pre>
281
284
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 322</span>
282
285
  322: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2_sbindir</span>
@@ -292,17 +295,17 @@ The absolute path to the Apache 2 &#8216;sbin&#8217; directory.
292
295
  </div>
293
296
  <div class="method">
294
297
  <div class="title">
295
- <a name="M000015"></a><b>apache2ctl</b>()
298
+ <a name="M000014"></a><b>apache2ctl</b>()
296
299
  </div>
297
300
  <div class="description">
298
301
  <p>
299
302
  The absolute path to the &#8216;apachectl&#8217; or &#8216;<a
300
- href="PlatformInfo.html#M000015">apache2ctl</a>&#8217; binary.
303
+ href="PlatformInfo.html#M000014">apache2ctl</a>&#8217; binary.
301
304
  </p>
302
305
  </div>
303
306
  <div class="sourcecode">
304
- <p class="source-link">[ <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show source</a> ]</p>
305
- <div id="M000015_source" class="dyn-source">
307
+ <p class="source-link">[ <a href="javascript:toggleSource('M000014_source')" id="l_M000014_source">show source</a> ]</p>
308
+ <div id="M000014_source" class="dyn-source">
306
309
  <pre>
307
310
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 234</span>
308
311
  234: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2ctl</span>
@@ -314,7 +317,7 @@ href="PlatformInfo.html#M000015">apache2ctl</a>&#8217; binary.
314
317
  </div>
315
318
  <div class="method">
316
319
  <div class="title">
317
- <a name="M000017"></a><b>apr_config</b>()
320
+ <a name="M000016"></a><b>apr_config</b>()
318
321
  </div>
319
322
  <div class="description">
320
323
  <p>
@@ -323,8 +326,8 @@ The absolute path to the &#8216;apr-config&#8217; or
323
326
  </p>
324
327
  </div>
325
328
  <div class="sourcecode">
326
- <p class="source-link">[ <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show source</a> ]</p>
327
- <div id="M000017_source" class="dyn-source">
329
+ <p class="source-link">[ <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show source</a> ]</p>
330
+ <div id="M000016_source" class="dyn-source">
328
331
  <pre>
329
332
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 258</span>
330
333
  258: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_config</span>
@@ -355,7 +358,7 @@ The absolute path to the &#8216;apr-config&#8217; or
355
358
  </div>
356
359
  <div class="method">
357
360
  <div class="title">
358
- <a name="M000030"></a><b>apr_config_needed_for_building_apache_modules?</b>()
361
+ <a name="M000029"></a><b>apr_config_needed_for_building_apache_modules?</b>()
359
362
  </div>
360
363
  <div class="description">
361
364
  <p>
@@ -368,29 +371,29 @@ won&#8216;t be necessary in that case.
368
371
  </p>
369
372
  </div>
370
373
  <div class="sourcecode">
371
- <p class="source-link">[ <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">show source</a> ]</p>
372
- <div id="M000030_source" class="dyn-source">
374
+ <p class="source-link">[ <a href="javascript:toggleSource('M000029_source')" id="l_M000029_source">show source</a> ]</p>
375
+ <div id="M000029_source" class="dyn-source">
373
376
  <pre>
374
- <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 479</span>
375
- 479: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_config_needed_for_building_apache_modules?</span>
376
- 480: <span class="ruby-identifier">filename</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-node">&quot;/tmp/passenger-platform-check-#{Process.pid}.c&quot;</span>)
377
- 481: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-value str">&quot;w&quot;</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
378
- 482: <span class="ruby-identifier">f</span>.<span class="ruby-identifier">puts</span>(<span class="ruby-value str">&quot;#include &lt;apr.h&gt;&quot;</span>)
379
- 483: <span class="ruby-keyword kw">end</span>
380
- 484: <span class="ruby-keyword kw">begin</span>
381
- 485: <span class="ruby-keyword kw">return</span> <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>(<span class="ruby-node">&quot;(gcc #{apache2_module_cflags(false)} -c '#{filename}' -o '#{filename}.o') &gt;/dev/null 2&gt;/dev/null&quot;</span>)
382
- 486: <span class="ruby-keyword kw">ensure</span>
383
- 487: <span class="ruby-constant">File</span>.<span class="ruby-identifier">unlink</span>(<span class="ruby-identifier">filename</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
384
- 488: <span class="ruby-constant">File</span>.<span class="ruby-identifier">unlink</span>(<span class="ruby-node">&quot;#{filename}.o&quot;</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
385
- 489: <span class="ruby-keyword kw">end</span>
386
- 490: <span class="ruby-keyword kw">end</span>
377
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 481</span>
378
+ 481: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_config_needed_for_building_apache_modules?</span>
379
+ 482: <span class="ruby-identifier">filename</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-node">&quot;/tmp/passenger-platform-check-#{Process.pid}.c&quot;</span>)
380
+ 483: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-value str">&quot;w&quot;</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
381
+ 484: <span class="ruby-identifier">f</span>.<span class="ruby-identifier">puts</span>(<span class="ruby-value str">&quot;#include &lt;apr.h&gt;&quot;</span>)
382
+ 485: <span class="ruby-keyword kw">end</span>
383
+ 486: <span class="ruby-keyword kw">begin</span>
384
+ 487: <span class="ruby-keyword kw">return</span> <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>(<span class="ruby-node">&quot;(gcc #{apache2_module_cflags(false)} -c '#{filename}' -o '#{filename}.o') &gt;/dev/null 2&gt;/dev/null&quot;</span>)
385
+ 488: <span class="ruby-keyword kw">ensure</span>
386
+ 489: <span class="ruby-constant">File</span>.<span class="ruby-identifier">unlink</span>(<span class="ruby-identifier">filename</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
387
+ 490: <span class="ruby-constant">File</span>.<span class="ruby-identifier">unlink</span>(<span class="ruby-node">&quot;#{filename}.o&quot;</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
388
+ 491: <span class="ruby-keyword kw">end</span>
389
+ 492: <span class="ruby-keyword kw">end</span>
387
390
  </pre>
388
391
  </div>
389
392
  </div>
390
393
  </div>
391
394
  <div class="method">
392
395
  <div class="title">
393
- <a name="M000026"></a><b>apr_flags</b>()
396
+ <a name="M000025"></a><b>apr_flags</b>()
394
397
  </div>
395
398
  <div class="description">
396
399
  <p>
@@ -398,20 +401,20 @@ The C compiler flags that are necessary for programs that use APR.
398
401
  </p>
399
402
  </div>
400
403
  <div class="sourcecode">
401
- <p class="source-link">[ <a href="javascript:toggleSource('M000026_source')" id="l_M000026_source">show source</a> ]</p>
402
- <div id="M000026_source" class="dyn-source">
404
+ <p class="source-link">[ <a href="javascript:toggleSource('M000025_source')" id="l_M000025_source">show source</a> ]</p>
405
+ <div id="M000025_source" class="dyn-source">
403
406
  <pre>
404
- <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 451</span>
405
- 451: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_flags</span>
406
- 452: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apr_info</span>[<span class="ruby-value">0</span>]
407
- 453: <span class="ruby-keyword kw">end</span>
407
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 453</span>
408
+ 453: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_flags</span>
409
+ 454: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apr_info</span>[<span class="ruby-value">0</span>]
410
+ 455: <span class="ruby-keyword kw">end</span>
408
411
  </pre>
409
412
  </div>
410
413
  </div>
411
414
  </div>
412
415
  <div class="method">
413
416
  <div class="title">
414
- <a name="M000027"></a><b>apr_libs</b>()
417
+ <a name="M000026"></a><b>apr_libs</b>()
415
418
  </div>
416
419
  <div class="description">
417
420
  <p>
@@ -419,20 +422,20 @@ The linker flags that are necessary for linking programs that use APR.
419
422
  </p>
420
423
  </div>
421
424
  <div class="sourcecode">
422
- <p class="source-link">[ <a href="javascript:toggleSource('M000027_source')" id="l_M000027_source">show source</a> ]</p>
423
- <div id="M000027_source" class="dyn-source">
425
+ <p class="source-link">[ <a href="javascript:toggleSource('M000026_source')" id="l_M000026_source">show source</a> ]</p>
426
+ <div id="M000026_source" class="dyn-source">
424
427
  <pre>
425
- <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 456</span>
426
- 456: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_libs</span>
427
- 457: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apr_info</span>[<span class="ruby-value">1</span>]
428
- 458: <span class="ruby-keyword kw">end</span>
428
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 458</span>
429
+ 458: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_libs</span>
430
+ 459: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apr_info</span>[<span class="ruby-value">1</span>]
431
+ 460: <span class="ruby-keyword kw">end</span>
429
432
  </pre>
430
433
  </div>
431
434
  </div>
432
435
  </div>
433
436
  <div class="method">
434
437
  <div class="title">
435
- <a name="M000018"></a><b>apu_config</b>()
438
+ <a name="M000017"></a><b>apu_config</b>()
436
439
  </div>
437
440
  <div class="description">
438
441
  <p>
@@ -441,8 +444,8 @@ The absolute path to the &#8216;apu-config&#8217; or
441
444
  </p>
442
445
  </div>
443
446
  <div class="sourcecode">
444
- <p class="source-link">[ <a href="javascript:toggleSource('M000018_source')" id="l_M000018_source">show source</a> ]</p>
445
- <div id="M000018_source" class="dyn-source">
447
+ <p class="source-link">[ <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show source</a> ]</p>
448
+ <div id="M000017_source" class="dyn-source">
446
449
  <pre>
447
450
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 283</span>
448
451
  283: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apu_config</span>
@@ -473,7 +476,7 @@ The absolute path to the &#8216;apu-config&#8217; or
473
476
  </div>
474
477
  <div class="method">
475
478
  <div class="title">
476
- <a name="M000028"></a><b>apu_flags</b>()
479
+ <a name="M000027"></a><b>apu_flags</b>()
477
480
  </div>
478
481
  <div class="description">
479
482
  <p>
@@ -481,20 +484,20 @@ The C compiler flags that are necessary for programs that use APR-Util.
481
484
  </p>
482
485
  </div>
483
486
  <div class="sourcecode">
484
- <p class="source-link">[ <a href="javascript:toggleSource('M000028_source')" id="l_M000028_source">show source</a> ]</p>
485
- <div id="M000028_source" class="dyn-source">
487
+ <p class="source-link">[ <a href="javascript:toggleSource('M000027_source')" id="l_M000027_source">show source</a> ]</p>
488
+ <div id="M000027_source" class="dyn-source">
486
489
  <pre>
487
- <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 461</span>
488
- 461: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apu_flags</span>
489
- 462: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apu_info</span>[<span class="ruby-value">0</span>]
490
- 463: <span class="ruby-keyword kw">end</span>
490
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 463</span>
491
+ 463: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apu_flags</span>
492
+ 464: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apu_info</span>[<span class="ruby-value">0</span>]
493
+ 465: <span class="ruby-keyword kw">end</span>
491
494
  </pre>
492
495
  </div>
493
496
  </div>
494
497
  </div>
495
498
  <div class="method">
496
499
  <div class="title">
497
- <a name="M000029"></a><b>apu_libs</b>()
500
+ <a name="M000028"></a><b>apu_libs</b>()
498
501
  </div>
499
502
  <div class="description">
500
503
  <p>
@@ -502,31 +505,31 @@ The linker flags that are necessary for linking programs that use APR-Util.
502
505
  </p>
503
506
  </div>
504
507
  <div class="sourcecode">
505
- <p class="source-link">[ <a href="javascript:toggleSource('M000029_source')" id="l_M000029_source">show source</a> ]</p>
506
- <div id="M000029_source" class="dyn-source">
508
+ <p class="source-link">[ <a href="javascript:toggleSource('M000028_source')" id="l_M000028_source">show source</a> ]</p>
509
+ <div id="M000028_source" class="dyn-source">
507
510
  <pre>
508
- <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 466</span>
509
- 466: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apu_libs</span>
510
- 467: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apu_info</span>[<span class="ruby-value">1</span>]
511
- 468: <span class="ruby-keyword kw">end</span>
511
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 468</span>
512
+ 468: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apu_libs</span>
513
+ 469: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apu_info</span>[<span class="ruby-value">1</span>]
514
+ 470: <span class="ruby-keyword kw">end</span>
512
515
  </pre>
513
516
  </div>
514
517
  </div>
515
518
  </div>
516
519
  <div class="method">
517
520
  <div class="title">
518
- <a name="M000014"></a><b>apxs2</b>()
521
+ <a name="M000013"></a><b>apxs2</b>()
519
522
  </div>
520
523
  <div class="description">
521
524
  <p>
522
525
  The absolute path to the &#8216;apxs&#8217; or &#8216;<a
523
- href="PlatformInfo.html#M000014">apxs2</a>&#8217; executable, or nil if not
526
+ href="PlatformInfo.html#M000013">apxs2</a>&#8217; executable, or nil if not
524
527
  found.
525
528
  </p>
526
529
  </div>
527
530
  <div class="sourcecode">
528
- <p class="source-link">[ <a href="javascript:toggleSource('M000014_source')" id="l_M000014_source">show source</a> ]</p>
529
- <div id="M000014_source" class="dyn-source">
531
+ <p class="source-link">[ <a href="javascript:toggleSource('M000013_source')" id="l_M000013_source">show source</a> ]</p>
532
+ <div id="M000013_source" class="dyn-source">
530
533
  <pre>
531
534
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 219</span>
532
535
  219: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apxs2</span>
@@ -547,7 +550,7 @@ found.
547
550
  </div>
548
551
  <div class="method">
549
552
  <div class="title">
550
- <a name="M000023"></a><b>debugging_cflags</b>()
553
+ <a name="M000022"></a><b>debugging_cflags</b>()
551
554
  </div>
552
555
  <div class="description">
553
556
  <p>
@@ -556,8 +559,8 @@ information.
556
559
  </p>
557
560
  </div>
558
561
  <div class="sourcecode">
559
- <p class="source-link">[ <a href="javascript:toggleSource('M000023_source')" id="l_M000023_source">show source</a> ]</p>
560
- <div id="M000023_source" class="dyn-source">
562
+ <p class="source-link">[ <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show source</a> ]</p>
563
+ <div id="M000022_source" class="dyn-source">
561
564
  <pre>
562
565
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 371</span>
563
566
  371: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">debugging_cflags</span>
@@ -576,7 +579,7 @@ information.
576
579
  </div>
577
580
  <div class="method">
578
581
  <div class="title">
579
- <a name="M000011"></a><b>find_command</b>(name)
582
+ <a name="M000010"></a><b>find_command</b>(name)
580
583
  </div>
581
584
  <div class="description">
582
585
  <p>
@@ -589,8 +592,8 @@ always behave correctly, for some weird reason.
589
592
  </p>
590
593
  </div>
591
594
  <div class="sourcecode">
592
- <p class="source-link">[ <a href="javascript:toggleSource('M000011_source')" id="l_M000011_source">show source</a> ]</p>
593
- <div id="M000011_source" class="dyn-source">
595
+ <p class="source-link">[ <a href="javascript:toggleSource('M000010_source')" id="l_M000010_source">show source</a> ]</p>
596
+ <div id="M000010_source" class="dyn-source">
594
597
  <pre>
595
598
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 188</span>
596
599
  188: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">find_command</span>(<span class="ruby-identifier">name</span>)
@@ -608,18 +611,18 @@ always behave correctly, for some weird reason.
608
611
  </div>
609
612
  <div class="method">
610
613
  <div class="title">
611
- <a name="M000016"></a><b>httpd</b>()
614
+ <a name="M000015"></a><b>httpd</b>()
612
615
  </div>
613
616
  <div class="description">
614
617
  <p>
615
618
  The absolute path to the Apache binary (that is, &#8216;<a
616
- href="PlatformInfo.html#M000016">httpd</a>&#8217;, &#8216;httpd2&#8217;,
619
+ href="PlatformInfo.html#M000015">httpd</a>&#8217;, &#8216;httpd2&#8217;,
617
620
  &#8216;apache&#8217; or &#8216;apache2&#8217;).
618
621
  </p>
619
622
  </div>
620
623
  <div class="sourcecode">
621
- <p class="source-link">[ <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show source</a> ]</p>
622
- <div id="M000016_source" class="dyn-source">
624
+ <p class="source-link">[ <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show source</a> ]</p>
625
+ <div id="M000015_source" class="dyn-source">
623
626
  <pre>
624
627
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 240</span>
625
628
  240: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">httpd</span>
@@ -643,7 +646,7 @@ href="PlatformInfo.html#M000016">httpd</a>&#8217;, &#8216;httpd2&#8217;,
643
646
  </div>
644
647
  <div class="method">
645
648
  <div class="title">
646
- <a name="M000031"></a><b>library_extension</b>()
649
+ <a name="M000030"></a><b>library_extension</b>()
647
650
  </div>
648
651
  <div class="description">
649
652
  <p>
@@ -652,72 +655,103 @@ most Unices).
652
655
  </p>
653
656
  </div>
654
657
  <div class="sourcecode">
655
- <p class="source-link">[ <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show source</a> ]</p>
656
- <div id="M000031_source" class="dyn-source">
658
+ <p class="source-link">[ <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">show source</a> ]</p>
659
+ <div id="M000030_source" class="dyn-source">
657
660
  <pre>
658
- <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 494</span>
659
- 494: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">library_extension</span>
660
- 495: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/darwin/</span>
661
- 496: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">&quot;bundle&quot;</span>
662
- 497: <span class="ruby-keyword kw">else</span>
663
- 498: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">&quot;so&quot;</span>
664
- 499: <span class="ruby-keyword kw">end</span>
665
- 500: <span class="ruby-keyword kw">end</span>
661
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 496</span>
662
+ 496: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">library_extension</span>
663
+ 497: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/darwin/</span>
664
+ 498: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">&quot;bundle&quot;</span>
665
+ 499: <span class="ruby-keyword kw">else</span>
666
+ 500: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">&quot;so&quot;</span>
667
+ 501: <span class="ruby-keyword kw">end</span>
668
+ 502: <span class="ruby-keyword kw">end</span>
666
669
  </pre>
667
670
  </div>
668
671
  </div>
669
672
  </div>
670
673
  <div class="method">
671
674
  <div class="title">
672
- <a name="M000032"></a><b>linux_distro</b>()
675
+ <a name="M000031"></a><b>linux_distro</b>()
673
676
  </div>
674
677
  <div class="description">
675
678
  <p>
676
679
  An identifier for the current Linux distribution. nil if the operating
677
680
  system is not Linux.
681
+ </p>
682
+ </div>
683
+ <div class="sourcecode">
684
+ <p class="source-link">[ <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show source</a> ]</p>
685
+ <div id="M000031_source" class="dyn-source">
686
+ <pre>
687
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 505</span>
688
+ 505: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">linux_distro</span>
689
+ 506: <span class="ruby-identifier">tags</span> = <span class="ruby-identifier">linux_distro_tags</span>
690
+ 507: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">tags</span>
691
+ 508: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">tags</span>.<span class="ruby-identifier">first</span>
692
+ 509: <span class="ruby-keyword kw">else</span>
693
+ 510: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
694
+ 511: <span class="ruby-keyword kw">end</span>
695
+ 512: <span class="ruby-keyword kw">end</span>
696
+ </pre>
697
+ </div>
698
+ </div>
699
+ </div>
700
+ <div class="method">
701
+ <div class="title">
702
+ <a name="M000032"></a><b>linux_distro_tags</b>()
703
+ </div>
704
+ <div class="description">
705
+ <p>
706
+ Autodetects the current Linux distribution and return a number of
707
+ identifier tags. The first tag identifies the distribution while the other
708
+ tags indicate which distributions it is likely compatible with. Returns nil
709
+ if the operating system is not Linux.
678
710
  </p>
679
711
  </div>
680
712
  <div class="sourcecode">
681
713
  <p class="source-link">[ <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show source</a> ]</p>
682
714
  <div id="M000032_source" class="dyn-source">
683
715
  <pre>
684
- <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 503</span>
685
- 503: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">linux_distro</span>
686
- 504: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/linux/</span>
687
- 505: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
688
- 506: <span class="ruby-keyword kw">end</span>
689
- 507: <span class="ruby-identifier">lsb_release</span> = <span class="ruby-identifier">read_file</span>(<span class="ruby-value str">&quot;/etc/lsb-release&quot;</span>)
690
- 508: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">lsb_release</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/Ubuntu/</span>
691
- 509: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:ubuntu</span>
692
- 510: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">&quot;/etc/debian_version&quot;</span>)
693
- 511: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:debian</span>
694
- 512: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">&quot;/etc/redhat-release&quot;</span>)
695
- 513: <span class="ruby-identifier">redhat_release</span> = <span class="ruby-identifier">read_file</span>(<span class="ruby-value str">&quot;/etc/redhat-release&quot;</span>)
696
- 514: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">redhat_release</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/CentOS/</span>
697
- 515: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:centos</span>
698
- 516: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">redhat_release</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/Fedora/</span> <span class="ruby-comment cmt"># is this correct?</span>
699
- 517: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:fedora</span>
700
- 518: <span class="ruby-keyword kw">else</span>
701
- 519: <span class="ruby-comment cmt"># On official RHEL distros, the content is in the form of</span>
702
- 520: <span class="ruby-comment cmt"># &quot;Red Hat Enterprise Linux Server release 5.1 (Tikanga)&quot;</span>
703
- 521: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:rhel</span>
704
- 522: <span class="ruby-keyword kw">end</span>
705
- 523: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">&quot;/etc/suse-release&quot;</span>)
706
- 524: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:suse</span>
707
- 525: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">&quot;/etc/gentoo-release&quot;</span>)
708
- 526: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:gentoo</span>
709
- 527: <span class="ruby-keyword kw">else</span>
710
- 528: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:unknown</span>
711
- 529: <span class="ruby-keyword kw">end</span>
712
- 530: <span class="ruby-comment cmt"># TODO: Slackware, Mandrake/Mandriva</span>
713
- 531: <span class="ruby-keyword kw">end</span>
716
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 518</span>
717
+ 518: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">linux_distro_tags</span>
718
+ 519: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/linux/</span>
719
+ 520: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
720
+ 521: <span class="ruby-keyword kw">end</span>
721
+ 522: <span class="ruby-identifier">lsb_release</span> = <span class="ruby-identifier">read_file</span>(<span class="ruby-value str">&quot;/etc/lsb-release&quot;</span>)
722
+ 523: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">lsb_release</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/Ubuntu/</span>
723
+ 524: <span class="ruby-keyword kw">return</span> [<span class="ruby-identifier">:ubuntu</span>, <span class="ruby-identifier">:debian</span>]
724
+ 525: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">&quot;/etc/debian_version&quot;</span>)
725
+ 526: <span class="ruby-keyword kw">return</span> [<span class="ruby-identifier">:debian</span>]
726
+ 527: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">&quot;/etc/redhat-release&quot;</span>)
727
+ 528: <span class="ruby-identifier">redhat_release</span> = <span class="ruby-identifier">read_file</span>(<span class="ruby-value str">&quot;/etc/redhat-release&quot;</span>)
728
+ 529: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">redhat_release</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/CentOS/</span>
729
+ 530: <span class="ruby-keyword kw">return</span> [<span class="ruby-identifier">:centos</span>, <span class="ruby-identifier">:redhat</span>]
730
+ 531: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">redhat_release</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/Fedora/</span>
731
+ 532: <span class="ruby-keyword kw">return</span> [<span class="ruby-identifier">:fedora</span>, <span class="ruby-identifier">:redhat</span>]
732
+ 533: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">redhat_release</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/Mandriva/</span>
733
+ 534: <span class="ruby-keyword kw">return</span> [<span class="ruby-identifier">:mandriva</span>, <span class="ruby-identifier">:redhat</span>]
734
+ 535: <span class="ruby-keyword kw">else</span>
735
+ 536: <span class="ruby-comment cmt"># On official RHEL distros, the content is in the form of</span>
736
+ 537: <span class="ruby-comment cmt"># &quot;Red Hat Enterprise Linux Server release 5.1 (Tikanga)&quot;</span>
737
+ 538: <span class="ruby-keyword kw">return</span> [<span class="ruby-identifier">:rhel</span>, <span class="ruby-identifier">:redhat</span>]
738
+ 539: <span class="ruby-keyword kw">end</span>
739
+ 540: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">&quot;/etc/suse-release&quot;</span>)
740
+ 541: <span class="ruby-keyword kw">return</span> [<span class="ruby-identifier">:suse</span>]
741
+ 542: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">&quot;/etc/gentoo-release&quot;</span>)
742
+ 543: <span class="ruby-keyword kw">return</span> [<span class="ruby-identifier">:gentoo</span>]
743
+ 544: <span class="ruby-keyword kw">else</span>
744
+ 545: <span class="ruby-keyword kw">return</span> [<span class="ruby-identifier">:unknown</span>]
745
+ 546: <span class="ruby-keyword kw">end</span>
746
+ 547: <span class="ruby-comment cmt"># TODO: Slackware</span>
747
+ 548: <span class="ruby-keyword kw">end</span>
714
748
  </pre>
715
749
  </div>
716
750
  </div>
717
751
  </div>
718
752
  <div class="method">
719
753
  <div class="title">
720
- <a name="M000021"></a><b>portability_cflags</b>()
754
+ <a name="M000020"></a><b>portability_cflags</b>()
721
755
  </div>
722
756
  <div class="description">
723
757
  <p>
@@ -727,8 +761,8 @@ the compiler.
727
761
  </p>
728
762
  </div>
729
763
  <div class="sourcecode">
730
- <p class="source-link">[ <a href="javascript:toggleSource('M000021_source')" id="l_M000021_source">show source</a> ]</p>
731
- <div id="M000021_source" class="dyn-source">
764
+ <p class="source-link">[ <a href="javascript:toggleSource('M000020_source')" id="l_M000020_source">show source</a> ]</p>
765
+ <div id="M000020_source" class="dyn-source">
732
766
  <pre>
733
767
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 338</span>
734
768
  338: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">portability_cflags</span>
@@ -755,7 +789,7 @@ the compiler.
755
789
  </div>
756
790
  <div class="method">
757
791
  <div class="title">
758
- <a name="M000022"></a><b>portability_ldflags</b>()
792
+ <a name="M000021"></a><b>portability_ldflags</b>()
759
793
  </div>
760
794
  <div class="description">
761
795
  <p>
@@ -765,8 +799,8 @@ the linker.
765
799
  </p>
766
800
  </div>
767
801
  <div class="sourcecode">
768
- <p class="source-link">[ <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show source</a> ]</p>
769
- <div id="M000022_source" class="dyn-source">
802
+ <p class="source-link">[ <a href="javascript:toggleSource('M000021_source')" id="l_M000021_source">show source</a> ]</p>
803
+ <div id="M000021_source" class="dyn-source">
770
804
  <pre>
771
805
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 361</span>
772
806
  361: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">portability_ldflags</span>
@@ -782,7 +816,7 @@ the linker.
782
816
  </div>
783
817
  <div class="method">
784
818
  <div class="title">
785
- <a name="M000012"></a><b>rake</b>()
819
+ <a name="M000011"></a><b>rake</b>()
786
820
  </div>
787
821
  <div class="description">
788
822
  <p>
@@ -791,8 +825,8 @@ current Ruby interpreter. Returns nil if it doesn&#8216;t exist.
791
825
  </p>
792
826
  </div>
793
827
  <div class="sourcecode">
794
- <p class="source-link">[ <a href="javascript:toggleSource('M000012_source')" id="l_M000012_source">show source</a> ]</p>
795
- <div id="M000012_source" class="dyn-source">
828
+ <p class="source-link">[ <a href="javascript:toggleSource('M000011_source')" id="l_M000011_source">show source</a> ]</p>
829
+ <div id="M000011_source" class="dyn-source">
796
830
  <pre>
797
831
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 205</span>
798
832
  205: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rake</span>
@@ -804,7 +838,7 @@ current Ruby interpreter. Returns nil if it doesn&#8216;t exist.
804
838
  </div>
805
839
  <div class="method">
806
840
  <div class="title">
807
- <a name="M000013"></a><b>rspec</b>()
841
+ <a name="M000012"></a><b>rspec</b>()
808
842
  </div>
809
843
  <div class="description">
810
844
  <p>
@@ -813,8 +847,8 @@ current Ruby interpreter. Returns nil if it doesn&#8216;t exist.
813
847
  </p>
814
848
  </div>
815
849
  <div class="sourcecode">
816
- <p class="source-link">[ <a href="javascript:toggleSource('M000013_source')" id="l_M000013_source">show source</a> ]</p>
817
- <div id="M000013_source" class="dyn-source">
850
+ <p class="source-link">[ <a href="javascript:toggleSource('M000012_source')" id="l_M000012_source">show source</a> ]</p>
851
+ <div id="M000012_source" class="dyn-source">
818
852
  <pre>
819
853
  <span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 213</span>
820
854
  213: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rspec</span>