Bug 153697 - ports java/jboss5 build failed
Summary: ports java/jboss5 build failed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dima Panov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-05 04:50 UTC by ksmakoto
Modified: 2011-03-21 15:10 UTC (History)
0 users

See Also:


Attachments
typescript.txt (33.96 KB, text/plain)
2011-02-16 01:12 UTC, ksmakoto
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ksmakoto 2011-01-05 04:50:09 UTC
ports java/jboss5 build failed

$ cd /usr/ports/java/jboss5
$ make
===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
===>  Extracting for jboss-5.1.0.GA_1,1
=> SHA256 Checksum OK for jboss-5.1.0.GA-src.tar.gz.
===>  Patching for jboss-5.1.0.GA_1,1
===>   jboss-5.1.0.GA_1,1 depends on file: /usr/local/jdk1.6.0/bin/java - found
===>   jboss-5.1.0.GA_1,1 depends on file: /usr/local/bin/ant - found
===>  Configuring for jboss-5.1.0.GA_1,1
===>  Building for jboss-5.1.0.GA_1,1
Buildfile: /export/ports/java/jboss5/work/jboss-5.1.0.GA-src/build/build.xml

maven-init:
     [echo] Maven Home set to /export/ports/java/jboss5/work/jboss-5.1.0.GA-src/tools/maven

maven-install:
     [java] [INFO] Scanning for projects...
     [java] [INFO] Reactor build order:
     [java] [INFO]   JBossAS Component Matrix
     [java] [INFO]   JBoss Application Server Parent POM
     [java] [INFO]   JBoss Application Server Thirdparty Build
     [java] WAGON_VERSION: 1.0-beta-2
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] Building JBossAS Component Matrix
     [java] [INFO]    task-segment: [install]
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
     [java] [INFO] [site:attach-descriptor]
     [java] [INFO] Preparing source:jar
     [java] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
     [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
     [java] [INFO] [source:jar {execution: attach-sources}]
     [java] [INFO] [install:install]
     [java] [INFO] Installing /export/ports/java/jboss5/work/jboss-5.1.0.GA-src/component-matrix/pom.xml to /home/ksmakoto/.m2/repository/org/jboss/jbossas/jboss-as-component-matrix/5.1.0.GA/jboss-as-component-matrix-5.1.0.GA.pom
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] Building JBoss Application Server Parent POM
     [java] [INFO]    task-segment: [install]
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
     [java] [INFO] [enforcer:enforce {execution: enforce-java-maven-versions}]
     [java] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
     [java] [INFO] [site:attach-descriptor]
     [java] [INFO] Preparing source:jar
     [java] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
     [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
     [java] [INFO] [enforcer:enforce {execution: enforce-java-maven-versions}]
     [java] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
     [java] [INFO] [source:jar {execution: attach-sources}]
     [java] [INFO] [install:install]
     [java] [INFO] Installing /export/ports/java/jboss5/work/jboss-5.1.0.GA-src/pom.xml to /home/ksmakoto/.m2/repository/org/jboss/jbossas/jboss-as-parent/5.1.0.GA/jboss-as-parent-5.1.0.GA.pom
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] Building JBoss Application Server Thirdparty Build
     [java] [INFO]    task-segment: [install]
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
     [java] [INFO] [enforcer:enforce {execution: enforce-java-maven-versions}]
     [java] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
     [java] [INFO] [enforcer:enforce {execution: ban-app-server-modules}]
     [java] [INFO] [dependency:sources {execution: download-sources}]
     [java] [INFO] [jboss-license:download-licenses {execution: default}]
     [java] [INFO] Downloading licenses
     [java] [INFO] [buildmagic-thirdparty:build-thirdparty {execution: build-thirdparty}]
     [java] [INFO] Copying dependencies to thirdparty directories...
     [java] [INFO] Generating component info files...
     [java] [INFO] Creating libraries.ent...
     [java] [INFO] [buildmagic-thirdparty:build-thirdparty {execution: build-thirparty-testsuite}]
     [java] [INFO] Copying dependencies to thirdparty directories...
     [java] [INFO] Generating component info files...
     [java] [INFO] Creating testsuite-libraries.ent...
     [java] [INFO] [site:attach-descriptor]
     [java] [INFO] Preparing source:jar
     [java] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
     [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]
     [java] [INFO] [enforcer:enforce {execution: enforce-java-maven-versions}]
     [java] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
     [java] [INFO] [enforcer:enforce {execution: ban-app-server-modules}]
     [java] [INFO] [dependency:sources {execution: download-sources}]
     [java] [INFO] [source:jar {execution: attach-sources}]
     [java] [INFO] [install:install]
     [java] [INFO] Installing /export/ports/java/jboss5/work/jboss-5.1.0.GA-src/thirdparty/pom.xml to /home/ksmakoto/.m2/repository/org/jboss/jbossas/jboss-as-thirdparty/5.1.0.GA/jboss-as-thirdparty-5.1.0.GA.pom
     [java] [INFO]
     [java] [INFO]
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] Reactor Summary:
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] JBossAS Component Matrix .............................. SUCCESS [2.484s]
     [java] [INFO] JBoss Application Server Parent POM ................... SUCCESS [0.061s]
     [java] [INFO] JBoss Application Server Thirdparty Build ............. SUCCESS [6.423s]
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] BUILD SUCCESSFUL
     [java] [INFO] ------------------------------------------------------------------------
     [java] [INFO] Total time: 10 seconds
     [java] [INFO] Finished at: Wed Jan 05 04:34:47 GMT 2011
     [java] [INFO] Final Memory: 62M/206M
     [java] [INFO] ------------------------------------------------------------------------

_buildmagic:init:
Trying to override old definition of task property

_buildmagic:init:local-properties:
     [copy] Copying 1 file to /export/ports/java/jboss5/work/jboss-5.1.0.GA-src/build

_buildmagic:init:buildlog:

configure:
     [echo] groups:  default
     [echo] modules: main,j2se,mbeans,jmx,system,system-jmx,security,server,deployment,jbossas/remoting,jmx-remoting,jbossas/jmx-remoting,messaging,cluster,varia,iiop,aspects,profileservice,connector,management,ejb3,tomcat,webservices,hibernate-int,console,spring-int

BUILD FAILED
/export/ports/java/jboss5/work/jboss-5.1.0.GA-src/build/build.xml:197: You must specify value, location or refid with the name attribute

Total time: 12 seconds
*** Error code 1

How-To-Repeat: cd /usr/ports/java/jboss5
make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-01-05 04:50:13 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
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2011-01-05 04:50:15 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 rainer 2011-02-02 15:47:22 UTC
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
Comment 4 Jimmy Kelley 2011-02-13 01:55:01 UTC
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}
Comment 5 ksmakoto 2011-02-16 01:12:38 UTC
> 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.
Comment 6 Jimmy Kelley 2011-02-19 22:44:29 UTC
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 \
Comment 7 Dima Panov freebsd_committer freebsd_triage 2011-03-21 14:54:01 UTC
Responsible Changed
From-To: freebsd-ports-bugs->fluffy

I'll take it.
Comment 8 dfilter service freebsd_committer freebsd_triage 2011-03-21 15:02:30 UTC
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"
Comment 9 Dima Panov freebsd_committer freebsd_triage 2011-03-21 15:02:46 UTC
State Changed
From-To: feedback->closed

Committed, with minor changes. Thanks!