Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Dec 2001 08:53:51 -0800 (PST)
From:      Christopher Elkins <chrise@scardini.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/32475: java/jython Makefile assumes current directory is in CLASSPATH
Message-ID:  <200112031653.fB3Grp897010@tlon.lan.scardini.com>

next in thread | raw e-mail | index | archive | help
>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 03 09:00:02 PST 2001
>Closed-Date:
>Last-Modified:
>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:
>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?200112031653.fB3Grp897010>