Summary: | ports java/jboss5 build failed | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | ksmakoto | ||||
Component: | Individual Port(s) | Assignee: | Dima Panov <fluffy> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | ||||||
Priority: | Normal | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
ksmakoto
2011-01-05 04:50:09 UTC
Maintainer of java/jboss5, Please note that PR ports/153697 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/153697 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool) I've also got this problem. FreeBSD build1 8.2-RC3 FreeBSD 8.2-RC3 #3: Tue Feb 1 17:42:27 CET 2011 root@build1:/usr/obj/usr/src/sys/GENERIC amd64 Ports from around the same time (2011-01-09). What can one do? Regards, Rainer The "buildmagic" stuff imported into build.xml doesn't appear to work properly with ant 1.8.1. The following patch points the build to the ant tool included with the JBoss source and worked for me: --- Makefile.orig 2009-11-18 16:11:45.000000000 -0600 +++ Makefile 2011-02-12 19:47:18.000000000 -0600 @@ -20,6 +20,8 @@ USE_JAVA= yes JAVA_VERSION= 1.5+ USE_ANT= yes +ANT_HOME= ${WRKSRC}/tools +ANT= ${WRKSRC}/tools/bin/ant DATADIR= ${PREFIX}/share/${UNIQUENAME} DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME} > The "buildmagic" stuff imported into build.xml doesn't appear to work
> properly with ant 1.8.1.
> The following patch points the build to the ant tool included with the JBoss
> source
> and worked for me:
>
>
> --- Makefile.orig 2009-11-18 16:11:45.000000000 -0600
> +++ Makefile 2011-02-12 19:47:18.000000000 -0600
> @@ -20,6 +20,8 @@
> USE_JAVA= yes
> JAVA_VERSION= 1.5+
> USE_ANT= yes
> +ANT_HOME= ${WRKSRC}/tools
> +ANT= ${WRKSRC}/tools/bin/ant
> DATADIR= ${PREFIX}/share/${UNIQUENAME}
> DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME}
this patch worked, but still build failed.
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 \ Responsible Changed From-To: freebsd-ports-bugs->fluffy I'll take it. fluffy 2011-03-21 15:02:21 UTC FreeBSD ports repository Modified files: java/jboss5 Makefile Log: - Try to unbroke java/jboss5 with native jdks - Use bundled Ant instead of system to resolve build breakage PR: 153697 Reported by: Makoto Kishimoto <ksmakoto AT dd DOT iij4u DOT or DOT jp> Patch by: Jimmy Kelley <ljboiler AT gmail DOT com> Approved by: maintainer timeout (>2 months) Revision Changes Path 1.52 +12 -2 ports/java/jboss5/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" State Changed From-To: feedback->closed Committed, with minor changes. Thanks! |