From owner-freebsd-ports Thu Nov 29 15:20:11 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 89A5B37B417 for ; Thu, 29 Nov 2001 15:20:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fATNK0A03662; Thu, 29 Nov 2001 15:20:00 -0800 (PST) (envelope-from gnats) Received: from ssec.wisc.edu (ssec.wisc.edu [144.92.108.61]) by hub.freebsd.org (Postfix) with ESMTP id 1D12337B416 for ; Thu, 29 Nov 2001 15:18:08 -0800 (PST) Received: from hyde.ssec.wisc.edu (root@hyde.ssec.wisc.edu [128.104.109.251]) by ssec.wisc.edu (8.9.3/8.9.3) with ESMTP id RAA15456 for ; Thu, 29 Nov 2001 17:17:57 -0600 Received: from hyde.ssec.wisc.edu (localhost [127.0.0.1]) by hyde.ssec.wisc.edu (8.10.2+Sun/8.10.2) with ESMTP id fATNHqk19963 for ; Thu, 29 Nov 2001 17:17:52 -0600 (CST) Message-Id: <200111292317.fATNHqk19963@hyde.ssec.wisc.edu> Date: Thu, 29 Nov 2001 17:17:52 -0600 From: Dave Glowacki Reply-To: Dave Glowacki To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/32382: 'ant' doesn't work if JAVA_HOME not set Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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