ports/153697: ports java/jboss5 build failed
Jimmy Kelley
ljboiler at gmail.com
Sat Feb 19 22:50:11 UTC 2011
The following reply was made to PR ports/153697; it has been noted by GNATS.
From: Jimmy Kelley <ljboiler at gmail.com>
To: bug-followup at FreeBSD.org, ksmakoto at dd.iij4u.or.jp
Cc:
Subject: Re: ports/153697: ports java/jboss5 build failed
Date: Sat, 19 Feb 2011 16:44:29 -0600
--000e0cd348ec9fc98c049caa5fd7
Content-Type: text/plain; charset=ISO-8859-1
I've got it to build and run with diablo-jdk15, jdk15, diablo-jdk16, and
openjdk6,
but not jdk16 (stopped with that exact error, so I'm guessing that you have
jdk16).
The do-install part of the Makefile missed a few things to make it run;
here's an
update to my patch that takes care of that (and also totally removes the
dependency
on the ant port, AND increases the shutdown wait to 30 seconds [ 10 seconds
just
wasn't enough for a clean shutdown]):
--- Makefile.orig 2009-11-18 16:11:45.000000000 -0600
+++ Makefile 2011-02-19 16:34:54.000000000 -0600
@@ -19,7 +19,9 @@
LATEST_LINK= jboss5
USE_JAVA= yes
JAVA_VERSION= 1.5+
-USE_ANT= yes
+JAVA_OS= native
+ANT_HOME= ${WRKSRC}/tools
+ANT= ${WRKSRC}/tools/bin/ant
DATADIR= ${PREFIX}/share/${UNIQUENAME}
DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME}
@@ -40,7 +42,7 @@
DEPLOY_DIR?= ${VAR_DIR}/${UNIQUENAME}
USER= www
GROUP= www
-STOP_TIMEOUT?= 10
+STOP_TIMEOUT?= 30
PID_FILE= /var/run/${UNIQUENAME}.pid
JBOSSOUTPUT= ${WRKSRC}/build/output/${PORTNAME}-${PORTVERSION}
@@ -63,6 +65,10 @@
.include <bsd.port.pre.mk>
+do-build:
+ @(cd ${BUILD_WRKSRC}; \
+ ${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${ALL_TARGET})
+
do-install:
${MKDIR} ${DATADIR}/bin && ${CHOWN} -R ${USER}:${GROUP} ${DATADIR}
${MKDIR} ${DEPLOY_DIR} && ${CHOWN} ${USER}:${GROUP} ${DEPLOY_DIR}
@@ -70,6 +76,10 @@
${CPIO} -pdmu -R ${USER}:${GROUP} ${DATADIR})
(cd ${JBOSSOUTPUT}/server && ${FIND} . |\
${CPIO} -pdmu -R ${USER}:${GROUP} ${DEPLOY_DIR})
+ (cd ${WRKSRC}/jbossas/remoting/output/lib && ${FIND} . |\
+ ${CPIO} -pdmu -R ${USER}:${GROUP} ${DATADIR}/common/lib)
+ (cd ${JBOSSOUTPUT}/client && ${FIND} jboss-remoting.jar
jboss-serialization.jar |\
+ ${CPIO} -pdmu -R ${USER}:${GROUP} ${DATADIR}/common/lib)
${INSTALL} -o ${USER} -g ${GROUP} -m 0640 /dev/null ${PID_FILE}
.if !defined(NOPORTDOCS)
cd ${JBOSSOUTPUT}/docs \
--000e0cd348ec9fc98c049caa5fd7
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I've got it to build and run with diablo-jdk15, jdk15, diablo-jdk16, an=
d openjdk6,<br>but not jdk16 (stopped with that exact error, so I'm gue=
ssing that you have jdk16).<br><br>The do-install part of the Makefile miss=
ed a few things to make it run; here's an<br>
update=A0 to my patch that takes care of that (and also totally removes the=
dependency<br>on the ant port, AND increases the shutdown wait to 30 secon=
ds [ 10 seconds just<br>wasn't enough for a clean shutdown]):<br><br>
--- Makefile.orig=A0=A0=A0 2009-11-18 16:11:45.000000000 -0600<br>+++ Makef=
ile=A0=A0=A0 2011-02-19 16:34:54.000000000 -0600<br>@@ -19,7 +19,9 @@<br>=
=A0LATEST_LINK=3D=A0=A0=A0 jboss5<br>=A0USE_JAVA=3D=A0=A0=A0 yes<br>=A0JAVA=
_VERSION=3D=A0=A0=A0 1.5+<br>-USE_ANT=3D=A0=A0=A0 yes<br>
+JAVA_OS=3D=A0=A0=A0 native<br>+ANT_HOME=3D=A0=A0=A0 ${WRKSRC}/tools<br>+AN=
T=3D=A0=A0=A0 =A0=A0=A0 ${WRKSRC}/tools/bin/ant<br>=A0DATADIR=3D=A0=A0=A0 $=
{PREFIX}/share/${UNIQUENAME}<br>=A0DOCSDIR=3D=A0=A0=A0 ${PREFIX}/share/doc/=
${UNIQUENAME}<br>=A0<br>@@ -40,7 +42,7 @@<br>=A0DEPLOY_DIR?=3D=A0=A0=A0 ${V=
AR_DIR}/${UNIQUENAME}<br>
=A0USER=3D=A0=A0=A0 =A0=A0=A0 www<br>=A0GROUP=3D=A0=A0=A0 =A0=A0=A0 www<br>=
-STOP_TIMEOUT?=3D=A0=A0=A0 10<br>+STOP_TIMEOUT?=3D=A0=A0=A0 30<br>=A0PID_FI=
LE=3D=A0=A0=A0 /var/run/${UNIQUENAME}.pid<br>=A0<br>=A0JBOSSOUTPUT=3D=A0=A0=
=A0 ${WRKSRC}/build/output/${PORTNAME}-${PORTVERSION}<br>@@ -63,6 +65,10 @@=
<br>
=A0<br>=A0.include <<a href=3D"http://bsd.port.pre.mk">bsd.port.pre.mk</=
a>><br>=A0<br>+do-build:<br>+=A0=A0=A0 @(cd ${BUILD_WRKSRC}; \<br>+=A0=
=A0=A0 =A0=A0=A0 ${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${ALL_TARGET})<b=
r>+<br>=A0do-install:<br>=A0=A0=A0=A0 ${MKDIR} ${DATADIR}/bin && ${=
CHOWN} -R ${USER}:${GROUP} ${DATADIR}<br>
=A0=A0=A0=A0 ${MKDIR} ${DEPLOY_DIR} && ${CHOWN} ${USER}:${GROUP} ${=
DEPLOY_DIR}<br>@@ -70,6 +76,10 @@<br>=A0=A0=A0=A0 =A0=A0=A0 ${CPIO} -pdmu -=
R ${USER}:${GROUP} ${DATADIR})<br>=A0=A0=A0=A0 (cd ${JBOSSOUTPUT}/server &a=
mp;& ${FIND} . |\<br>=A0=A0=A0=A0 =A0=A0=A0 ${CPIO} -pdmu -R ${USER}:${=
GROUP} ${DEPLOY_DIR})<br>
+=A0=A0=A0 (cd ${WRKSRC}/jbossas/remoting/output/lib && ${FIND} . |=
\<br>+=A0=A0=A0 =A0=A0=A0 ${CPIO} -pdmu -R ${USER}:${GROUP} ${DATADIR}/comm=
on/lib)<br>+=A0=A0=A0 (cd ${JBOSSOUTPUT}/client && ${FIND} jboss-re=
moting.jar jboss-serialization.jar |\<br>
+=A0=A0=A0 =A0=A0=A0 ${CPIO} -pdmu -R ${USER}:${GROUP} ${DATADIR}/common/li=
b)<br>=A0=A0=A0=A0 ${INSTALL} -o ${USER} -g ${GROUP} -m 0640 /dev/null ${PI=
D_FILE}<br>=A0.if !defined(NOPORTDOCS)<br>=A0=A0=A0=A0 cd ${JBOSSOUTPUT}/do=
cs \<br><br><br>
--000e0cd348ec9fc98c049caa5fd7--
More information about the freebsd-ports-bugs
mailing list