Bug 43602 - jdk13 does not honor WRKDIRPREFIX
Summary: jdk13 does not honor WRKDIRPREFIX
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: java (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Greg Lewis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-03 00:10 UTC by Gerald Speak
Modified: 2003-08-22 18:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Speak 2002-10-03 00:10:04 UTC
      With WRKDIRPREFIX set to /usr/tmp in make.conf jdk13 gives the following error:

rm -f ../../../build/bsd-i386/tmp/java/java.lang/jvm/obj/invokers.c
/usr/local/linux-sun-jdk1.3.1/bin/java -classpath ../../../build/bsd-i386/tmp/java/java.lang/jvm/obj InvokerGen < ../../../src/share/javavm/include/invokers.txt > ../../../build/bsd-i386/tmp/java/java.lang/jvm/obj/invokers.c
Exception in thread "main" java.lang.NoClassDefFoundError: InvokerGen
gmake[3]: *** [../../../build/bsd-i386/tmp/java/java.lang/jvm/obj/invokers.c] Error 1
gmake[3]: Leaving directory `/usr/tmp/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/jvm'
gmake[2]: *** [optimized] Error 2
gmake[2]: Leaving directory `/usr/tmp/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/jvm'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/usr/tmp/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java'
gmake: *** [all] Error 1
*** Error code 2

Fix: 

unknown
How-To-Repeat: set WRKDIRPREFIX=/usr/tmp  In /etc/make.conf
Comment 1 Greg Lewis freebsd_committer freebsd_triage 2002-10-03 05:51:29 UTC
Responsible Changed
From-To: freebsd-java->glewis

Over to maintainer.
Comment 2 Greg Lewis 2002-10-03 05:56:14 UTC
On Wed, Oct 02, 2002 at 04:09:58PM -0700, Gerald A Speak wrote:
> set WRKDIRPREFIX=/usr/tmp  In /etc/make.conf

Is /compat/linux/usr/tmp a symbolic link?  Particularly, is it a symbolic
link to /usr/tmp?

-- 
Greg Lewis                          Email   : glewis@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org
Comment 3 Gerald Speak 2002-10-03 10:31:51 UTC
On Thursday 03 October 2002 12:56 am, Greg Lewis wrote:
> On Wed, Oct 02, 2002 at 04:09:58PM -0700, Gerald A Speak wrote:
> > set WRKDIRPREFIX=3D/usr/tmp  In /etc/make.conf
>
> Is /compat/linux/usr/tmp a symbolic link?  Particularly, is it a symbol=
ic
> link to /usr/tmp?
Yes, well actually a symbolic link to /var/tmp.  I have /var/tmp symlinke=
d to=20
/usr/tmp.
Comment 4 Greg Lewis 2002-10-03 16:21:43 UTC
On Thu, Oct 03, 2002 at 05:31:51AM -0400, Gerald A. Speak wrote:
> On Thursday 03 October 2002 12:56 am, Greg Lewis wrote:
> > On Wed, Oct 02, 2002 at 04:09:58PM -0700, Gerald A Speak wrote:
> > > set WRKDIRPREFIX=/usr/tmp  In /etc/make.conf
> >
> > Is /compat/linux/usr/tmp a symbolic link?  Particularly, is it a symbolic
> > link to /usr/tmp?
> Yes, well actually a symbolic link to /var/tmp.  I have /var/tmp symlinked to 
> /usr/tmp.

That is the problem.  The Makefile tries to catch this but only looks at
one level of linking at the moment, i.e. it catches /compat/linux/usr/tmp
being a link to /usr/tmp but not when the link goes more than one level
deep, as in your case.  I'll look at making the check more robust in this
respect.

-- 
Greg Lewis                          Email   : glewis@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org
Comment 5 Greg Lewis freebsd_committer freebsd_triage 2003-08-22 18:07:27 UTC
State Changed
From-To: open->closed

Committed a fix for this.