java/121416: java/jdk15 can't build if BIN environment variable is

java/121416: java/jdk15 can't build if BIN environment variable is

Post by fchan » Fri, 07 Mar 2008 14:27:30


FreeBSD localhost 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Wed Mar 5 19:13:37 UTC 2008 root@localhost:/usr/obj/usr/src/sys/GENERIC i386
When building java/jdk15, at some point,
it executes a file called genBuffer.sh
to dynamically generate java source files.

However, this script malfunctions if
the user happen to define an environment variable called "BIN".

If the user's shell environment happen to have defined "BIN"
to some nonempty value, then build of java/jdk15 will fail
with the following error message:

..
TYPE=byte BIN=1 SRC=../../../src/share/classes/java/nio/X-Buffer.java DST=../../../build/bsd-i586/gensrc/java/nio/ByteBuffer.java SPP="/bin/sh spp.sh" NAWK=/usr/bin/awk SED=/usr/bin/sed /bin/sh genBuffer.sh
binOps=../../../src/share/classes/java/nio/X-Buffer-bin.java
TYPE=char SRC=../../../src/share/classes/java/nio/X-Buffer.java DST=../../../build/bsd-i586/gensrc/java/nio/CharBuffer.java SPP="/bin/sh spp.sh" NAWK=/usr/bin/awk SED=/usr/bin/sed /bin/sh genBuffer.sh
binOps=../../../src/share/classes/java/nio/X-Buffer-bin.java
TYPE=short SRC=../../../src/share/classes/java/nio/X-Buffer.java DST=../../../build/bsd-i586/gensrc/java/nio/ShortBuffer.java SPP="/bin/sh spp.sh" NAWK=/usr/bin/awk SED=/usr/bin/sed /bin/sh genBuffer.sh
binOps=../../../src/share/classes/java/nio/X-Buffer-bin.java
TYPE=int SRC=../../../src/share/classes/java/nio/X-Buffer.java DST=../../../build/bsd-i586/gensrc/java/nio/IntBuffer.java SPP="/bin/sh spp.sh" NAWK=/usr/bin/awk SED=/usr/bin/sed /bin/sh genBuffer.sh
binOps=../../../src/share/classes/java/nio/X-Buffer-bin.java
TYPE=long SRC=../../../src/share/classes/java/nio/X-Buffer.java DST=../../../build/bsd-i586/gensrc/java/nio/LongBuffer.java SPP="/bin/sh spp.sh" NAWK=/usr/bin/awk SED=/usr/bin/sed /bin/sh genBuffer.sh
binOps=../../../src/share/classes/java/nio/X-Buffer-bin.java
TYPE=float SRC=../../../src/share/classes/java/nio/X-Buffer.java DST=../../../build/bsd-i586/gensrc/java/nio/FloatBuffer.java SPP="/bin/sh spp.sh" NAWK=/usr/bin/awk SED=/usr/bin/sed /bin/sh genBuffer.sh
binOps=../../../src/share/classes/java/nio/X-Buffer-bin.java
TYPE=double SRC=../../../src/share/classes/java/nio/X-Buffer.java DST=../../../build/bsd-i586/gensrc/java/nio/DoubleBuffer.java SPP="/bin/sh spp.sh" NAWK=/usr/bin/awk SED=/usr/bin/sed /bin/sh genBuffer.sh
binOps=../../../src/share/classes/java/nio/X-Buffer-bin.java
TYPE=byte SRC=../../../src/share/classes/java/nio/Heap-X-Buffer.java DST=../../../build/bsd-i586/gensrc/java/nio/HeapByteBuffer.java SPP="/bin/sh spp.sh" NAWK=/usr/bin/awk SED=/usr/bin/sed /bin/sh genBuffer.sh
binOps=../../../src/share/classes/java/nio/Heap-X-Buffer-bin.java
genBuffer.sh: cannot open ../../../src/share/classes/java/nio/Heap-X-Buffer-bin.java: No such file or directory

// assume you're using SH or BASH
BIN=yes
export BIN
cd /usr/ports/java/jdk15
make

// assume you're using SH or BASH
unset BIN
cd /usr/ports/java/jdk15
make


_______________________________________________
XXXX@XXXXX.COM mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to " XXXX@XXXXX.COM "