Date: Thu, 29 Nov 2001 17:17:52 -0600 From: Dave Glowacki <dglo@ssec.wisc.edu> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/32382: 'ant' doesn't work if JAVA_HOME not set Message-ID: <200111292317.fATNHqk19963@hyde.ssec.wisc.edu>
next in thread | raw e-mail | index | archive | help
>Number: 32382 >Category: ports >Synopsis: 'ant' doesn't work if JAVA_HOME not set >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 29 15:20:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Dave Glowacki >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD eusebius.glowacki.org 4.4-STABLE FreeBSD 4.4-STABLE #0: Mon Nov 19 15:14:03 CST 2001 dglo@eusebius.glowacki.org:/usr/src/sys/compile/EUSEBIUS i386 >Description: If the JAVA_HOME environment variable is not set, 'ant' does not work. The current port sets JAVACMD=javavm in the 'ant' shell script. Almost immediately after this, the script checks to see if JAVACMD is executable, then fails because it can't execute "javavm". >How-To-Repeat: Run 'env JAVA_HOME= ant', and it will print Error: JAVA_HOME is not defined correctly. We cannot execute javavm >Fix: Apply the following patch: --- jakarta-ant.orig/Makefile Thu Nov 29 14:40:16 2001 +++ jakarta-ant/Makefile Thu Nov 29 16:57:28 2001 @@ -37,7 +37,7 @@ .endif post-patch: - @${PERL} -pi -e 's,JAVACMD=java,JAVACMD=javavm,g' ${WRKSRC}/bin/ant + @${PERL} -pi -e 's,JAVACMD=java,JAVACMD=`which javavm`,g' ${WRKSRC}/bin/ant do-install: ${MKDIR} ${PORTDESTDIR}/bin ${PORTDESTDIR}/lib >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111292317.fATNHqk19963>