diff options
-rw-r--r-- | java/bootstrap-openjdk/Makefile | 17 | ||||
-rw-r--r-- | java/bootstrap-openjdk/Makefile.update | 26 | ||||
-rw-r--r-- | java/bootstrap-openjdk/distinfo.amd64 | 4 | ||||
-rw-r--r-- | java/bootstrap-openjdk/distinfo.i386 | 4 | ||||
-rw-r--r-- | java/bootstrap-openjdk/files/bootstrap.patch | 45 | ||||
-rw-r--r-- | java/bootstrap-openjdk/pkg-plist | 1 |
6 files changed, 33 insertions, 64 deletions
diff --git a/java/bootstrap-openjdk/Makefile b/java/bootstrap-openjdk/Makefile index b68cfdbebebd..31339f6b5462 100644 --- a/java/bootstrap-openjdk/Makefile +++ b/java/bootstrap-openjdk/Makefile @@ -18,8 +18,8 @@ RUN_DEPENDS= ${LOCALBASE}/share/java/zi:${PORTSDIR}/java/java-zoneinfo ONLY_FOR_ARCH= amd64 i386 DISTINFO_FILE= ${.CURDIR}/distinfo.${ARCH} -DISTVERSION_amd64= r333271 -DISTVERSION_i386= r333271 +DISTVERSION_amd64= r347418 +DISTVERSION_i386= r347418 JDK_NAME= openjdk JDK_PORT= openjdk6 @@ -32,12 +32,15 @@ WRKSRC= ${WRKDIR}/${JDK_ROOT} INSTALLDIR= ${STAGEDIR}${PREFIX}/${JDK_ROOT} -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 900010 -RUN_DEPENDS+= ${LOCALBASE}/lib/compat/libz.so.5:${PORTSDIR}/misc/compat8x +.if !exists(/usr/lib/libstdc++.so.6) +PLIST_SUB+= LIBSTDCXX="" +.else +EXCLUDE_EXP= -not -name libstdc++.so.6 +PLIST_SUB+= LIBSTDCXX="@comment " .endif +.include <bsd.port.pre.mk> + .if ${ARCH} == "i386" PLIST_SUB+= CLIENTVM="" .else @@ -45,7 +48,7 @@ PLIST_SUB+= CLIENTVM="@comment " .endif do-install: - @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${INSTALLDIR} + @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${INSTALLDIR} "${EXCLUDE_EXP}" @cd ${WRKSRC} && ${COPYTREE_BIN} "bin jre/bin" ${INSTALLDIR} update: diff --git a/java/bootstrap-openjdk/Makefile.update b/java/bootstrap-openjdk/Makefile.update index 85a4d9598577..0e729729cb69 100644 --- a/java/bootstrap-openjdk/Makefile.update +++ b/java/bootstrap-openjdk/Makefile.update @@ -17,6 +17,8 @@ LOCALBASE?= /usr/local .include "${PORTSDIR}/Mk/bsd.commands.mk" +FT2_PORTDIR!= ${REALPATH} ${PORTSDIR}/print/freetype2 +FT2_IMAGEDIR?= ${FT2_PORTDIR}/work/stage/usr/local JDK_PORTDIR!= ${REALPATH} ${PORTSDIR}/java/${JDK_PORT} JDK_IMAGEDIR?= ${JDK_PORTDIR}/work/stage/usr/local/${JDK_PORT} @@ -32,21 +34,26 @@ PORTREVISION!= ${GET_REVISION} 2>/dev/null || ${TRUE} DISTDIR?= ${.CURDIR} DISTFILE= ${JDK_PORT}-${ARCH}-r${PORTREVISION}.tar.xz DISTINFO_FILE= ${.CURDIR}/distinfo.${ARCH} -EXTRA_PATCHES= ${.CURDIR}/files/bootstrap.patch MAKEFILE= ${.CURDIR}/Makefile PLIST?= ${.CURDIR}/pkg-plist PLIST_SUB= ARCH="${ARCH}" JDK_ROOT="." -BUILD_ARGS= BATCH=yes -BUILD_ARGS+= EXTRA_PATCHES="${EXTRA_PATCHES}" -BUILD_ARGS+= PORT_DBDIR=/var/empty -BUILD_ARGS+= WITHOUT_ICEDTEA=yes +BUILD_ARGS= BATCH=yes PORT_DBDIR=/var/empty +BUILD_ENV= __MAKE_CONF=/dev/null PATH="${PATH}" +FT2_BUILD_ARGS= ${BUILD_ARGS} +FT2_BUILD_ARGS+=CONFIGURE_ARGS="--without-bzip2 --without-png --without-zlib" +JDK_BUILD_ARGS= ${BUILD_ARGS} +JDK_BUILD_ARGS+=java_openjdk6_UNSET=ICEDTEA +JDK_BUILD_ARGS+=ALT_FREETYPE_HEADERS_PATH="${FT2_IMAGEDIR}/include" +JDK_BUILD_ARGS+=ALT_FREETYPE_LIB_PATH="${FT2_IMAGEDIR}/lib" +JDK_BUILD_ARGS+=SYSTEM_ZLIB=false ZLIB_LIBS="" .if ${ARCH} == "i386" PLIST_SUB+= CLIENTVM="" .else PLIST_SUB+= CLIENTVM="@comment " .endif +PLIST_SUB+= LIBSTDCXX="" all: @${ECHO} "" @@ -66,8 +73,11 @@ all: @${ECHO} "==============================================================" @${ECHO} "" .if !defined(NO_BUILD) - @${SETENV} -i PATH="${PATH}" __MAKE_CONF=/dev/null \ - ${MAKE} -C "${JDK_PORTDIR}" ${BUILD_ARGS} stage + @${SETENV} -i ${BUILD_ENV} \ + ${MAKE} -C "${FT2_PORTDIR}" ${FT2_BUILD_ARGS} stage + @${SETENV} -i ${BUILD_ENV} \ + ${MAKE} -C "${JDK_PORTDIR}" ${JDK_BUILD_ARGS} stage + @${CP} -p /usr/lib/libstdc++.so.6 "${JDK_IMAGEDIR}/jre/lib/${ARCH}" @${FIND} "${JDK_IMAGEDIR}" -type f \ -exec ${STRIP_CMD} -s {} \; 2> /dev/null .endif @@ -88,7 +98,7 @@ all: @${ECHO} "Finished at "`${SETENV} LANG=C date -u`"." @${ECHO} "" @${ECHO} "You may clean up the build directory if everything looks okay," - @${ECHO} "e.g., 'rm -fr ${JDK_PORTDIR}/work'." + @${ECHO} "e.g., 'rm -fr ${FT2_PORTDIR}/work ${JDK_PORTDIR}/work'." @${ECHO} "" @${ECHO} "==============================================================" @${ECHO} "" diff --git a/java/bootstrap-openjdk/distinfo.amd64 b/java/bootstrap-openjdk/distinfo.amd64 index 149f518ff70d..4e86358b71bd 100644 --- a/java/bootstrap-openjdk/distinfo.amd64 +++ b/java/bootstrap-openjdk/distinfo.amd64 @@ -1,2 +1,2 @@ -SHA256 (openjdk6-amd64-r333271.tar.xz) = a37ad2c34c621bccf8762eb9447945741baa67b1fc085ca3d85e110b2780fe8d -SIZE (openjdk6-amd64-r333271.tar.xz) = 21935920 +SHA256 (openjdk6-amd64-r347418.tar.xz) = 658be1259c3c6802bcef708f186ff244a0a9a5ecd1a9229758ddbc6624db8b46 +SIZE (openjdk6-amd64-r347418.tar.xz) = 22318856 diff --git a/java/bootstrap-openjdk/distinfo.i386 b/java/bootstrap-openjdk/distinfo.i386 index 172ae06eabb5..a22f0f8cd15e 100644 --- a/java/bootstrap-openjdk/distinfo.i386 +++ b/java/bootstrap-openjdk/distinfo.i386 @@ -1,2 +1,2 @@ -SHA256 (openjdk6-i386-r333271.tar.xz) = 1583de7df6b9f0003222b7d48176150a6ce0bb63cb1bda476a1f998e65020a3b -SIZE (openjdk6-i386-r333271.tar.xz) = 22054372 +SHA256 (openjdk6-i386-r347418.tar.xz) = dd4929fe7600c0294ac0d1fc2ac5392b1a77308dd8c7c65e8afd9d4492e0135c +SIZE (openjdk6-i386-r347418.tar.xz) = 22421440 diff --git a/java/bootstrap-openjdk/files/bootstrap.patch b/java/bootstrap-openjdk/files/bootstrap.patch deleted file mode 100644 index fef466f77103..000000000000 --- a/java/bootstrap-openjdk/files/bootstrap.patch +++ /dev/null @@ -1,45 +0,0 @@ ---- hotspot/src/share/vm/Xusage.txt -+++ hotspot/src/share/vm/Xusage.txt -@@ -1,5 +1,5 @@ -- -Xmixed mixed mode execution (default) -- -Xint interpreted mode execution only -+ -Xint interpreted mode execution only (default) -+ -Xmixed mixed mode execution - -Xbootclasspath:<directories and zip/jar files separated by ;> - set search path for bootstrap classes and resources - -Xbootclasspath/a:<directories and zip/jar files separated by ;> ---- hotspot/src/share/vm/runtime/arguments.cpp -+++ hotspot/src/share/vm/runtime/arguments.cpp -@@ -67,7 +67,7 @@ - bool Arguments::_has_profile = false; - bool Arguments::_has_alloc_profile = false; - uintx Arguments::_min_heap_size = 0; --Arguments::Mode Arguments::_mode = _mixed; -+Arguments::Mode Arguments::_mode = _int; - bool Arguments::_java_compiler = false; - bool Arguments::_xdebug_mode = false; - const char* Arguments::_java_vendor_url_bug = DEFAULT_VENDOR_URL_BUG; -@@ -2036,8 +2036,8 @@ - Arguments::_ClipInlining = ClipInlining; - Arguments::_BackgroundCompilation = BackgroundCompilation; - -- // Setup flags for mixed which is the default -- set_mode_flags(_mixed); -+ // Setup flags for interpreter which is the default -+ set_mode_flags(_int); - - // Parse JAVA_TOOL_OPTIONS environment variable (if present) - jint result = parse_java_tool_options_environment_variable(&scp, &scp_assembly_required); ---- jdk/src/share/classes/sun/launcher/resources/launcher.properties -+++ jdk/src/share/classes/sun/launcher/resources/launcher.properties -@@ -75,8 +75,8 @@ - - # Translators please note do not translate the options themselves - java.launcher.X.usage=\ --\ -Xmixed mixed mode execution (default)\n\ --\ -Xint interpreted mode execution only\n\ -+\ -Xint interpreted mode execution only (default)\n\ -+\ -Xmixed mixed mode execution\n\ - \ -Xbootclasspath:<directories and zip/jar files separated by {0}>\n\ - \ set search path for bootstrap classes and resources\n\ - \ -Xbootclasspath/a:<directories and zip/jar files separated by {0}>\n\ diff --git a/java/bootstrap-openjdk/pkg-plist b/java/bootstrap-openjdk/pkg-plist index 2114435ce18b..b3dffa0ee0ed 100644 --- a/java/bootstrap-openjdk/pkg-plist +++ b/java/bootstrap-openjdk/pkg-plist @@ -33,6 +33,7 @@ %%JDK_ROOT%%/jre/lib/%%ARCH%%/liblcms.so %%JDK_ROOT%%/jre/lib/%%ARCH%%/libnet.so %%JDK_ROOT%%/jre/lib/%%ARCH%%/libnio.so +%%LIBSTDCXX%%%%JDK_ROOT%%/jre/lib/%%ARCH%%/libstdc++.so.6 %%JDK_ROOT%%/jre/lib/%%ARCH%%/libverify.so %%JDK_ROOT%%/jre/lib/%%ARCH%%/libzip.so %%CLIENTVM%%%%JDK_ROOT%%/jre/lib/%%ARCH%%/client/libjvm.so |