From chrise@scardini.com  Mon Dec  3 08:53:58 2001
Return-Path: <chrise@scardini.com>
Received: from hronir.scardini.com (dsl-209-162-215-176.easystreet.com [209.162.215.176])
	by hub.freebsd.org (Postfix) with ESMTP id 9E62D37B405
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  3 Dec 2001 08:53:57 -0800 (PST)
Received: from tlon.lan.scardini.com (tlon.lan.scardini.com [192.168.2.2])
	by hronir.scardini.com (8.11.6/8.11.6) with ESMTP id fB3Grpo16746
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 3 Dec 2001 08:53:52 -0800 (PST)
	(envelope-from chrise@hronir.lan.scardini.com)
Received: (from chrise@localhost)
	by tlon.lan.scardini.com (8.11.6/8.11.6) id fB3Grp897010;
	Mon, 3 Dec 2001 08:53:51 -0800 (PST)
	(envelope-from chrise)
Message-Id: <200112031653.fB3Grp897010@tlon.lan.scardini.com>
Date: Mon, 3 Dec 2001 08:53:51 -0800 (PST)
From: Christopher Elkins <chrise@scardini.com>
Reply-To: Christopher Elkins <chrise@scardini.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: java/jython Makefile assumes current directory is in CLASSPATH
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         32475
>Category:       ports
>Synopsis:       java/jython Makefile assumes current directory is in CLASSPATH
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 03 09:00:02 PST 2001
>Closed-Date:    Thu Dec 6 01:58:21 PST 2001
>Last-Modified:  Thu Dec 06 01:59:10 PST 2001
>Originator:     Christopher Elkins
>Release:        FreeBSD 4.4-RELEASE i386
>Organization:
>Environment:
System: FreeBSD tlon.lan.scardini.com 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Fri Nov 30 17:22:23 PST 2001 chrise@tlon.lan.scardini.com:/usr/src/sys/compile/TLON i386


	
>Description:
The do-install target in the Makefile assumes the current directory ('.') is
in the CLASSPATH. If it isn't, attempting to install the port fails with the
following error message (using java/linux-jdk13):

    Exception in thread "main" java.lang.NoClassDefFoundError: jython-21a3

>How-To-Repeat:
Verify that '.' is not contained in the CLASSPATH environment variable. Do a
'make install' of the port.
>Fix:

diff -c -r jython.orig/Makefile jython/Makefile
*** jython.orig/Makefile	Mon Dec  3 08:30:39 2001
--- jython/Makefile	Mon Dec  3 08:46:11 2001
***************
*** 29,35 ****
  PLIST_SUB+=	JYTHON_DIR=${INST_TARGET}
  
  do-install:
! 	cd ${DISTDIR} && ${JAVA} ${DISTNAME} -o ${JYTHON_PREFIX} ${INST_PACKAGES}
  	cd ${JYTHON_PREFIX} && ./jython Lib/compileall.py Lib/
  
  	# symbolic links for convenience
--- 29,35 ----
  PLIST_SUB+=	JYTHON_DIR=${INST_TARGET}
  
  do-install:
! 	cd ${DISTDIR} && ${JAVA} -classpath . ${DISTNAME} -o ${JYTHON_PREFIX} ${INST_PACKAGES}
  	cd ${JYTHON_PREFIX} && ./jython Lib/compileall.py Lib/
  
  	# symbolic links for convenience
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Thu Dec 6 01:58:21 PST 2001 
State-Changed-Why:  
corrected in pr/32544, thanks 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32475 
>Unformatted:
