1 |
hollow 08/04/25 10:56:35 |
2 |
|
3 |
Added: 1.0.1-gentoo.patch 30_mod_passenger.conf |
4 |
Log: |
5 |
initial version wrt #218170 |
6 |
(Portage version: 2.1.5_rc6) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 www-apache/passenger/files/1.0.1-gentoo.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/passenger/files/1.0.1-gentoo.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/passenger/files/1.0.1-gentoo.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: 1.0.1-gentoo.patch |
15 |
=================================================================== |
16 |
Index: passenger-1.0.1/Rakefile |
17 |
=================================================================== |
18 |
--- passenger-1.0.1.orig/Rakefile |
19 |
+++ passenger-1.0.1/Rakefile |
20 |
@@ -37,7 +37,7 @@ APR1_FLAGS.nil? and raise "Could not fin |
21 |
|
22 |
CXX = "g++" |
23 |
THREADING_FLAGS = "-D_REENTRANT" |
24 |
-CXXFLAGS = "#{THREADING_FLAGS} -Wall -g -I/usr/local/include " << MULTI_ARCH_FLAGS |
25 |
+CXXFLAGS = "#{ENV['CXXFLAGS']} #{THREADING_FLAGS} -Wall" << MULTI_ARCH_FLAGS |
26 |
LDFLAGS = "" |
27 |
|
28 |
|
29 |
@@ -87,8 +87,7 @@ subdir 'ext/boost/src' do |
30 |
# processes, sometimes pthread errors will occur. These errors are harmless |
31 |
# and should be ignored. Defining NDEBUG guarantees that boost::thread() will |
32 |
# not abort if such an error occured. |
33 |
- flags = "-O2 -fPIC -I../.. #{THREADING_FLAGS} -DNDEBUG #{MULTI_ARCH_FLAGS}" |
34 |
- compile_cxx "*.cpp", flags |
35 |
+ compile_cxx "*.cpp", "#{CXXFLAGS} -fPIC -I../.. -DNDEBUG" |
36 |
create_static_library "libboost_thread.a", "*.o" |
37 |
end |
38 |
|
39 |
@@ -101,7 +100,7 @@ end |
40 |
##### Apache module |
41 |
|
42 |
class APACHE2 |
43 |
- CXXFLAGS = CXXFLAGS + " -fPIC -g -DPASSENGER_DEBUG #{APR1_FLAGS} #{APXS2_FLAGS} -I.." |
44 |
+ CXXFLAGS = CXXFLAGS + " -fPIC #{APR1_FLAGS} #{APXS2_FLAGS} -I.." |
45 |
OBJECTS = { |
46 |
'Configuration.o' => %w(Configuration.cpp Configuration.h), |
47 |
'Hooks.o' => %w(Hooks.cpp Hooks.h |
48 |
Index: passenger-1.0.1/lib/passenger/platform_info.rb |
49 |
=================================================================== |
50 |
--- passenger-1.0.1.orig/lib/passenger/platform_info.rb |
51 |
+++ passenger-1.0.1/lib/passenger/platform_info.rb |
52 |
@@ -115,7 +115,6 @@ private |
53 |
else |
54 |
flags = `#{APXS2} -q CFLAGS`.strip << " -I" << `#{APXS2} -q INCLUDEDIR` |
55 |
flags.strip! |
56 |
- flags.gsub!(/-O\d? /, '') |
57 |
return flags |
58 |
end |
59 |
end |
60 |
@@ -139,7 +138,6 @@ private |
61 |
libs = `#{apr_config} --link-ld`.strip |
62 |
end |
63 |
end |
64 |
- flags.gsub!(/-O\d? /, '') |
65 |
return [flags, libs] |
66 |
end |
67 |
|
68 |
Index: passenger-1.0.1/bin/passenger-spawn-server |
69 |
=================================================================== |
70 |
--- passenger-1.0.1.orig/bin/passenger-spawn-server |
71 |
+++ passenger-1.0.1/bin/passenger-spawn-server |
72 |
@@ -16,7 +16,6 @@ |
73 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
74 |
|
75 |
require 'pathname' |
76 |
-$LOAD_PATH.unshift(File.expand_path("#{File.dirname(__FILE__)}/../lib")) |
77 |
require 'passenger/spawn_manager' |
78 |
require 'passenger/utils' |
79 |
|
80 |
Index: passenger-1.0.1/lib/passenger/request_handler.rb |
81 |
=================================================================== |
82 |
--- passenger-1.0.1.orig/lib/passenger/request_handler.rb |
83 |
+++ passenger-1.0.1/lib/passenger/request_handler.rb |
84 |
@@ -101,7 +101,6 @@ class RequestHandler |
85 |
NINJA_PATCHING_LOCK = Mutex.new |
86 |
@@ninja_patched_action_controller = false |
87 |
|
88 |
- File.read("#{File.dirname(__FILE__)}/../../Rakefile") =~ /^PACKAGE_VERSION = "(.*)"$/ |
89 |
PASSENGER_VERSION = $1 |
90 |
|
91 |
# The name of the socket on which the request handler accepts |
92 |
Index: passenger-1.0.1/lib/passenger/utils.rb |
93 |
=================================================================== |
94 |
--- passenger-1.0.1.orig/lib/passenger/utils.rb |
95 |
+++ passenger-1.0.1/lib/passenger/utils.rb |
96 |
@@ -20,7 +20,7 @@ require 'etc' |
97 |
require 'thread' |
98 |
require 'fastthread' |
99 |
require 'timeout' |
100 |
-require File.expand_path("#{File.dirname(__FILE__)}/../../ext/passenger/native_support.so") |
101 |
+require 'native_support' |
102 |
|
103 |
module Passenger |
104 |
|
105 |
|
106 |
|
107 |
|
108 |
1.1 www-apache/passenger/files/30_mod_passenger.conf |
109 |
|
110 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/passenger/files/30_mod_passenger.conf?rev=1.1&view=markup |
111 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/passenger/files/30_mod_passenger.conf?rev=1.1&content-type=text/plain |
112 |
|
113 |
Index: 30_mod_passenger.conf |
114 |
=================================================================== |
115 |
<IfDefine PASSENGER> |
116 |
LoadModule passenger_module modules/mod_passenger.so |
117 |
|
118 |
# The location to the Passenger spawn server. This configuration option is |
119 |
# essential to Passenger. The correct value is given by the ebuild, and should |
120 |
# usually not be changed manually. |
121 |
RailsSpawnServer /usr/bin/passenger-spawn-server |
122 |
|
123 |
# This option allows one to specify the Ruby interpreter to use. |
124 |
RailsRuby /usr/bin/ruby18 |
125 |
|
126 |
# Whether Passenger should automatically detect whether a virtual host's |
127 |
# document root is a Ruby on Rails application. |
128 |
RailsAutoDetect On |
129 |
|
130 |
# The maximum number of Ruby on Rails application instances that may be |
131 |
# simultaneously active. A larger number results in higher memory usage, but |
132 |
# improved ability to handle concurrent HTTP clients. |
133 |
RailsMaxPoolSize 20 |
134 |
|
135 |
# The maximum number of seconds that a Ruby on Rails application instance may |
136 |
# be idle. That is, if an application instance hasn't done anything after the |
137 |
# given number of seconds, then it will be shutdown in order to conserve |
138 |
# memory. |
139 |
RailsPoolIdleTime 120 |
140 |
|
141 |
# When the RailsUserSwitching option is enabled a Rails application is started |
142 |
# as the owner of the file config/environment.rb. So if |
143 |
# /home/webapps/foo/config/environment.rb is owned by joe, then Passenger will |
144 |
# launch the corresponding Rails application as joe as well. |
145 |
RailsUserSwitching On |
146 |
|
147 |
# Under no circumstances will Rails applications be run as root. If |
148 |
# environment.rb is owned by root or by an unknown user, then the Rails |
149 |
# application will run as the user specified by RailsDefaultUser. |
150 |
RailsDefaultUser apache |
151 |
</IfDefine> |
152 |
|
153 |
# vim: ts=4 filetype=apache |
154 |
|
155 |
|
156 |
|
157 |
-- |
158 |
gentoo-commits@l.g.o mailing list |