1 |
nelchael 10/08/19 15:56:13 |
2 |
|
3 |
Added: resin-4.0.9-Makefile.patch resin-4.0.9-build.patch |
4 |
resin-4.0.9-classpath.patch |
5 |
Log: |
6 |
Add patches for Resin 4.0.9. |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 src/patchsets/resin/4.0.9/resin-4.0.9-Makefile.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/resin/4.0.9/resin-4.0.9-Makefile.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/resin/4.0.9/resin-4.0.9-Makefile.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: resin-4.0.9-Makefile.patch |
15 |
=================================================================== |
16 |
diff -Nru resin-4.0.9.vanilla/Makefile.am resin-4.0.9/Makefile.am |
17 |
--- resin-4.0.9.vanilla/Makefile.am 2010-08-19 17:44:20.150963763 +0200 |
18 |
+++ resin-4.0.9/Makefile.am 2010-08-19 17:47:36.938963766 +0200 |
19 |
@@ -20,34 +20,31 @@ |
20 |
- rm -r $(LIBEXEC) |
21 |
|
22 |
install : |
23 |
- if test "$(resin_home)" != $(abs_builddir); then \ |
24 |
- mkdir -p $(resin_home)/bin; \ |
25 |
- mkdir -p $(resin_home)/keys; \ |
26 |
- mkdir -p $(resin_home)/licenses; \ |
27 |
- mkdir -p $(resin_home)/lib; \ |
28 |
- mkdir -p $(resin_home)/$(LIBEXEC); \ |
29 |
- cp bin/* $(resin_home)/bin; \ |
30 |
- cp lib/*.jar $(resin_home)/lib; \ |
31 |
+ if test "$(DESTDIR)/$(resin_home)" != $(abs_builddir); then \ |
32 |
+ mkdir -p $(DESTDIR)/$(resin_home)/bin; \ |
33 |
+ mkdir -p $(DESTDIR)/$(resin_home)/keys; \ |
34 |
+ mkdir -p $(DESTDIR)/$(resin_home)/licenses; \ |
35 |
+ mkdir -p $(DESTDIR)/$(resin_home)/lib; \ |
36 |
+ mkdir -p $(DESTDIR)/$(resin_home)/$(LIBEXEC); \ |
37 |
+ cp bin/* $(DESTDIR)/$(resin_home)/bin; \ |
38 |
+ cp lib/*.jar $(DESTDIR)/$(resin_home)/lib; \ |
39 |
fi |
40 |
- if test "$(resin_root)" != $(abs_builddir); then \ |
41 |
- mkdir -p $(resin_root)/webapps; \ |
42 |
- cp -r $(CP_U_FLAG) webapps/* $(resin_root)/webapps; \ |
43 |
- mkdir -p $(resin_root)/doc; \ |
44 |
- cp -r $(CP_U_FLAG) doc/* $(resin_root)/doc; \ |
45 |
- mkdir -p $(resin_root)/project-jars; \ |
46 |
- cp -r $(CP_U_FLAG) project-jars/* $(resin_root)/project-jars; \ |
47 |
- mkdir -p $(resin_log); \ |
48 |
+ if test "$(DESTDIR)/$(resin_root)" != $(abs_builddir); then \ |
49 |
+ mkdir -p $(DESTDIR)/$(resin_root)/webapps; \ |
50 |
+ cp -r $(CP_U_FLAG) webapps/* $(DESTDIR)/$(resin_root)/webapps; \ |
51 |
+ mkdir -p $(DESTDIR)/$(resin_root)/doc; \ |
52 |
+ cp -r $(CP_U_FLAG) doc/* $(DESTDIR)/$(resin_root)/doc; \ |
53 |
+ mkdir -p $(DESTDIR)/$(resin_root)/project-jars; \ |
54 |
+ cp -r $(CP_U_FLAG) project-jars/* $(DESTDIR)/$(resin_root)/project-jars; \ |
55 |
+ mkdir -p $(DESTDIR)/$(resin_log); \ |
56 |
fi |
57 |
- if test "$(resin_conf)" != $(abs_builddir)/conf; then \ |
58 |
- mkdir -p $(resin_conf); \ |
59 |
- cp $(CP_U_FLAG) conf/app-default.xml $(resin_conf)/app-default.xml; \ |
60 |
- cp $(CP_U_FLAG) conf/resin.xml $(resin_conf)/resin.xml; \ |
61 |
+ if test "$(DESTDIR)/$(resin_conf)" != $(abs_builddir)/conf; then \ |
62 |
+ mkdir -p $(DESTDIR)/$(resin_conf); \ |
63 |
+ cp $(CP_U_FLAG) conf/app-default.xml $(DESTDIR)/$(resin_conf)/app-default.xml; \ |
64 |
+ cp $(CP_U_FLAG) conf/resin.xml $(DESTDIR)/$(resin_conf)/resin.xml; \ |
65 |
fi |
66 |
(cd modules/c/src; $(MAKE) install) |
67 |
- if test -r $(resin_pro)/modules/c/src/Makefile; then \ |
68 |
- (cd $(resin_pro)/modules/c/src; $(MAKE) install) \ |
69 |
- fi |
70 |
- @ if test -n "$(resin_init_d)" -a "$(resin_home)" != $(abs_builddir); then \ |
71 |
+ @ if false && test -n "$(resin_init_d)" -a "$(resin_home)" != $(abs_builddir); then \ |
72 |
if test -f "${resin_init_d}"; then\ |
73 |
if test \( -w "${resin_init_d}" \) -o \( -w `dirname ${resin_init_d}` \); then \ |
74 |
cp $(CP_U_FLAG) $(abs_builddir)/init.d/resin $(resin_init_d); \ |
75 |
diff -Nru resin-4.0.9.vanilla/modules/c/src/resin_os/Makefile.in resin-4.0.9/modules/c/src/resin_os/Makefile.in |
76 |
--- resin-4.0.9.vanilla/modules/c/src/resin_os/Makefile.in 2010-08-19 17:44:19.566963762 +0200 |
77 |
+++ resin-4.0.9/modules/c/src/resin_os/Makefile.in 2010-08-19 17:45:06.686963763 +0200 |
78 |
@@ -39,8 +39,8 @@ |
79 |
|
80 |
install : libresin_os.$(SO) |
81 |
# cp resin $(resin_home)/bin |
82 |
- - mkdir -p $(resin_home)/$(LIBEXEC) |
83 |
- cp libresin_os.$(SO) $(resin_home)/$(LIBEXEC) |
84 |
+ - mkdir -p $(DESTDIR)/$(resin_home)/$(LIBEXEC) |
85 |
+ cp libresin_os.$(SO) $(DESTDIR)/$(resin_home)/$(LIBEXEC) |
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 |
1.1 src/patchsets/resin/4.0.9/resin-4.0.9-build.patch |
93 |
|
94 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/resin/4.0.9/resin-4.0.9-build.patch?rev=1.1&view=markup |
95 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/resin/4.0.9/resin-4.0.9-build.patch?rev=1.1&content-type=text/plain |
96 |
|
97 |
Index: resin-4.0.9-build.patch |
98 |
=================================================================== |
99 |
diff -Nru resin-4.0.9.vanilla/build-common.xml resin-4.0.9/build-common.xml |
100 |
--- resin-4.0.9.vanilla/build-common.xml 2010-08-19 17:44:18.786963764 +0200 |
101 |
+++ resin-4.0.9/build-common.xml 2010-08-19 17:48:47.450963763 +0200 |
102 |
@@ -37,15 +37,12 @@ |
103 |
<property name="resin.dist" location="${resin.install}/dist"/> |
104 |
|
105 |
<property name="javac.verbose" value="off"/> |
106 |
- <property name="javac.debug" value="on"/> |
107 |
- <property name="javac.optimize" value="off"/> |
108 |
+ <property name="javac.debug" value="off"/> |
109 |
+ <property name="javac.optimize" value="on"/> |
110 |
<property name="javac.deprecation" value="off"/> |
111 |
<property name="javac.nowarn" value="on"/> |
112 |
<property name="javac.memoryMaximumSize" value="512m"/> |
113 |
|
114 |
- <property name="javac.source" value="1.5"/> |
115 |
- <property name="javac.target" value="1.5"/> |
116 |
- |
117 |
<property name="jar.compress" value="false"/> |
118 |
<!-- |
119 |
<property name="jar.index" value="true"/> |
120 |
@@ -193,6 +190,9 @@ |
121 |
<fileset dir="${maven.lib}"> |
122 |
<include name="**/*.jar"/> |
123 |
</fileset> |
124 |
+ <fileset dir="${basedir}/gentoo-deps"> |
125 |
+ <include name="**/*.jar"/> |
126 |
+ </fileset> |
127 |
</classpath> |
128 |
</javac> |
129 |
|
130 |
@@ -273,6 +273,9 @@ |
131 |
<fileset dir="${maven.lib}"> |
132 |
<include name="**/*.jar"/> |
133 |
</fileset> |
134 |
+ <fileset dir="${basedir}/gentoo-deps"> |
135 |
+ <include name="**/*.jar"/> |
136 |
+ </fileset> |
137 |
</classpath> |
138 |
</javac> |
139 |
|
140 |
@@ -434,10 +437,6 @@ |
141 |
|
142 |
<property file="${artifact.src}/module.properties"/> |
143 |
|
144 |
- <mkdir dir="${resin.dist}/${dist.name}/project-jars"/> |
145 |
- |
146 |
- <copy tofile="${resin.dist}/${dist.name}/project-jars/resin-${artifact.name}-${version}.jar" |
147 |
- file="${artifact.dist}/${artifact.jar}"/> |
148 |
</target> |
149 |
|
150 |
<target name="resin.dist.jar" |
151 |
diff -Nru resin-4.0.9.vanilla/build.xml resin-4.0.9/build.xml |
152 |
--- resin-4.0.9.vanilla/build.xml 2010-08-19 17:44:20.150963763 +0200 |
153 |
+++ resin-4.0.9/build.xml 2010-08-19 17:48:47.450963763 +0200 |
154 |
@@ -10,7 +10,7 @@ |
155 |
<property name="debian.component" value="universe"/> |
156 |
|
157 |
<target name="compile" |
158 |
- depends="init, hessian, javaee, jaxstream, jcache, portlet, script, resin-kernel, quercus, resin, ecmascript, inject, webutil, conf, ext, j2ee-management, j2ee-deploy"> |
159 |
+ depends="init, hessian, javaee, jaxstream, jcache, portlet, script, resin-kernel, quercus, resin, ecmascript, inject, webutil, conf, j2ee-management, j2ee-deploy"> |
160 |
</target> |
161 |
|
162 |
<!-- |
163 |
@@ -197,7 +197,7 @@ |
164 |
</antcall> |
165 |
</target> |
166 |
|
167 |
- <target name="hessian" depends="init, servlet16"> |
168 |
+ <target name="hessian" depends="init"> |
169 |
<antcall target="module" inheritRefs="true"> |
170 |
<param name="module.name" value="hessian"/> |
171 |
<param name="module.jar" value="hessian.jar"/> |
172 |
@@ -221,7 +221,7 @@ |
173 |
</antcall> |
174 |
</target> |
175 |
|
176 |
- <target name="jaxrpc" depends="init,saaj,servlet16"> |
177 |
+ <target name="jaxrpc" depends="init,saaj"> |
178 |
<antcall target="module" inheritRefs="true"> |
179 |
<param name="module.name" value="jaxrpc"/> |
180 |
<param name="module.jar" value="jaxrpc-15.jar"/> |
181 |
@@ -268,13 +268,6 @@ |
182 |
</antcall> |
183 |
</target> |
184 |
|
185 |
- <target name="servlet16" depends="init"> |
186 |
- <antcall target="module" inheritRefs="true"> |
187 |
- <param name="module.name" value="servlet16"/> |
188 |
- <param name="module.jar" value="servlet-16.jar"/> |
189 |
- </antcall> |
190 |
- </target> |
191 |
- |
192 |
<!-- |
193 |
We now ship Sun's jsf-api.jar and jsf-impl.jar in modules/ext/ |
194 |
<target name="jsf" depends="init"> |
195 |
@@ -285,7 +278,7 @@ |
196 |
</antcall> |
197 |
</target--> |
198 |
|
199 |
- <target name="jstl" depends="init, servlet16"> |
200 |
+ <target name="jstl" depends="init"> |
201 |
<antcall target="module" inheritRefs="true"> |
202 |
<param name="module.name" value="jstl"/> |
203 |
<param name="module.jar" value="jstl-11.jar"/> |
204 |
@@ -384,7 +377,7 @@ |
205 |
</antcall> |
206 |
</target> |
207 |
|
208 |
- <target name="resin-kernel" depends="init, inject, servlet16, version"> |
209 |
+ <target name="resin-kernel" depends="init, inject, version"> |
210 |
<antcall target="module" inheritRefs="true"> |
211 |
<param name="module.name" value="kernel"/> |
212 |
<param name="module.dist" value="${lib}"/> |
213 |
@@ -496,7 +489,7 @@ |
214 |
</copy> |
215 |
</target> |
216 |
|
217 |
- <target name="javaee" depends="ejb, jca, jms, jpa, servlet16, jcache, jstl, jta, jws, inject"> |
218 |
+ <target name="javaee" depends="ejb, jca, jms, jpa, jcache, jstl, jta, jws, inject"> |
219 |
<!-- |
220 |
- javaee-16.jar |
221 |
--> |
222 |
@@ -539,10 +532,6 @@ |
223 |
<exclude name="**/.*"/> |
224 |
</fileset> |
225 |
|
226 |
- <fileset dir="${resin.modules}/servlet16/classes"> |
227 |
- <exclude name="**/.*"/> |
228 |
- </fileset> |
229 |
- |
230 |
<fileset dir="${resin.modules}/webbeans/classes"> |
231 |
<exclude name="**/.*"/> |
232 |
</fileset> |
233 |
@@ -683,20 +672,12 @@ |
234 |
</copy> |
235 |
</target> |
236 |
|
237 |
- <target name="ext" depends="init, resin"> |
238 |
- <copy todir="${install}/lib" preservelastmodified="true"> |
239 |
- <fileset dir="${ext}"> |
240 |
- </fileset> |
241 |
- </copy> |
242 |
- </target> |
243 |
- |
244 |
<target name="webapps" depends="init, doc, quercus"> |
245 |
</target> |
246 |
|
247 |
<target name="doc" depends="init"> |
248 |
<mkdir dir="${install}/webapps"/> |
249 |
|
250 |
- <!-- |
251 |
<jar jarfile="${install}/webapps/resin-doc.war" |
252 |
compress="true" index="${jar.index}" update="${jar.update}"> |
253 |
|
254 |
@@ -710,7 +691,6 @@ |
255 |
<exclude name="**/.svnignore"/> |
256 |
</fileset> |
257 |
</jar> |
258 |
- --> |
259 |
</target> |
260 |
|
261 |
<target name="javadoc" depends="init"> |
262 |
@@ -732,7 +712,6 @@ |
263 |
|
264 |
<packageset dir="${modules}/ejb/src"/> |
265 |
<packageset dir="${modules}/hessian/src"/> |
266 |
- <packageset dir="${modules}/servlet16/src"/> |
267 |
<packageset dir="${modules}/jcache/src"/> |
268 |
<packageset dir="${modules}/jpa/src"/> |
269 |
<packageset dir="${modules}/jaxstream/src"/> |
270 |
|
271 |
|
272 |
|
273 |
1.1 src/patchsets/resin/4.0.9/resin-4.0.9-classpath.patch |
274 |
|
275 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/resin/4.0.9/resin-4.0.9-classpath.patch?rev=1.1&view=markup |
276 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/resin/4.0.9/resin-4.0.9-classpath.patch?rev=1.1&content-type=text/plain |
277 |
|
278 |
Index: resin-4.0.9-classpath.patch |
279 |
=================================================================== |
280 |
diff -Nru resin-4.0.9.vanilla/modules/resin/src/boot-manifest resin-4.0.9/modules/resin/src/boot-manifest |
281 |
--- resin-4.0.9.vanilla/modules/resin/src/boot-manifest 2010-08-19 17:44:18.810963762 +0200 |
282 |
+++ resin-4.0.9/modules/resin/src/boot-manifest 2010-08-19 17:50:04.030963761 +0200 |
283 |
@@ -1,5 +1,5 @@ |
284 |
Main-Class: com.caucho.server.bootstrap.ResinBoot |
285 |
-Class-Path: resin.jar jta-101.jar isorelax.jar jsdk-24.jar jmx-12.jar jca-15.jar jstl-11.jar |
286 |
+Class-Path: resin.jar jta-101.jar isorelax.jar resin-servlet-api.jar jmx-12.jar jca-15.jar jstl-11.jar |
287 |
Extension-Name: com.caucho.server.bootstrap |
288 |
Implementation-Vendor: Caucho Technology, Inc. |
289 |
Implementation-Version: 3.0.1 |
290 |
diff -Nru resin-4.0.9.vanilla/modules/resin/src/manifest resin-4.0.9/modules/resin/src/manifest |
291 |
--- resin-4.0.9.vanilla/modules/resin/src/manifest 2010-08-19 17:44:19.522963762 +0200 |
292 |
+++ resin-4.0.9/modules/resin/src/manifest 2010-08-19 17:50:04.030963761 +0200 |
293 |
@@ -1,4 +1,4 @@ |
294 |
-Class-Path: javaee-16.jar javaee-15.jar pro.jar license.jar hessian.jar quercus.jar resin-kernel.jar jcache-16.jar webservices-api.jar |
295 |
+Class-Path: javaee-16.jar javaee-15.jar pro.jar license.jar hessian.jar quercus.jar resin-kernel.jar jcache-16.jar webservices-api.jar resin-servlet-api.jar |
296 |
Implementation-Vendor: Caucho Technology, Inc. |
297 |
Implementation-Version: 4.0.9 |
298 |
J2EE-DeploymentFactory-Implementation-Class: com.caucho.j2ee.deployclient.DeploymentFactoryImpl |
299 |
diff -Nru resin-4.0.9.vanilla/modules/resin/src/manifest.in resin-4.0.9/modules/resin/src/manifest.in |
300 |
--- resin-4.0.9.vanilla/modules/resin/src/manifest.in 2010-08-19 17:44:19.522963762 +0200 |
301 |
+++ resin-4.0.9/modules/resin/src/manifest.in 2010-08-19 17:50:04.030963762 +0200 |
302 |
@@ -1,4 +1,4 @@ |
303 |
-Class-Path: javaee-16.jar javaee-15.jar pro.jar license.jar hessian.jar quercus.jar resin-kernel.jar jcache-16.jar webservices-api.jar |
304 |
+Class-Path: javaee-16.jar javaee-15.jar pro.jar license.jar hessian.jar quercus.jar resin-kernel.jar jcache-16.jar webservices-api.jar resin-servlet-api.jar |
305 |
Implementation-Vendor: Caucho Technology, Inc. |
306 |
Implementation-Version: @VERSION@ |
307 |
J2EE-DeploymentFactory-Implementation-Class: com.caucho.j2ee.deployclient.DeploymentFactoryImpl |