On Saturday 09 May 2009 5:55:09 pm Andrés wrote:
> On Sat, May 9, 2009 at 3:07 PM, Kurt Miller <k...@intricatesoftware.com> 
> wrote:
> > On Saturday 02 May 2009 10:15:53 pm Andrés wrote:
> >> Is it possible? FAQ says one can build 1.5 with Kaffe for native boot
> >> strapping, but says nothing about 1.6.
> >
> > Kaffe currently can't build 1.6. The version we have is just not up
> > to the task. 1.7 might be able to build 1.6. There are bootstrap
> > jdk version checks that I think I loosened so that it could work.
> > I haven't tried it since 1.7 needs 1.6 to bootstrap and using 1.7
> > to bootstrap 1.6 would be a circular dependency. It could be
> > done with a PSEUDO_FLAVOR though.
> >
> 
> But there's a package for 1.7, so building it wouldn't be neccesary.

That depends on your perspective. :-)

From a bulk build point of view, the current situation is kaffe ->
1.5 -> 1.6 -> 1.7. That must be the default build setup until a
better solution is worked out (I've been working on it - trust me).

Since devel/jdk/1.6 has no packages and users must build it, I
can see the value in providing an option to use 1.7 to bootstrap
1.6.

I still need to verify the behavior described in the DESCR note,
but this worked ok for me to build 1.6 with a 1.7 package installed.

To build and install:

$ FLAVOR=jdk17_bootstrap make install

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/jdk/1.6/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile    15 Mar 2009 09:25:04 -0000      1.12
+++ Makefile    11 May 2009 03:13:16 -0000
@@ -7,8 +7,8 @@
 COMMENT-jre=           Java2(TM) Standard Edition Runtime Environment v${V}
 V=                     1.6.0.03
 PKGNAME=               jdk-${V}
-PKGNAME-main=          jdk-${V}p6
-PKGNAME-jre=           jre-${V}p6
+PKGNAME-main=          jdk-${V}p7
+PKGNAME-jre=           jre-${V}p7
 
 CATEGORIES=            devel/jdk java
 
@@ -81,7 +81,7 @@
 FETCH_MANUALLY+=       "from 
http://www.eyesbeyond.com/freebsddom/java/jdk16.html";
 
 FLAVORS=               no_web with_ipv6
-PSEUDO_FLAVORS=                native_bootstrap
+PSEUDO_FLAVORS=                native_bootstrap jdk17_bootstrap
 FLAVOR?=
 
 .if !${FLAVOR:L:Mwith_ipv6}
@@ -95,8 +95,13 @@
 BUILD_DEPENDS+=                :jdk->=1.6,<1.7:devel/jdk/1.6
 MAKE_ENV+=             ALT_BOOTDIR="${LOCALBASE}/${JDKHOME}"
 .else
+.if ${FLAVOR:L:Mjdk17_bootstrap}
+BUILD_DEPENDS+=                :jdk->=1.7,<1.8:devel/jdk/1.7
+MAKE_ENV+=             ALT_BOOTDIR="${LOCALBASE}/jdk-1.7.0"
+.else
 BUILD_DEPENDS+=                :jdk->=1.5,<1.6:devel/jdk/1.5
 MAKE_ENV+=             ALT_BOOTDIR="${LOCALBASE}/jdk-1.5.0"
+.endif
 .endif
 
 .if !${FLAVOR:L:Mno_web}
Index: pkg/DESCR-jre
===================================================================
RCS file: /cvs/ports/devel/jdk/1.6/pkg/DESCR-jre,v
retrieving revision 1.2
diff -u -r1.2 DESCR-jre
--- pkg/DESCR-jre       18 Nov 2008 01:51:59 -0000      1.2
+++ pkg/DESCR-jre       11 May 2009 03:13:16 -0000
@@ -15,6 +15,12 @@
     previously installed devel/jdk/1.6 package, the port will
     just build the jdk with default (devel/jdk/1.5) bootstrap and stop.
 
+  jdk17_bootstrap
+    Bootstrap the jdk using a previously built and installed
+    devel/jdk/1.7 package. NOTE: if this flavor is used without a
+    previously installed devel/jdk/1.7 package, the port will
+    build the 1.5 - 1.7 jdks using default bootstrap and stop.
+
   no_web
     The Mozilla plugin and Java Web Start (javaws) are not built.
 
Index: pkg/DESCR-main
===================================================================
RCS file: /cvs/ports/devel/jdk/1.6/pkg/DESCR-main,v
retrieving revision 1.2
diff -u -r1.2 DESCR-main
--- pkg/DESCR-main      18 Nov 2008 01:51:59 -0000      1.2
+++ pkg/DESCR-main      11 May 2009 03:13:16 -0000
@@ -12,6 +12,12 @@
     previously installed devel/jdk/1.6 package, the port will
     just build the jdk with default (devel/jdk/1.5) bootstrap and stop.
 
+  jdk17_bootstrap
+    Bootstrap the jdk using a previously built and installed
+    devel/jdk/1.7 package. NOTE: if this flavor is used without a
+    previously installed devel/jdk/1.7 package, the port will
+    build the 1.5 - 1.7 jdks using default bootstrap and stop.
+
   no_web
     The Mozilla plugin and Java Web Start (javaws) are not built.
 

Reply via email to