Gentoo Archives: gentoo-commits

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