passenger 2.2.1 → 2.2.2
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.
- data/Rakefile +66 -79
- data/bin/passenger-install-nginx-module +1 -1
- data/bin/passenger-memory-stats +1 -1
- data/bin/passenger-spawn-server +8 -2
- data/doc/Users guide Apache.html +33 -49
- data/doc/Users guide Apache.txt +28 -27
- data/doc/Users guide Nginx.html +9 -19
- data/doc/Users guide Nginx.txt +8 -20
- data/doc/cxxapi/Bucket_8h-source.html +1 -1
- data/doc/cxxapi/Configuration_8h-source.html +297 -300
- data/doc/cxxapi/DirectoryMapper_8h-source.html +1 -1
- data/doc/cxxapi/Hooks_8h-source.html +1 -1
- data/doc/cxxapi/annotated.html +1 -1
- data/doc/cxxapi/classHooks-members.html +1 -1
- data/doc/cxxapi/classHooks.html +1 -1
- data/doc/cxxapi/classPassenger_1_1DirectoryMapper-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1DirectoryMapper.html +1 -1
- data/doc/cxxapi/classes.html +1 -1
- data/doc/cxxapi/definitions_8h-source.html +1 -1
- data/doc/cxxapi/files.html +1 -1
- data/doc/cxxapi/functions.html +1 -1
- data/doc/cxxapi/functions_func.html +1 -1
- data/doc/cxxapi/graph_legend.html +1 -1
- data/doc/cxxapi/group__Configuration.html +1 -23
- data/doc/cxxapi/group__Core.html +1 -1
- data/doc/cxxapi/group__Hooks.html +1 -1
- data/doc/cxxapi/group__Support.html +1 -1
- data/doc/cxxapi/main.html +1 -1
- data/doc/cxxapi/modules.html +1 -1
- data/doc/users_guide_snippets/rackup_specifications.txt +4 -2
- data/ext/apache2/Configuration.h +0 -3
- data/ext/apache2/Hooks.cpp +5 -3
- data/ext/common/ApplicationPoolServer.h +1 -0
- data/ext/common/ApplicationPoolServerExecutable.cpp +5 -2
- data/ext/common/SpawnManager.h +1 -0
- data/ext/common/Utils.cpp +22 -23
- data/ext/common/Utils.h +32 -21
- data/ext/common/Version.h +31 -0
- data/ext/nginx/ContentHandler.c +61 -8
- data/ext/nginx/HelperServer.cpp +3 -0
- data/ext/nginx/HttpStatusExtractor.h +185 -0
- data/ext/nginx/StaticContentHandler.c +18 -3
- data/ext/nginx/config +2 -1
- data/ext/nginx/ngx_http_passenger_module.c +21 -15
- data/ext/oxt/backtrace.cpp +4 -2
- data/ext/oxt/spin_lock.hpp +3 -3
- data/lib/phusion_passenger/abstract_request_handler.rb +5 -3
- data/lib/phusion_passenger/admin_tools/control_process.rb +6 -1
- data/lib/phusion_passenger/constants.rb +2 -2
- data/lib/phusion_passenger/rack/application_spawner.rb +2 -1
- data/lib/phusion_passenger/rack/request_handler.rb +45 -35
- data/lib/phusion_passenger/templates/nginx/config_snippets.txt.erb +1 -1
- data/lib/phusion_passenger/utils.rb +13 -3
- data/misc/rake/cplusplus.rb +7 -0
- data/test/ApplicationPoolServer_ApplicationPoolTest.cpp +2 -0
- data/test/ApplicationPoolTest.cpp +39 -62
- data/test/CxxTestMain.cpp +6 -6
- data/test/HttpStatusExtractorTest.cpp +17 -0
- data/test/StandardApplicationPoolTest.cpp +2 -0
- data/test/UtilsTest.cpp +17 -28
- data/test/ruby/abstract_request_handler_spec.rb +3 -7
- data/test/ruby/utils_spec.rb +18 -13
- data/test/ruby/wsgi/application_spawner_spec.rb +5 -9
- data/test/stub/railsapp/app/controllers/{bar_controller_1.rb → bar_controller.rb} +0 -0
- data/test/stub/railsapp/app/controllers/bar_controller_1.txt +5 -0
- data/test/stub/railsapp/app/controllers/{bar_controller_2.rb → bar_controller_2.txt} +0 -0
- data/test/support/Support.h +20 -0
- data/test/support/config.rb +13 -0
- data/vendor/README +4 -3
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/COPYING +1 -1
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/KNOWN-ISSUES +0 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/README +54 -7
- data/vendor/rack-1.0.0-git/Rakefile +164 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack.rb +7 -3
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/adapter/camping.rb +0 -0
- data/vendor/rack-1.0.0-git/lib/rack/auth/abstract/handler.rb +37 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/auth/abstract/request.rb +0 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/auth/basic.rb +0 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/auth/digest/md5.rb +1 -1
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/auth/digest/nonce.rb +0 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/auth/digest/params.rb +0 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/auth/digest/request.rb +2 -2
- data/vendor/rack-1.0.0-git/lib/rack/auth/openid.rb +480 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/builder.rb +1 -5
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/cascade.rb +0 -0
- data/vendor/rack-1.0.0-git/lib/rack/chunked.rb +49 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/commonlogger.rb +0 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/conditionalget.rb +4 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/content_length.rb +7 -3
- data/vendor/rack-1.0.0-git/lib/rack/content_type.rb +23 -0
- data/vendor/rack-1.0.0-git/lib/rack/deflater.rb +96 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/directory.rb +5 -2
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/file.rb +4 -1
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler.rb +22 -1
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/cgi.rb +7 -3
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/evented_mongrel.rb +0 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/fastcgi.rb +26 -24
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/lsws.rb +7 -4
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/mongrel.rb +5 -3
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/scgi.rb +5 -3
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/swiftiplied_mongrel.rb +0 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/thin.rb +3 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/webrick.rb +11 -5
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/head.rb +0 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/lint.rb +138 -66
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/lobster.rb +0 -0
- data/vendor/rack-1.0.0-git/lib/rack/lock.rb +16 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/methodoverride.rb +0 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/mime.rb +4 -4
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/mock.rb +42 -5
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/recursive.rb +0 -0
- data/vendor/rack-1.0.0-git/lib/rack/reloader.rb +106 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/request.rb +46 -10
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/response.rb +15 -3
- data/vendor/rack-1.0.0-git/lib/rack/rewindable_input.rb +98 -0
- data/vendor/rack-1.0.0-git/lib/rack/session/abstract/id.rb +142 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/session/cookie.rb +2 -0
- data/vendor/rack-1.0.0-git/lib/rack/session/memcache.rb +109 -0
- data/vendor/rack-1.0.0-git/lib/rack/session/pool.rb +100 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/showexceptions.rb +2 -1
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/showstatus.rb +1 -1
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/static.rb +0 -0
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/urlmap.rb +12 -5
- data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/utils.rb +212 -65
- metadata +71 -170
- data/doc/rdoc/classes/ConditionVariable.html +0 -194
- data/doc/rdoc/classes/Exception.html +0 -120
- data/doc/rdoc/classes/GC.html +0 -113
- data/doc/rdoc/classes/IO.html +0 -169
- data/doc/rdoc/classes/PhusionPassenger.html +0 -238
- data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +0 -153
- data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +0 -506
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +0 -692
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerAlreadyStarted.html +0 -97
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerError.html +0 -96
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerNotStarted.html +0 -97
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/UnknownMessage.html +0 -96
- data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +0 -598
- data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +0 -140
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess.html +0 -264
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess/Instance.html +0 -138
- data/doc/rdoc/classes/PhusionPassenger/AppInitError.html +0 -154
- data/doc/rdoc/classes/PhusionPassenger/Application.html +0 -283
- data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +0 -172
- data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +0 -145
- data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +0 -175
- data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +0 -141
- data/doc/rdoc/classes/PhusionPassenger/InvalidPath.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +0 -489
- data/doc/rdoc/classes/PhusionPassenger/NativeSupport.html +0 -350
- data/doc/rdoc/classes/PhusionPassenger/Rack.html +0 -91
- data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +0 -185
- data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +0 -184
- data/doc/rdoc/classes/PhusionPassenger/Railz.html +0 -95
- data/doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner.html +0 -419
- data/doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner/Error.html +0 -98
- data/doc/rdoc/classes/PhusionPassenger/Railz/CGIFixed.html +0 -200
- data/doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner.html +0 -443
- data/doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner/Error.html +0 -98
- data/doc/rdoc/classes/PhusionPassenger/Railz/RequestHandler.html +0 -154
- data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +0 -402
- data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +0 -125
- data/doc/rdoc/classes/PhusionPassenger/Utils.html +0 -694
- data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +0 -140
- data/doc/rdoc/classes/PhusionPassenger/WSGI.html +0 -89
- data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +0 -188
- data/doc/rdoc/classes/PlatformInfo.html +0 -831
- data/doc/rdoc/classes/RakeExtensions.html +0 -197
- data/doc/rdoc/classes/Signal.html +0 -134
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/DEVELOPERS_TXT.html +0 -240
- data/doc/rdoc/files/README.html +0 -157
- data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +0 -92
- data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +0 -129
- data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +0 -131
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +0 -130
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/control_process_rb.html +0 -129
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/application_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +0 -134
- data/doc/rdoc/files/lib/phusion_passenger/events_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/html_template_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/packaging_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +0 -133
- data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/railz/application_spawner_rb.html +0 -143
- data/doc/rdoc/files/lib/phusion_passenger/railz/cgi_fixed_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/railz/framework_spawner_rb.html +0 -145
- data/doc/rdoc/files/lib/phusion_passenger/railz/request_handler_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +0 -161
- data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +0 -175
- data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +0 -129
- data/doc/rdoc/files/misc/rake/extensions_rb.html +0 -130
- data/doc/rdoc/fr_class_index.html +0 -90
- data/doc/rdoc/fr_file_index.html +0 -76
- data/doc/rdoc/fr_method_index.html +0 -195
- data/doc/rdoc/index.html +0 -26
- data/doc/rdoc/rdoc-style.css +0 -187
- data/vendor/rack-0.9.1/AUTHORS +0 -8
- data/vendor/rack-0.9.1/ChangeLog +0 -1423
- data/vendor/rack-0.9.1/Rakefile +0 -188
- data/vendor/rack-0.9.1/SPEC +0 -129
- data/vendor/rack-0.9.1/lib/rack/auth/abstract/handler.rb +0 -28
- data/vendor/rack-0.9.1/lib/rack/auth/openid.rb +0 -438
- data/vendor/rack-0.9.1/lib/rack/deflater.rb +0 -87
- data/vendor/rack-0.9.1/lib/rack/reloader.rb +0 -64
- data/vendor/rack-0.9.1/lib/rack/session/abstract/id.rb +0 -153
- data/vendor/rack-0.9.1/lib/rack/session/memcache.rb +0 -97
- data/vendor/rack-0.9.1/lib/rack/session/pool.rb +0 -73
@@ -1,140 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Class: PhusionPassenger::VersionNotFound</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />PhusionPassenger::VersionNotFound</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../../files/lib/phusion_passenger/exceptions_rb.html">lib/phusion_passenger/exceptions.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>Parent:</td>
|
65
|
-
<td>
|
66
|
-
StandardError
|
67
|
-
</td>
|
68
|
-
</tr>
|
69
|
-
</table>
|
70
|
-
</td>
|
71
|
-
</tr>
|
72
|
-
</table>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
<div class="description"><p>
|
79
|
-
Indicates that there is no Ruby on Rails version installed that satisfies a
|
80
|
-
given Ruby on Rails Gem version specification.
|
81
|
-
</p>
|
82
|
-
</div>
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
<div class="sectiontitle">Methods</div>
|
87
|
-
<ul>
|
88
|
-
<li><a href="#M000090">new</a></li>
|
89
|
-
</ul>
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
<div class="sectiontitle">Attributes</div>
|
96
|
-
<table border='0' cellpadding='5'>
|
97
|
-
<tr valign='top'>
|
98
|
-
<td class='attr-rw'>
|
99
|
-
[R]
|
100
|
-
</td>
|
101
|
-
<td class='attr-name'>gem_version_spec</td>
|
102
|
-
<td class='attr-desc'></td>
|
103
|
-
</tr>
|
104
|
-
</table>
|
105
|
-
|
106
|
-
<div class="sectiontitle">Public Class methods</div>
|
107
|
-
<div class="method">
|
108
|
-
<div class="title">
|
109
|
-
<a name="M000090"></a><b>new</b>(message, gem_version_spec)
|
110
|
-
</div>
|
111
|
-
<div class="description">
|
112
|
-
<ul>
|
113
|
-
<li><tt>message</tt>: The exception message.
|
114
|
-
|
115
|
-
</li>
|
116
|
-
<li><tt>gem_version_spec</tt>: The Ruby on Rails Gem version specification that
|
117
|
-
caused this error.
|
118
|
-
|
119
|
-
</li>
|
120
|
-
</ul>
|
121
|
-
</div>
|
122
|
-
<div class="sourcecode">
|
123
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000090_source')" id="l_M000090_source">show source</a> ]</p>
|
124
|
-
<div id="M000090_source" class="dyn-source">
|
125
|
-
<pre>
|
126
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/exceptions.rb, line 33</span>
|
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>)
|
128
|
-
34: <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">message</span>)
|
129
|
-
35: <span class="ruby-ivar">@gem_version_spec</span> = <span class="ruby-identifier">gem_version_spec</span>
|
130
|
-
36: <span class="ruby-keyword kw">end</span>
|
131
|
-
</pre>
|
132
|
-
</div>
|
133
|
-
</div>
|
134
|
-
</div>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
</div>
|
138
|
-
|
139
|
-
</body>
|
140
|
-
</html>
|
@@ -1,89 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Module: PhusionPassenger::WSGI</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Module</span><br />PhusionPassenger::WSGI</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../../files/lib/phusion_passenger/wsgi/application_spawner_rb.html">lib/phusion_passenger/wsgi/application_spawner.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
</table>
|
64
|
-
</td>
|
65
|
-
</tr>
|
66
|
-
</table>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
<div id="content">
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
<div class="sectiontitle">Classes and Modules</div>
|
79
|
-
Class <a href="WSGI/ApplicationSpawner.html" class="link">PhusionPassenger::WSGI::ApplicationSpawner</a><br />
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
</div>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
</body>
|
89
|
-
</html>
|
@@ -1,188 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Class: PhusionPassenger::WSGI::ApplicationSpawner</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />PhusionPassenger::WSGI::ApplicationSpawner</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../../../files/lib/phusion_passenger/wsgi/application_spawner_rb.html">lib/phusion_passenger/wsgi/application_spawner.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>Parent:</td>
|
65
|
-
<td>
|
66
|
-
Object
|
67
|
-
</td>
|
68
|
-
</tr>
|
69
|
-
</table>
|
70
|
-
</td>
|
71
|
-
</tr>
|
72
|
-
</table>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
<div class="description"><p>
|
79
|
-
Class for spawning <a href="../WSGI.html">WSGI</a> applications.
|
80
|
-
</p>
|
81
|
-
</div>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<div class="sectiontitle">Methods</div>
|
86
|
-
<ul>
|
87
|
-
<li><a href="#M000037">spawn_application</a></li>
|
88
|
-
<li><a href="#M000038">spawn_application</a></li>
|
89
|
-
</ul>
|
90
|
-
|
91
|
-
<div class="sectiontitle">Included Modules</div>
|
92
|
-
<ul>
|
93
|
-
<li><a href="../Utils.html">Utils</a></li>
|
94
|
-
</ul>
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
<div class="sectiontitle">Constants</div>
|
99
|
-
<table border='0' cellpadding='5'>
|
100
|
-
<tr valign='top'>
|
101
|
-
<td class="attr-name">REQUEST_HANDLER</td>
|
102
|
-
<td>=</td>
|
103
|
-
<td class="attr-value">File.expand_path(File.dirname(__FILE__) + "/request_handler.py")</td>
|
104
|
-
</tr>
|
105
|
-
</table>
|
106
|
-
|
107
|
-
|
108
|
-
<div class="sectiontitle">Public Class methods</div>
|
109
|
-
<div class="method">
|
110
|
-
<div class="title">
|
111
|
-
<a name="M000037"></a><b>spawn_application</b>(*args)
|
112
|
-
</div>
|
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">
|
116
|
-
<pre>
|
117
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/wsgi/application_spawner.rb, line 36</span>
|
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>)
|
119
|
-
37: <span class="ruby-ivar">@@instance</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">ApplicationSpawner</span>.<span class="ruby-identifier">new</span>
|
120
|
-
38: <span class="ruby-ivar">@@instance</span>.<span class="ruby-identifier">spawn_application</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
121
|
-
39: <span class="ruby-keyword kw">end</span>
|
122
|
-
</pre>
|
123
|
-
</div>
|
124
|
-
</div>
|
125
|
-
</div>
|
126
|
-
<div class="sectiontitle">Public Instance methods</div>
|
127
|
-
<div class="method">
|
128
|
-
<div class="title">
|
129
|
-
<a name="M000038"></a><b>spawn_application</b>(app_root, lower_privilege = true, lowest_user = "nobody", environment = "production")
|
130
|
-
</div>
|
131
|
-
<div class="description">
|
132
|
-
<p>
|
133
|
-
Spawn an instance of the given <a href="../WSGI.html">WSGI</a> application.
|
134
|
-
When successful, an <a href="../Application.html">Application</a> object
|
135
|
-
will be returned, which represents the spawned application.
|
136
|
-
</p>
|
137
|
-
<p>
|
138
|
-
Raises:
|
139
|
-
</p>
|
140
|
-
<ul>
|
141
|
-
<li><a href="../AppInitError.html">AppInitError</a>: The <a
|
142
|
-
href="../WSGI.html">WSGI</a> application raised an exception or called
|
143
|
-
exit() during startup.
|
144
|
-
|
145
|
-
</li>
|
146
|
-
<li>SystemCallError, IOError, SocketError: Something went wrong.
|
147
|
-
|
148
|
-
</li>
|
149
|
-
</ul>
|
150
|
-
</div>
|
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">
|
154
|
-
<pre>
|
155
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/wsgi/application_spawner.rb, line 49</span>
|
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">"nobody"</span>, <span class="ruby-identifier">environment</span> = <span class="ruby-value str">"production"</span>)
|
157
|
-
50: <span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span> = <span class="ruby-constant">UNIXSocket</span>.<span class="ruby-identifier">pair</span>
|
158
|
-
51: <span class="ruby-identifier">pid</span> = <span class="ruby-identifier">safe_fork</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-keyword kw">true</span>) <span class="ruby-keyword kw">do</span>
|
159
|
-
52: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">close</span>
|
160
|
-
53:
|
161
|
-
54: <span class="ruby-identifier">file_descriptors_to_leave_open</span> = [<span class="ruby-value">0</span>, <span class="ruby-value">1</span>, <span class="ruby-value">2</span>, <span class="ruby-identifier">b</span>.<span class="ruby-identifier">fileno</span>]
|
162
|
-
55: <span class="ruby-constant">NativeSupport</span>.<span class="ruby-identifier">close_all_file_descriptors</span>(<span class="ruby-identifier">file_descriptors_to_leave_open</span>)
|
163
|
-
56: <span class="ruby-identifier">close_all_io_objects_for_fds</span>(<span class="ruby-identifier">file_descriptors_to_leave_open</span>)
|
164
|
-
57:
|
165
|
-
58: <span class="ruby-identifier">run</span>(<span class="ruby-constant">MessageChannel</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">b</span>), <span class="ruby-identifier">app_root</span>, <span class="ruby-identifier">lower_privilege</span>, <span class="ruby-identifier">lowest_user</span>, <span class="ruby-identifier">environment</span>)
|
166
|
-
59: <span class="ruby-keyword kw">end</span>
|
167
|
-
60: <span class="ruby-identifier">b</span>.<span class="ruby-identifier">close</span>
|
168
|
-
61: <span class="ruby-constant">Process</span>.<span class="ruby-identifier">waitpid</span>(<span class="ruby-identifier">pid</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
|
169
|
-
62:
|
170
|
-
63: <span class="ruby-identifier">channel</span> = <span class="ruby-constant">MessageChannel</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">a</span>)
|
171
|
-
64: <span class="ruby-identifier">pid</span>, <span class="ruby-identifier">socket_name</span>, <span class="ruby-identifier">socket_type</span> = <span class="ruby-identifier">channel</span>.<span class="ruby-identifier">read</span>
|
172
|
-
65: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">pid</span>.<span class="ruby-identifier">nil?</span>
|
173
|
-
66: <span class="ruby-identifier">raise</span> <span class="ruby-constant">IOError</span>, <span class="ruby-value str">"Connection closed"</span>
|
174
|
-
67: <span class="ruby-keyword kw">end</span>
|
175
|
-
68: <span class="ruby-identifier">owner_pipe</span> = <span class="ruby-identifier">channel</span>.<span class="ruby-identifier">recv_io</span>
|
176
|
-
69: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Application</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@app_root</span>, <span class="ruby-identifier">pid</span>, <span class="ruby-identifier">socket_name</span>,
|
177
|
-
70: <span class="ruby-identifier">socket_type</span>, <span class="ruby-identifier">owner_pipe</span>)
|
178
|
-
71: <span class="ruby-keyword kw">end</span>
|
179
|
-
</pre>
|
180
|
-
</div>
|
181
|
-
</div>
|
182
|
-
</div>
|
183
|
-
</div>
|
184
|
-
|
185
|
-
</div>
|
186
|
-
|
187
|
-
</body>
|
188
|
-
</html>
|
@@ -1,831 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Module: PlatformInfo</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Module</span><br />PlatformInfo</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../files/lib/phusion_passenger/platform_info_rb.html">lib/phusion_passenger/platform_info.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
</table>
|
64
|
-
</td>
|
65
|
-
</tr>
|
66
|
-
</table>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
<div id="content">
|
71
|
-
|
72
|
-
<div class="description"><p>
|
73
|
-
This module autodetects various platform-specific information, and provides
|
74
|
-
that information through constants.
|
75
|
-
</p>
|
76
|
-
<p>
|
77
|
-
Users can change the detection behavior by setting the environment variable
|
78
|
-
<tt>APXS2</tt> to the correct ‘apxs’ (or ‘<a
|
79
|
-
href="PlatformInfo.html#M000014">apxs2</a>’) binary, as provided by
|
80
|
-
Apache.
|
81
|
-
</p>
|
82
|
-
</div>
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
<div class="sectiontitle">Methods</div>
|
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>
|
110
|
-
</ul>
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
<div class="sectiontitle">Constants</div>
|
116
|
-
<table border='0' cellpadding='5'>
|
117
|
-
<tr valign='top'>
|
118
|
-
<td class="attr-name">RUBY</td>
|
119
|
-
<td>=</td>
|
120
|
-
<td class="attr-value">Config::CONFIG['bindir'] + '/' + Config::CONFIG['RUBY_INSTALL_NAME'] + Config::CONFIG['EXEEXT']</td>
|
121
|
-
</tr>
|
122
|
-
<tr valign='top'>
|
123
|
-
<td> </td>
|
124
|
-
<td colspan="2" class="attr-desc">
|
125
|
-
The absolute path to the current Ruby interpreter.
|
126
|
-
|
127
|
-
</td>
|
128
|
-
</tr>
|
129
|
-
<tr valign='top'>
|
130
|
-
<td class="attr-name">GEM</td>
|
131
|
-
<td>=</td>
|
132
|
-
<td class="attr-value">locate_ruby_executable('gem')</td>
|
133
|
-
</tr>
|
134
|
-
<tr valign='top'>
|
135
|
-
<td> </td>
|
136
|
-
<td colspan="2" class="attr-desc">
|
137
|
-
The correct ‘gem’ command for this Ruby interpreter.
|
138
|
-
|
139
|
-
</td>
|
140
|
-
</tr>
|
141
|
-
</table>
|
142
|
-
|
143
|
-
|
144
|
-
<div class="sectiontitle">Public Class methods</div>
|
145
|
-
<div class="method">
|
146
|
-
<div class="title">
|
147
|
-
<a name="M000019"></a><b>apache2_bindir</b>()
|
148
|
-
</div>
|
149
|
-
<div class="description">
|
150
|
-
<p>
|
151
|
-
The absolute path to the Apache 2 ‘bin’ directory.
|
152
|
-
</p>
|
153
|
-
</div>
|
154
|
-
<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">
|
157
|
-
<pre>
|
158
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 312</span>
|
159
|
-
312: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2_bindir</span>
|
160
|
-
313: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">apxs2</span>.<span class="ruby-identifier">nil?</span>
|
161
|
-
314: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
162
|
-
315: <span class="ruby-keyword kw">else</span>
|
163
|
-
316: <span class="ruby-keyword kw">return</span> <span class="ruby-node">`#{apxs2} -q BINDIR 2>/dev/null`</span>.<span class="ruby-identifier">strip</span>
|
164
|
-
317: <span class="ruby-keyword kw">end</span>
|
165
|
-
318: <span class="ruby-keyword kw">end</span>
|
166
|
-
</pre>
|
167
|
-
</div>
|
168
|
-
</div>
|
169
|
-
</div>
|
170
|
-
<div class="method">
|
171
|
-
<div class="title">
|
172
|
-
<a name="M000024"></a><b>apache2_module_cflags</b>(with_apr_flags = true)
|
173
|
-
</div>
|
174
|
-
<div class="description">
|
175
|
-
<p>
|
176
|
-
The C compiler flags that are necessary to compile an Apache module.
|
177
|
-
Possibly includes APR and APU compiler flags.
|
178
|
-
</p>
|
179
|
-
</div>
|
180
|
-
<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">
|
183
|
-
<pre>
|
184
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 383</span>
|
185
|
-
383: <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>)
|
186
|
-
384: <span class="ruby-identifier">flags</span> = [<span class="ruby-value str">"-fPIC"</span>]
|
187
|
-
385: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">with_apr_flags</span>
|
188
|
-
386: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">apr_flags</span>
|
189
|
-
387: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">apu_flags</span>
|
190
|
-
388: <span class="ruby-keyword kw">end</span>
|
191
|
-
389: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">apxs2</span>.<span class="ruby-identifier">nil?</span>
|
192
|
-
390: <span class="ruby-identifier">apxs2_flags</span> = <span class="ruby-node">`#{apxs2} -q CFLAGS`</span>.<span class="ruby-identifier">strip</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">" -I"</span> <span class="ruby-operator"><<</span> <span class="ruby-node">`#{apxs2} -q INCLUDEDIR`</span>.<span class="ruby-identifier">strip</span>
|
193
|
-
391: <span class="ruby-identifier">apxs2_flags</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/-O\d? /</span>, <span class="ruby-value str">''</span>)
|
194
|
-
392:
|
195
|
-
393: <span class="ruby-comment cmt"># Remove flags not supported by GCC</span>
|
196
|
-
394: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/solaris/</span> <span class="ruby-comment cmt"># TODO: Add support for people using SunStudio</span>
|
197
|
-
395: <span class="ruby-comment cmt"># The big problem is Coolstack apxs includes a bunch of solaris -x directives.</span>
|
198
|
-
396: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">apxs2_flags</span>.<span class="ruby-identifier">split</span>
|
199
|
-
397: <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
|
-
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">/^\-Xa/</span> }
|
201
|
-
399: <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
|
-
400: <span class="ruby-keyword kw">end</span>
|
203
|
-
401:
|
204
|
-
402: <span class="ruby-identifier">apxs2_flags</span>.<span class="ruby-identifier">strip!</span>
|
205
|
-
403: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">apxs2_flags</span>
|
206
|
-
404: <span class="ruby-keyword kw">end</span>
|
207
|
-
405: <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">&&</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/darwin/</span>
|
208
|
-
406: <span class="ruby-comment cmt"># The default Apache install on OS X is a universal binary.</span>
|
209
|
-
407: <span class="ruby-comment cmt"># Figure out which architectures it's compiled for and do the same</span>
|
210
|
-
408: <span class="ruby-comment cmt"># thing for mod_passenger. We use the 'file' utility to do this.</span>
|
211
|
-
409: <span class="ruby-comment cmt">#</span>
|
212
|
-
410: <span class="ruby-comment cmt"># Running 'file' on the Apache executable usually outputs something</span>
|
213
|
-
411: <span class="ruby-comment cmt"># like this:</span>
|
214
|
-
412: <span class="ruby-comment cmt">#</span>
|
215
|
-
413: <span class="ruby-comment cmt"># /usr/sbin/httpd: Mach-O universal binary with 4 architectures</span>
|
216
|
-
414: <span class="ruby-comment cmt"># /usr/sbin/httpd (for architecture ppc7400): Mach-O executable ppc</span>
|
217
|
-
415: <span class="ruby-comment cmt"># /usr/sbin/httpd (for architecture ppc64): Mach-O 64-bit executable ppc64</span>
|
218
|
-
416: <span class="ruby-comment cmt"># /usr/sbin/httpd (for architecture i386): Mach-O executable i386</span>
|
219
|
-
417: <span class="ruby-comment cmt"># /usr/sbin/httpd (for architecture x86_64): Mach-O 64-bit executable x86_64</span>
|
220
|
-
418: <span class="ruby-comment cmt">#</span>
|
221
|
-
419: <span class="ruby-comment cmt"># But on some machines, it may output just:</span>
|
222
|
-
420: <span class="ruby-comment cmt">#</span>
|
223
|
-
421: <span class="ruby-comment cmt"># /usr/sbin/httpd: Mach-O fat file with 4 architectures</span>
|
224
|
-
422: <span class="ruby-comment cmt">#</span>
|
225
|
-
423: <span class="ruby-comment cmt"># (http://code.google.com/p/phusion-passenger/issues/detail?id=236)</span>
|
226
|
-
424: <span class="ruby-identifier">output</span> = <span class="ruby-node">`file "#{httpd}"`</span>.<span class="ruby-identifier">strip</span>
|
227
|
-
425: <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">&&</span> <span class="ruby-identifier">output</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/for architecture/</span>
|
228
|
-
426: <span class="ruby-identifier">architectures</span> = [<span class="ruby-value str">"-arch i386 -arch ppc -arch x86_64 -arch ppc64"</span>]
|
229
|
-
427: <span class="ruby-keyword kw">else</span>
|
230
|
-
428: <span class="ruby-identifier">architectures</span> = []
|
231
|
-
429: <span class="ruby-identifier">output</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">"\n"</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
|
-
430: <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/for architecture (.*?)\)/</span>
|
233
|
-
431: <span class="ruby-identifier">architectures</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"-arch #{$1}"</span>
|
234
|
-
432: <span class="ruby-keyword kw">end</span>
|
235
|
-
433: <span class="ruby-keyword kw">end</span>
|
236
|
-
434: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</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
|
-
435: <span class="ruby-keyword kw">end</span>
|
238
|
-
436: <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
|
-
437: <span class="ruby-keyword kw">end</span>
|
240
|
-
</pre>
|
241
|
-
</div>
|
242
|
-
</div>
|
243
|
-
</div>
|
244
|
-
<div class="method">
|
245
|
-
<div class="title">
|
246
|
-
<a name="M000025"></a><b>apache2_module_ldflags</b>()
|
247
|
-
</div>
|
248
|
-
<div class="description">
|
249
|
-
<p>
|
250
|
-
Linker flags that are necessary for linking an Apache module. Possibly
|
251
|
-
includes APR and APU linker flags.
|
252
|
-
</p>
|
253
|
-
</div>
|
254
|
-
<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">
|
257
|
-
<pre>
|
258
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 442</span>
|
259
|
-
442: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2_module_ldflags</span>
|
260
|
-
443: <span class="ruby-identifier">flags</span> = <span class="ruby-node">"-fPIC #{apr_libs} #{apu_libs}"</span>
|
261
|
-
444: <span class="ruby-identifier">flags</span>.<span class="ruby-identifier">strip!</span>
|
262
|
-
445: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">flags</span>
|
263
|
-
446: <span class="ruby-keyword kw">end</span>
|
264
|
-
</pre>
|
265
|
-
</div>
|
266
|
-
</div>
|
267
|
-
</div>
|
268
|
-
<div class="method">
|
269
|
-
<div class="title">
|
270
|
-
<a name="M000020"></a><b>apache2_sbindir</b>()
|
271
|
-
</div>
|
272
|
-
<div class="description">
|
273
|
-
<p>
|
274
|
-
The absolute path to the Apache 2 ‘sbin’ directory.
|
275
|
-
</p>
|
276
|
-
</div>
|
277
|
-
<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">
|
280
|
-
<pre>
|
281
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 322</span>
|
282
|
-
322: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2_sbindir</span>
|
283
|
-
323: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">apxs2</span>.<span class="ruby-identifier">nil?</span>
|
284
|
-
324: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
285
|
-
325: <span class="ruby-keyword kw">else</span>
|
286
|
-
326: <span class="ruby-keyword kw">return</span> <span class="ruby-node">`#{apxs2} -q SBINDIR`</span>.<span class="ruby-identifier">strip</span>
|
287
|
-
327: <span class="ruby-keyword kw">end</span>
|
288
|
-
328: <span class="ruby-keyword kw">end</span>
|
289
|
-
</pre>
|
290
|
-
</div>
|
291
|
-
</div>
|
292
|
-
</div>
|
293
|
-
<div class="method">
|
294
|
-
<div class="title">
|
295
|
-
<a name="M000015"></a><b>apache2ctl</b>()
|
296
|
-
</div>
|
297
|
-
<div class="description">
|
298
|
-
<p>
|
299
|
-
The absolute path to the ‘apachectl’ or ‘<a
|
300
|
-
href="PlatformInfo.html#M000015">apache2ctl</a>’ binary.
|
301
|
-
</p>
|
302
|
-
</div>
|
303
|
-
<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">
|
306
|
-
<pre>
|
307
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 234</span>
|
308
|
-
234: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2ctl</span>
|
309
|
-
235: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">find_apache2_executable</span>(<span class="ruby-value str">'apache2ctl'</span>, <span class="ruby-value str">'apachectl2'</span>, <span class="ruby-value str">'apachectl'</span>)
|
310
|
-
236: <span class="ruby-keyword kw">end</span>
|
311
|
-
</pre>
|
312
|
-
</div>
|
313
|
-
</div>
|
314
|
-
</div>
|
315
|
-
<div class="method">
|
316
|
-
<div class="title">
|
317
|
-
<a name="M000017"></a><b>apr_config</b>()
|
318
|
-
</div>
|
319
|
-
<div class="description">
|
320
|
-
<p>
|
321
|
-
The absolute path to the ‘apr-config’ or
|
322
|
-
‘apr-1-config’ executable.
|
323
|
-
</p>
|
324
|
-
</div>
|
325
|
-
<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">
|
328
|
-
<pre>
|
329
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 258</span>
|
330
|
-
258: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_config</span>
|
331
|
-
259: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">env_defined?</span>(<span class="ruby-value str">'APR_CONFIG'</span>)
|
332
|
-
260: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'APR_CONFIG'</span>]
|
333
|
-
261: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">apxs2</span>.<span class="ruby-identifier">nil?</span>
|
334
|
-
262: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
335
|
-
263: <span class="ruby-keyword kw">else</span>
|
336
|
-
264: <span class="ruby-identifier">filename</span> = <span class="ruby-node">`#{apxs2} -q APR_CONFIG 2>/dev/null`</span>.<span class="ruby-identifier">strip</span>
|
337
|
-
265: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filename</span>.<span class="ruby-identifier">empty?</span>
|
338
|
-
266: <span class="ruby-identifier">apr_bindir</span> = <span class="ruby-node">`#{apxs2} -q APR_BINDIR 2>/dev/null`</span>.<span class="ruby-identifier">strip</span>
|
339
|
-
267: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">apr_bindir</span>.<span class="ruby-identifier">empty?</span>
|
340
|
-
268: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
341
|
-
269: <span class="ruby-keyword kw">else</span>
|
342
|
-
270: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">select_executable</span>(<span class="ruby-identifier">apr_bindir</span>,
|
343
|
-
271: <span class="ruby-value str">"apr-1-config"</span>, <span class="ruby-value str">"apr-config"</span>)
|
344
|
-
272: <span class="ruby-keyword kw">end</span>
|
345
|
-
273: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">filename</span>)
|
346
|
-
274: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">filename</span>
|
347
|
-
275: <span class="ruby-keyword kw">else</span>
|
348
|
-
276: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
349
|
-
277: <span class="ruby-keyword kw">end</span>
|
350
|
-
278: <span class="ruby-keyword kw">end</span>
|
351
|
-
279: <span class="ruby-keyword kw">end</span>
|
352
|
-
</pre>
|
353
|
-
</div>
|
354
|
-
</div>
|
355
|
-
</div>
|
356
|
-
<div class="method">
|
357
|
-
<div class="title">
|
358
|
-
<a name="M000030"></a><b>apr_config_needed_for_building_apache_modules?</b>()
|
359
|
-
</div>
|
360
|
-
<div class="description">
|
361
|
-
<p>
|
362
|
-
Returns whether it is necessary to use information outputted by
|
363
|
-
‘apr-config’ and ‘apu-config’ in order to compile
|
364
|
-
an Apache module. When Apache is installed with —with-included-apr,
|
365
|
-
the APR/APU headers are placed into the same directory as the Apache
|
366
|
-
headers, and so ‘apr-config’ and ‘apu-config’
|
367
|
-
won‘t be necessary in that case.
|
368
|
-
</p>
|
369
|
-
</div>
|
370
|
-
<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">
|
373
|
-
<pre>
|
374
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 478</span>
|
375
|
-
478: <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
|
-
479: <span class="ruby-identifier">filename</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-node">"/tmp/passenger-platform-check-#{Process.pid}.c"</span>)
|
377
|
-
480: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-value str">"w"</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
|
-
481: <span class="ruby-identifier">f</span>.<span class="ruby-identifier">puts</span>(<span class="ruby-value str">"#include <apr.h>"</span>)
|
379
|
-
482: <span class="ruby-keyword kw">end</span>
|
380
|
-
483: <span class="ruby-keyword kw">begin</span>
|
381
|
-
484: <span class="ruby-keyword kw">return</span> <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>(<span class="ruby-node">"(gcc #{apache2_module_cflags(false)} -c '#{filename}' -o '#{filename}.o') >/dev/null 2>/dev/null"</span>)
|
382
|
-
485: <span class="ruby-keyword kw">ensure</span>
|
383
|
-
486: <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
|
-
487: <span class="ruby-constant">File</span>.<span class="ruby-identifier">unlink</span>(<span class="ruby-node">"#{filename}.o"</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
|
385
|
-
488: <span class="ruby-keyword kw">end</span>
|
386
|
-
489: <span class="ruby-keyword kw">end</span>
|
387
|
-
</pre>
|
388
|
-
</div>
|
389
|
-
</div>
|
390
|
-
</div>
|
391
|
-
<div class="method">
|
392
|
-
<div class="title">
|
393
|
-
<a name="M000026"></a><b>apr_flags</b>()
|
394
|
-
</div>
|
395
|
-
<div class="description">
|
396
|
-
<p>
|
397
|
-
The C compiler flags that are necessary for programs that use APR.
|
398
|
-
</p>
|
399
|
-
</div>
|
400
|
-
<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">
|
403
|
-
<pre>
|
404
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 450</span>
|
405
|
-
450: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_flags</span>
|
406
|
-
451: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apr_info</span>[<span class="ruby-value">0</span>]
|
407
|
-
452: <span class="ruby-keyword kw">end</span>
|
408
|
-
</pre>
|
409
|
-
</div>
|
410
|
-
</div>
|
411
|
-
</div>
|
412
|
-
<div class="method">
|
413
|
-
<div class="title">
|
414
|
-
<a name="M000027"></a><b>apr_libs</b>()
|
415
|
-
</div>
|
416
|
-
<div class="description">
|
417
|
-
<p>
|
418
|
-
The linker flags that are necessary for linking programs that use APR.
|
419
|
-
</p>
|
420
|
-
</div>
|
421
|
-
<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">
|
424
|
-
<pre>
|
425
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 455</span>
|
426
|
-
455: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_libs</span>
|
427
|
-
456: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apr_info</span>[<span class="ruby-value">1</span>]
|
428
|
-
457: <span class="ruby-keyword kw">end</span>
|
429
|
-
</pre>
|
430
|
-
</div>
|
431
|
-
</div>
|
432
|
-
</div>
|
433
|
-
<div class="method">
|
434
|
-
<div class="title">
|
435
|
-
<a name="M000018"></a><b>apu_config</b>()
|
436
|
-
</div>
|
437
|
-
<div class="description">
|
438
|
-
<p>
|
439
|
-
The absolute path to the ‘apu-config’ or
|
440
|
-
‘apu-1-config’ executable.
|
441
|
-
</p>
|
442
|
-
</div>
|
443
|
-
<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">
|
446
|
-
<pre>
|
447
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 283</span>
|
448
|
-
283: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apu_config</span>
|
449
|
-
284: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">env_defined?</span>(<span class="ruby-value str">'APU_CONFIG'</span>)
|
450
|
-
285: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'APU_CONFIG'</span>]
|
451
|
-
286: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">apxs2</span>.<span class="ruby-identifier">nil?</span>
|
452
|
-
287: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
453
|
-
288: <span class="ruby-keyword kw">else</span>
|
454
|
-
289: <span class="ruby-identifier">filename</span> = <span class="ruby-node">`#{apxs2} -q APU_CONFIG 2>/dev/null`</span>.<span class="ruby-identifier">strip</span>
|
455
|
-
290: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filename</span>.<span class="ruby-identifier">empty?</span>
|
456
|
-
291: <span class="ruby-identifier">apu_bindir</span> = <span class="ruby-node">`#{apxs2} -q APU_BINDIR 2>/dev/null`</span>.<span class="ruby-identifier">strip</span>
|
457
|
-
292: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">apu_bindir</span>.<span class="ruby-identifier">empty?</span>
|
458
|
-
293: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
459
|
-
294: <span class="ruby-keyword kw">else</span>
|
460
|
-
295: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">select_executable</span>(<span class="ruby-identifier">apu_bindir</span>,
|
461
|
-
296: <span class="ruby-value str">"apu-1-config"</span>, <span class="ruby-value str">"apu-config"</span>)
|
462
|
-
297: <span class="ruby-keyword kw">end</span>
|
463
|
-
298: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">filename</span>)
|
464
|
-
299: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">filename</span>
|
465
|
-
300: <span class="ruby-keyword kw">else</span>
|
466
|
-
301: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
467
|
-
302: <span class="ruby-keyword kw">end</span>
|
468
|
-
303: <span class="ruby-keyword kw">end</span>
|
469
|
-
304: <span class="ruby-keyword kw">end</span>
|
470
|
-
</pre>
|
471
|
-
</div>
|
472
|
-
</div>
|
473
|
-
</div>
|
474
|
-
<div class="method">
|
475
|
-
<div class="title">
|
476
|
-
<a name="M000028"></a><b>apu_flags</b>()
|
477
|
-
</div>
|
478
|
-
<div class="description">
|
479
|
-
<p>
|
480
|
-
The C compiler flags that are necessary for programs that use APR-Util.
|
481
|
-
</p>
|
482
|
-
</div>
|
483
|
-
<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">
|
486
|
-
<pre>
|
487
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 460</span>
|
488
|
-
460: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apu_flags</span>
|
489
|
-
461: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apu_info</span>[<span class="ruby-value">0</span>]
|
490
|
-
462: <span class="ruby-keyword kw">end</span>
|
491
|
-
</pre>
|
492
|
-
</div>
|
493
|
-
</div>
|
494
|
-
</div>
|
495
|
-
<div class="method">
|
496
|
-
<div class="title">
|
497
|
-
<a name="M000029"></a><b>apu_libs</b>()
|
498
|
-
</div>
|
499
|
-
<div class="description">
|
500
|
-
<p>
|
501
|
-
The linker flags that are necessary for linking programs that use APR-Util.
|
502
|
-
</p>
|
503
|
-
</div>
|
504
|
-
<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">
|
507
|
-
<pre>
|
508
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 465</span>
|
509
|
-
465: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apu_libs</span>
|
510
|
-
466: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apu_info</span>[<span class="ruby-value">1</span>]
|
511
|
-
467: <span class="ruby-keyword kw">end</span>
|
512
|
-
</pre>
|
513
|
-
</div>
|
514
|
-
</div>
|
515
|
-
</div>
|
516
|
-
<div class="method">
|
517
|
-
<div class="title">
|
518
|
-
<a name="M000014"></a><b>apxs2</b>()
|
519
|
-
</div>
|
520
|
-
<div class="description">
|
521
|
-
<p>
|
522
|
-
The absolute path to the ‘apxs’ or ‘<a
|
523
|
-
href="PlatformInfo.html#M000014">apxs2</a>’ executable, or nil if not
|
524
|
-
found.
|
525
|
-
</p>
|
526
|
-
</div>
|
527
|
-
<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">
|
530
|
-
<pre>
|
531
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 219</span>
|
532
|
-
219: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apxs2</span>
|
533
|
-
220: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">env_defined?</span>(<span class="ruby-value str">"APXS2"</span>)
|
534
|
-
221: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">"APXS2"</span>]
|
535
|
-
222: <span class="ruby-keyword kw">end</span>
|
536
|
-
223: [<span class="ruby-value str">'apxs2'</span>, <span class="ruby-value str">'apxs'</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
|
537
|
-
224: <span class="ruby-identifier">command</span> = <span class="ruby-identifier">find_command</span>(<span class="ruby-identifier">name</span>)
|
538
|
-
225: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">command</span>.<span class="ruby-identifier">nil?</span>
|
539
|
-
226: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">command</span>
|
540
|
-
227: <span class="ruby-keyword kw">end</span>
|
541
|
-
228: <span class="ruby-keyword kw">end</span>
|
542
|
-
229: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
543
|
-
230: <span class="ruby-keyword kw">end</span>
|
544
|
-
</pre>
|
545
|
-
</div>
|
546
|
-
</div>
|
547
|
-
</div>
|
548
|
-
<div class="method">
|
549
|
-
<div class="title">
|
550
|
-
<a name="M000023"></a><b>debugging_cflags</b>()
|
551
|
-
</div>
|
552
|
-
<div class="description">
|
553
|
-
<p>
|
554
|
-
C compiler flags that should be passed in order to enable debugging
|
555
|
-
information.
|
556
|
-
</p>
|
557
|
-
</div>
|
558
|
-
<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">
|
561
|
-
<pre>
|
562
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 370</span>
|
563
|
-
370: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">debugging_cflags</span>
|
564
|
-
371: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/openbsd/</span>
|
565
|
-
372: <span class="ruby-comment cmt"># According to OpenBSD's pthreads man page, pthreads do not work</span>
|
566
|
-
373: <span class="ruby-comment cmt"># correctly when an app is compiled with -g. It recommends using</span>
|
567
|
-
374: <span class="ruby-comment cmt"># -ggdb instead.</span>
|
568
|
-
375: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">'-ggdb'</span>
|
569
|
-
376: <span class="ruby-keyword kw">else</span>
|
570
|
-
377: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">'-g'</span>
|
571
|
-
378: <span class="ruby-keyword kw">end</span>
|
572
|
-
379: <span class="ruby-keyword kw">end</span>
|
573
|
-
</pre>
|
574
|
-
</div>
|
575
|
-
</div>
|
576
|
-
</div>
|
577
|
-
<div class="method">
|
578
|
-
<div class="title">
|
579
|
-
<a name="M000011"></a><b>find_command</b>(name)
|
580
|
-
</div>
|
581
|
-
<div class="description">
|
582
|
-
<p>
|
583
|
-
Check whether the specified command is in $PATH, and return its absolute
|
584
|
-
filename. Returns nil if the command is not found.
|
585
|
-
</p>
|
586
|
-
<p>
|
587
|
-
This function exists because system(‘which’) doesn‘t
|
588
|
-
always behave correctly, for some weird reason.
|
589
|
-
</p>
|
590
|
-
</div>
|
591
|
-
<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">
|
594
|
-
<pre>
|
595
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 188</span>
|
596
|
-
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>)
|
597
|
-
189: <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'PATH'</span>].<span class="ruby-identifier">split</span>(<span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">PATH_SEPARATOR</span>).<span class="ruby-identifier">detect</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">directory</span><span class="ruby-operator">|</span>
|
598
|
-
190: <span class="ruby-identifier">path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">directory</span>, <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>)
|
599
|
-
191: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">executable?</span>(<span class="ruby-identifier">path</span>)
|
600
|
-
192: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">path</span>
|
601
|
-
193: <span class="ruby-keyword kw">end</span>
|
602
|
-
194: <span class="ruby-keyword kw">end</span>
|
603
|
-
195: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
604
|
-
196: <span class="ruby-keyword kw">end</span>
|
605
|
-
</pre>
|
606
|
-
</div>
|
607
|
-
</div>
|
608
|
-
</div>
|
609
|
-
<div class="method">
|
610
|
-
<div class="title">
|
611
|
-
<a name="M000016"></a><b>httpd</b>()
|
612
|
-
</div>
|
613
|
-
<div class="description">
|
614
|
-
<p>
|
615
|
-
The absolute path to the Apache binary (that is, ‘<a
|
616
|
-
href="PlatformInfo.html#M000016">httpd</a>’, ‘httpd2’,
|
617
|
-
‘apache’ or ‘apache2’).
|
618
|
-
</p>
|
619
|
-
</div>
|
620
|
-
<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">
|
623
|
-
<pre>
|
624
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 240</span>
|
625
|
-
240: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">httpd</span>
|
626
|
-
241: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">env_defined?</span>(<span class="ruby-value str">'HTTPD'</span>)
|
627
|
-
242: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'HTTPD'</span>]
|
628
|
-
243: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">apxs2</span>.<span class="ruby-identifier">nil?</span>
|
629
|
-
244: [<span class="ruby-value str">"apache2"</span>, <span class="ruby-value str">"httpd2"</span>, <span class="ruby-value str">"apache"</span>, <span class="ruby-value str">"httpd"</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
|
630
|
-
245: <span class="ruby-identifier">command</span> = <span class="ruby-identifier">find_command</span>(<span class="ruby-identifier">name</span>)
|
631
|
-
246: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">command</span>.<span class="ruby-identifier">nil?</span>
|
632
|
-
247: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">command</span>
|
633
|
-
248: <span class="ruby-keyword kw">end</span>
|
634
|
-
249: <span class="ruby-keyword kw">end</span>
|
635
|
-
250: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
636
|
-
251: <span class="ruby-keyword kw">else</span>
|
637
|
-
252: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">find_apache2_executable</span>(<span class="ruby-node">`#{apxs2} -q TARGET`</span>.<span class="ruby-identifier">strip</span>)
|
638
|
-
253: <span class="ruby-keyword kw">end</span>
|
639
|
-
254: <span class="ruby-keyword kw">end</span>
|
640
|
-
</pre>
|
641
|
-
</div>
|
642
|
-
</div>
|
643
|
-
</div>
|
644
|
-
<div class="method">
|
645
|
-
<div class="title">
|
646
|
-
<a name="M000031"></a><b>library_extension</b>()
|
647
|
-
</div>
|
648
|
-
<div class="description">
|
649
|
-
<p>
|
650
|
-
The current platform‘s shared library extension (‘so’ on
|
651
|
-
most Unices).
|
652
|
-
</p>
|
653
|
-
</div>
|
654
|
-
<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">
|
657
|
-
<pre>
|
658
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 493</span>
|
659
|
-
493: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">library_extension</span>
|
660
|
-
494: <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
|
-
495: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">"bundle"</span>
|
662
|
-
496: <span class="ruby-keyword kw">else</span>
|
663
|
-
497: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">"so"</span>
|
664
|
-
498: <span class="ruby-keyword kw">end</span>
|
665
|
-
499: <span class="ruby-keyword kw">end</span>
|
666
|
-
</pre>
|
667
|
-
</div>
|
668
|
-
</div>
|
669
|
-
</div>
|
670
|
-
<div class="method">
|
671
|
-
<div class="title">
|
672
|
-
<a name="M000032"></a><b>linux_distro</b>()
|
673
|
-
</div>
|
674
|
-
<div class="description">
|
675
|
-
<p>
|
676
|
-
An identifier for the current Linux distribution. nil if the operating
|
677
|
-
system is not Linux.
|
678
|
-
</p>
|
679
|
-
</div>
|
680
|
-
<div class="sourcecode">
|
681
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show source</a> ]</p>
|
682
|
-
<div id="M000032_source" class="dyn-source">
|
683
|
-
<pre>
|
684
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 502</span>
|
685
|
-
502: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">linux_distro</span>
|
686
|
-
503: <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
|
-
504: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
688
|
-
505: <span class="ruby-keyword kw">end</span>
|
689
|
-
506: <span class="ruby-identifier">lsb_release</span> = <span class="ruby-identifier">read_file</span>(<span class="ruby-value str">"/etc/lsb-release"</span>)
|
690
|
-
507: <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
|
-
508: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:ubuntu</span>
|
692
|
-
509: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">"/etc/debian_version"</span>)
|
693
|
-
510: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:debian</span>
|
694
|
-
511: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">"/etc/redhat-release"</span>)
|
695
|
-
512: <span class="ruby-identifier">redhat_release</span> = <span class="ruby-identifier">read_file</span>(<span class="ruby-value str">"/etc/redhat-release"</span>)
|
696
|
-
513: <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
|
-
514: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:centos</span>
|
698
|
-
515: <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
|
-
516: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:fedora</span>
|
700
|
-
517: <span class="ruby-keyword kw">else</span>
|
701
|
-
518: <span class="ruby-comment cmt"># On official RHEL distros, the content is in the form of</span>
|
702
|
-
519: <span class="ruby-comment cmt"># "Red Hat Enterprise Linux Server release 5.1 (Tikanga)"</span>
|
703
|
-
520: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:rhel</span>
|
704
|
-
521: <span class="ruby-keyword kw">end</span>
|
705
|
-
522: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">"/etc/suse-release"</span>)
|
706
|
-
523: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:suse</span>
|
707
|
-
524: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">"/etc/gentoo-release"</span>)
|
708
|
-
525: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:gentoo</span>
|
709
|
-
526: <span class="ruby-keyword kw">else</span>
|
710
|
-
527: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:unknown</span>
|
711
|
-
528: <span class="ruby-keyword kw">end</span>
|
712
|
-
529: <span class="ruby-comment cmt"># TODO: Slackware, Mandrake/Mandriva</span>
|
713
|
-
530: <span class="ruby-keyword kw">end</span>
|
714
|
-
</pre>
|
715
|
-
</div>
|
716
|
-
</div>
|
717
|
-
</div>
|
718
|
-
<div class="method">
|
719
|
-
<div class="title">
|
720
|
-
<a name="M000021"></a><b>portability_cflags</b>()
|
721
|
-
</div>
|
722
|
-
<div class="description">
|
723
|
-
<p>
|
724
|
-
Compiler flags that should be used for compiling every C/C++ program, for
|
725
|
-
portability reasons. These flags should be specified as last when invoking
|
726
|
-
the compiler.
|
727
|
-
</p>
|
728
|
-
</div>
|
729
|
-
<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">
|
732
|
-
<pre>
|
733
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 338</span>
|
734
|
-
338: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">portability_cflags</span>
|
735
|
-
339: <span class="ruby-comment cmt"># _GLIBCPP__PTHREADS is for fixing Boost compilation on OpenBSD.</span>
|
736
|
-
340: <span class="ruby-identifier">flags</span> = [<span class="ruby-value str">"-D_REENTRANT -I/usr/local/include"</span>]
|
737
|
-
341: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/solaris/</span>
|
738
|
-
342: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-D_XOPEN_SOURCE=500 -D_XPG4_2 -D__EXTENSIONS__ -D__SOLARIS__'</span>
|
739
|
-
343: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-DBOOST_HAS_STDINT_H'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/solaris2.9/</span>
|
740
|
-
344: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-D__SOLARIS9__ -DBOOST__STDC_CONSTANT_MACROS_DEFINED'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/solaris2.9/</span>
|
741
|
-
345: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-mcpu=ultrasparc'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/sparc/</span>
|
742
|
-
346: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/openbsd/</span>
|
743
|
-
347: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-DBOOST_HAS_STDINT_H -D_GLIBCPP__PTHREADS'</span>
|
744
|
-
348: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/aix/</span>
|
745
|
-
349: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-DOXT_DISABLE_BACKTRACES'</span>
|
746
|
-
350: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/sparc-linux/</span>
|
747
|
-
351: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-DBOOST_SP_USE_PTHREADS'</span>
|
748
|
-
352: <span class="ruby-keyword kw">end</span>
|
749
|
-
353: <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>
|
750
|
-
354: <span class="ruby-keyword kw">end</span>
|
751
|
-
</pre>
|
752
|
-
</div>
|
753
|
-
</div>
|
754
|
-
</div>
|
755
|
-
<div class="method">
|
756
|
-
<div class="title">
|
757
|
-
<a name="M000022"></a><b>portability_ldflags</b>()
|
758
|
-
</div>
|
759
|
-
<div class="description">
|
760
|
-
<p>
|
761
|
-
Linker flags that should be used for linking every C/C++ program, for
|
762
|
-
portability reasons. These flags should be specified as last when invoking
|
763
|
-
the linker.
|
764
|
-
</p>
|
765
|
-
</div>
|
766
|
-
<div class="sourcecode">
|
767
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show source</a> ]</p>
|
768
|
-
<div id="M000022_source" class="dyn-source">
|
769
|
-
<pre>
|
770
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 360</span>
|
771
|
-
360: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">portability_ldflags</span>
|
772
|
-
361: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/solaris/</span>
|
773
|
-
362: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">'-lxnet -lrt -lsocket -lnsl -lpthread'</span>
|
774
|
-
363: <span class="ruby-keyword kw">else</span>
|
775
|
-
364: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">'-lpthread'</span>
|
776
|
-
365: <span class="ruby-keyword kw">end</span>
|
777
|
-
366: <span class="ruby-keyword kw">end</span>
|
778
|
-
</pre>
|
779
|
-
</div>
|
780
|
-
</div>
|
781
|
-
</div>
|
782
|
-
<div class="method">
|
783
|
-
<div class="title">
|
784
|
-
<a name="M000012"></a><b>rake</b>()
|
785
|
-
</div>
|
786
|
-
<div class="description">
|
787
|
-
<p>
|
788
|
-
Returns the absolute path to the Rake executable that belongs to the
|
789
|
-
current Ruby interpreter. Returns nil if it doesn‘t exist.
|
790
|
-
</p>
|
791
|
-
</div>
|
792
|
-
<div class="sourcecode">
|
793
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000012_source')" id="l_M000012_source">show source</a> ]</p>
|
794
|
-
<div id="M000012_source" class="dyn-source">
|
795
|
-
<pre>
|
796
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 205</span>
|
797
|
-
205: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rake</span>
|
798
|
-
206: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">locate_ruby_executable</span>(<span class="ruby-value str">'rake'</span>)
|
799
|
-
207: <span class="ruby-keyword kw">end</span>
|
800
|
-
</pre>
|
801
|
-
</div>
|
802
|
-
</div>
|
803
|
-
</div>
|
804
|
-
<div class="method">
|
805
|
-
<div class="title">
|
806
|
-
<a name="M000013"></a><b>rspec</b>()
|
807
|
-
</div>
|
808
|
-
<div class="description">
|
809
|
-
<p>
|
810
|
-
Returns the absolute path to the RSpec runner program that belongs to the
|
811
|
-
current Ruby interpreter. Returns nil if it doesn‘t exist.
|
812
|
-
</p>
|
813
|
-
</div>
|
814
|
-
<div class="sourcecode">
|
815
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000013_source')" id="l_M000013_source">show source</a> ]</p>
|
816
|
-
<div id="M000013_source" class="dyn-source">
|
817
|
-
<pre>
|
818
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 213</span>
|
819
|
-
213: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rspec</span>
|
820
|
-
214: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">locate_ruby_executable</span>(<span class="ruby-value str">'spec'</span>)
|
821
|
-
215: <span class="ruby-keyword kw">end</span>
|
822
|
-
</pre>
|
823
|
-
</div>
|
824
|
-
</div>
|
825
|
-
</div>
|
826
|
-
</div>
|
827
|
-
|
828
|
-
</div>
|
829
|
-
|
830
|
-
</body>
|
831
|
-
</html>
|