[patch] jdk14 build fails with recent -CURRENT make changes

Don Lewis truckman at FreeBSD.org
Sun Aug 15 18:09:51 PDT 2004


The recent changes to make in 5.2-CURRENT to use MAKEFLAGS breaks the
jdk14 build.  The problem is that a value for ARCH gets passed in
MAKEFLAGS that can't be overridden in work/hotspot/build/bsd/Makefile.


Sanity check passed.
/bin/mkdir -p ../build/bsd-i386/hotspot-i386/tmp
(cd  ./../build/bsd-i386/hotspot-i386/tmp; \
  gmake -f /usr/ports/java/jdk14/work/hotspot/build/bsd/Makefile product \
        HOTSPOT_BUILD_VERSION=1.4.2-p6-dl_13_aug_2004_04_35  LP64=1 GAMMADIR=/usr/ports/java/jdk14/work/hotspot ; )
gmake[1]: Entering directory `/usr/ports/java/jdk14/work/control/build/bsd-i386/hotspot-i386/tmp'
sh /usr/ports/java/jdk14/work/hotspot/build/bsd/makefiles/buildATree.sh compiler2 /usr/ports/java/jdk14/work/hotspot bsd i386
/usr/ports/java/jdk14/work/hotspot/build/bsd/makefiles/buildATree.sh: cannot open /usr/ports/java/jdk14/work/hotspot/build/bsd/platform_i386: No such file or directory
gmake[1]: *** [bsd_i386_compiler2/product] Error 2
gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i386/hotspot-i386/tmp'
gmake: *** [product] Error 2
*** Error code 2

Stop in /usr/ports/java/jdk14.

Here is a quick patch:

Index: java/jdk14/Makefile
===================================================================
RCS file: /home/ncvs/ports/java/jdk14/Makefile,v
retrieving revision 1.78
diff -u -r1.78 Makefile
--- java/jdk14/Makefile	5 Mar 2004 13:43:40 -0000	1.78
+++ java/jdk14/Makefile	15 Aug 2004 23:51:14 -0000
@@ -94,7 +94,8 @@
 		LANG="C" \
 		JAVA_HOME="" \
 		CLASSPATH="" \
-		LD_LIBRARY_PATH=""
+		LD_LIBRARY_PATH="" \
+		MAKEFLAGS=""
 .if defined(MINIMAL)
 MAKE_ENV+=	NO_PLUGIN="YES" \
 		NO_JAVAWS="YES"






More information about the freebsd-java mailing list