pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/openjdk8 Import openjdk8-1.8.31 as lang/openjdk8.
details: https://anonhg.NetBSD.org/pkgsrc/rev/06f386c90d5c
branches: trunk
changeset: 646374:06f386c90d5c
user: tnn <tnn%pkgsrc.org@localhost>
date: Sun Feb 08 08:41:25 2015 +0000
description:
Import openjdk8-1.8.31 as lang/openjdk8.
Open-source implementation of the Java Platform, Standard Edition.
diffstat:
lang/openjdk8/DESCR | 8 +
lang/openjdk8/Makefile | 194 +++
lang/openjdk8/PLIST | 638 ++++++++++
lang/openjdk8/PLIST.debug | 38 +
lang/openjdk8/bootstrap.mk | 69 +
lang/openjdk8/buildlink3.mk | 13 +
lang/openjdk8/distinfo | 76 +
lang/openjdk8/hacks.mk | 15 +
lang/openjdk8/options.mk | 85 +
lang/openjdk8/patches/patch-aa | 146 ++
lang/openjdk8/patches/patch-al | 47 +
lang/openjdk8/patches/patch-an | 14 +
lang/openjdk8/patches/patch-ap | 53 +
lang/openjdk8/patches/patch-as | 68 +
lang/openjdk8/patches/patch-at | 42 +
lang/openjdk8/patches/patch-ba | 15 +
lang/openjdk8/patches/patch-bh | 16 +
lang/openjdk8/patches/patch-bi | 45 +
lang/openjdk8/patches/patch-bn | 53 +
lang/openjdk8/patches/patch-common_autoconf_generated-configure.sh | 102 +
lang/openjdk8/patches/patch-common_autoconf_spec.gmk.in | 55 +
lang/openjdk8/patches/patch-hotspot_agent_src_share_classes_sun_jvm_hotspot_utilities_PlatformInfo.java | 13 +
lang/openjdk8/patches/patch-hotspot_make_bsd_makefiles_defs.make | 17 +
lang/openjdk8/patches/patch-hotspot_make_bsd_makefiles_rules.make | 50 +
lang/openjdk8/patches/patch-hotspot_src_os_bsd_vm_osThread__bsd.cpp | 13 +
lang/openjdk8/patches/patch-hotspot_src_os_posix_vm_os__posix.cpp | 36 +
lang/openjdk8/patches/patch-hotspot_src_share_vm_opto_node.cpp | 15 +
lang/openjdk8/patches/patch-jdk_make_GenerateSources.gmk | 15 +
lang/openjdk8/patches/patch-jdk_make_Images.gmk | 25 +
lang/openjdk8/patches/patch-jdk_make_lib_SoundLibraries.gmk | 13 +
lang/openjdk8/patches/patch-jdk_src_share_native_sun_awt_image_jpeg_imageioJPEG.c | 15 +
lang/openjdk8/patches/patch-jdk_src_share_native_sun_awt_image_jpeg_jpegdecoder.c | 15 +
lang/openjdk8/patches/patch-jdk_src_solaris_bin_ergo.c | 20 +
lang/openjdk8/patches/patch-jdk_src_solaris_classes_java_lang_UNIXProcess.java.bsd | 46 +
lang/openjdk8/patches/patch-jdk_src_solaris_classes_sun_net_PortConfig.java | 13 +
lang/openjdk8/patches/patch-jdk_src_solaris_classes_sun_nio_ch_DefaultAsynchronousChannelProvider.java | 16 +
lang/openjdk8/patches/patch-jdk_src_solaris_native_com_sun_media_sound_PLATFORM__API__BsdOS__ALSA__PCM.c | 17 +
lang/openjdk8/patches/patch-jdk_src_solaris_native_java_lang_UNIXProcess__md.c | 50 +
lang/openjdk8/patches/patch-jdk_src_solaris_native_java_lang_java__props__md.c | 16 +
lang/openjdk8/patches/patch-jdk_src_solaris_native_java_net_NetworkInterface.c | 61 +
lang/openjdk8/patches/patch-jdk_src_solaris_native_java_net_net__util__md.c | 16 +
lang/openjdk8/patches/patch-jdk_src_solaris_native_sun_awt_X11Color.c | 15 +
lang/openjdk8/patches/patch-jdk_src_solaris_native_sun_nio_ch_sctp_SctpChannelImpl.c | 15 +
lang/openjdk8/patches/patch-jdk_src_solaris_native_sun_nio_ch_sctp_SctpNet.c | 14 +
lang/openjdk8/patches/patch-jdk_src_solaris_native_sun_security_pkcs11_j2secmod_md.c | 15 +
lang/openjdk8/patches/patch-jdk_test_Makefile | 28 +
lang/openjdk8/patches/patch-jdk_test_java_beans_Introspector_4168475_Test4168475.java | 15 +
lang/openjdk8/patches/patch-jdk_test_java_beans_Introspector_4520754_Test4520754.java | 15 +
lang/openjdk8/patches/patch-jdk_test_java_beans_Introspector_Test4144543.java | 16 +
lang/openjdk8/patches/patch-jdk_test_java_lang_management_OperatingSystemMXBean_GetSystemLoadAverage.java | 15 +
lang/openjdk8/patches/patch-jdk_test_sun_security_ec_TestEC.java | 15 +
lang/openjdk8/patches/patch-langtools_make_BuildLangtools.gmk | 13 +
lang/openjdk8/patches/patch-langtools_make_build.xml | 24 +
53 files changed, 2474 insertions(+), 0 deletions(-)
diffs (truncated from 2686 to 300 lines):
diff -r a11a03ad2a06 -r 06f386c90d5c lang/openjdk8/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk8/DESCR Sun Feb 08 08:41:25 2015 +0000
@@ -0,0 +1,8 @@
+Open-source implementation of the Java Platform, Standard Edition.
+
+This package is NOT certified to be compatible with any Java standard.
+Use at own risk.
+
+Mandatory trademark notice:
+ "OpenJDK is a trademark or registered trademark of Oracle America,
+ Inc. in the United States and other countries."
diff -r a11a03ad2a06 -r 06f386c90d5c lang/openjdk8/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk8/Makefile Sun Feb 08 08:41:25 2015 +0000
@@ -0,0 +1,194 @@
+# $NetBSD: Makefile,v 1.1 2015/02/08 08:41:25 tnn Exp $
+
+DISTNAME= openjdk-1.8.31-20150207
+PKGNAME= openjdk8-1.8.31
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_LOCAL:=openjdk7/}
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://openjdk.java.net/
+COMMENT= Open-source implementation of the Java Platform, Standard Edition
+LICENSE= gnu-gpl-v2
+
+DISTFILES= ${DEFAULT_DISTFILES}
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+# Use same DIST_SUBDIR as openjdk7 to avoid duplication of common distfiles
+DIST_SUBDIR= openjdk7
+
+JAVA_NAME= openjdk8
+JAVA_HOME= ${PREFIX}/java/${JAVA_NAME}
+JAVA_WRAPPERS= jar java javac javadoc javah javap keytool orbd \
+ policytool rmid rmiregistry servertool tnameserv
+
+BUILD_DEPENDS+= mozilla-rootcerts>=1.0.20140820nb2:../../security/mozilla-rootcerts
+
+GNU_CONFIGURE= yes
+CONFIGURE_SCRIPT= common/autoconf/configure
+CONFIG_SHELL= bash
+USE_LANGUAGES= c c++
+USE_TOOLS+= bash gmake pax pkg-config unzip:run zip:run
+UNLIMIT_RESOURCES= datasize stacksize
+WRKSRC= ${WRKDIR}/openjdk
+PLIST_SRC+= ${PLIST_SRC_DFLT}
+
+BUILDLINK_PASSTHRU_DIRS+= ${ALT_BOOTDIR}
+PREPEND_PATH+= ${ALT_BOOTDIR}/bin
+
+CONFIGURE_ARGS+= --with-boot-jdk=${ALT_BOOTDIR}
+CONFIGURE_ARGS+= --with-zlib=system
+CONFIGURE_ARGS+= --with-giflib=bundled
+CONFIGURE_ARGS+= --with-cups=${BUILDLINK_PREFIX.cups}
+CONFIGURE_ARGS+= --with-freetype-lib=${BUILDLINK_PREFIX.freetype2}/lib
+CONFIGURE_ARGS+= --with-freetype-include=${BUILDLINK_PREFIX.freetype2}/include
+CONFIGURE_ARGS+= --disable-freetype-bundling
+CONFIGURE_ARGS+= --with-jobs=${MAKE_JOBS:U1}
+CONFIGURE_ARGS+= --with-num-cores=${MAKE_JOBS:U1}
+CONFIGURE_ARGS+= --with-memory-size=768
+CONFIGURE_ARGS+= --disable-ccache
+CONFIGURE_ARGS+= --with-user-release-suffix=pkgsrc_${PKGVERSION}
+CONFIGURE_ARGS+= --with-update-version=u${PKGVERSION_NOREV:S/1.8.//}
+
+ALL_ENV+= PKGSRC_BOOT_JDK_JVMARGS="-XX:+UseSerialGC -Xmx768M"
+ALL_ENV+= PKGSRC_BOOT_JDK_TOOLARGS="-J-XX:+UseSerialGC -J-Xmx768M"
+
+CHECK_PORTABILITY_SKIP+= hotspot/test/runtime/*/*.sh
+
+# Avoid build errors when JAVA_HOME and CLASSPATH are defined by user.
+MAKE_ENV+= JAVA_HOME=
+MAKE_ENV+= CLASSPATH=
+
+BUILDDIR= ${WRKSRC}/build/${OPSYS:C/.*BSD/bsd/:S/DragonFly/bsd/:S/SunOS/solaris/}-${MACHINE_ARCH:S/i386/x86/}-normal-${BUILD_VARIANT}-${BUILD_DEBUG_LEVEL}
+LD_LIBRARY_PATH=
${WRKDIR}/bootstrap/jre/lib/${MACHINE_ARCH:S/x86_64/amd64/}:${WRKDIR}/bootstrap/jre/lib/${MACHINE_ARCH:S/x86_64/amd64/}/jli:${WRKDIR}/bootstrap/jre/lib/${MACHINE_ARCH:S/x86_64/amd64/}/server
+CONFIGURE_ENV+= LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
+MAKE_ENV+= LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
+BUILDLINK_PASSTHRU_RPATHDIRS+= ${PREFIX}/java/openjdk8/jre/lib/${MACHINE_ARCH:S/x86_64/amd64/}
+
+PLIST_SUBST+= ARCH=${MACHINE_ARCH:S/x86_64/amd64/}
+PLIST_SUBST+= LOWER_OPSYS=${LOWER_OPSYS}
+
+.include "../../mk/compiler.mk"
+
+SUBST_CLASSES+= libpath
+SUBST_STAGE.libpath= pre-build
+SUBST_FILES.libpath+= hotspot/src/os/bsd/vm/os_bsd.cpp
+SUBST_VARS.libpath= PREFIX
+
+.if !empty(PKGSRC_COMPILER:Mclang)
+_WRAP_EXTRA_ARGS.CXX+= -Wno-parentheses -Wno-sign-conversion \
+ -Wno-shorten-64-to-32 -Wno-conversion \
+ -Wno-unused-value -Wno-switch-enum -Wno-switch \
+ -Wno-tautological-compare \
+ -Wno-delete-non-virtual-dtor \
+ -Wno-return-type -Wno-unused-parameter \
+ -Wno-parentheses-equality -Wno-empty-body \
+ -Wno-format -Wno-dynamic-class-memaccess
+CWRAPPERS_APPEND.cxx+= -Wno-parentheses -Wno-sign-conversion \
+ -Wno-shorten-64-to-32 -Wno-conversion \
+ -Wno-unused-value -Wno-switch-enum -Wno-switch \
+ -Wno-tautological-compare \
+ -Wno-delete-non-virtual-dtor \
+ -Wno-return-type -Wno-unused-parameter \
+ -Wno-parentheses-equality -Wno-empty-body \
+ -Wno-format -Wno-dynamic-class-memaccess
+. if ${OPSYS} != "FreeBSD"
+_WRAP_EXTRA_ARGS.CXX+= -Wno-new-returns-null
+CWRAPPERS_APPEND.cxx+= -Wno-new-returns-null
+. endif
+BUILDLINK_TRANSFORM+= rm:-fcheck-new
+BUILDLINK_TRANSFORM+= rm:-fpch-deps
+. if ${MACHINE_ARCH} == "x86_64"
+_WRAP_EXTRA_ARGS.CXX+= -mstackrealign
+CWRAPPERS_APPEND.cxx+= -mstackrealign
+. endif
+.endif
+.include "bootstrap.mk"
+
+.include "options.mk"
+
+SUBST_CLASSES+= fontpaths
+SUBST_STAGE.fontpaths= pre-build
+SUBST_MESSAGE.fontpaths= fixing font paths
+SUBST_FILES.fontpaths= jdk/src/solaris/classes/sun/awt/fontconfigs/bsd.fontconfig.properties
+SUBST_FILES.fontpaths+= jdk/src/solaris/native/sun/awt/fontpath.c
+SUBST_SED.fontpaths= -e 's|@PREFIX@|${PREFIX}|g'
+SUBST_SED.fontpaths+= -e 's|@BUILDLINK_PREFIX.fontconfig@|${BUILDLINK_PREFIX.fontconfig}|g'
+
+post-extract:
+.if ${OPSYS} == "SunOS"
+ ${MKDIR} ${ALT_BOOTDIR}/bin
+ ${LN} -s ${JDK_BOOTDIR}/include ${ALT_BOOTDIR}/include
+ ${LN} -s ${JDK_BOOTDIR}/lib ${ALT_BOOTDIR}/lib
+ ${LN} -s ${JDK_BOOTDIR}/bin/java ${ALT_BOOTDIR}/bin
+ ${LN} -s ${JDK_BOOTDIR}/bin/javac ${ALT_BOOTDIR}/bin
+ ${LN} -s ${JDK_BOOTDIR}/bin/javah ${ALT_BOOTDIR}/bin
+ ${LN} -s ${JDK_BOOTDIR}/bin/javap ${ALT_BOOTDIR}/bin
+ ${LN} -s ${JDK_BOOTDIR}/bin/idlj ${ALT_BOOTDIR}/bin
+ ${LN} -s ${JDK_BOOTDIR}/bin/jar ${ALT_BOOTDIR}/bin
+ ${LN} -s ${JDK_BOOTDIR}/bin/native2ascii ${ALT_BOOTDIR}/bin
+ ${LN} -s ${JDK_BOOTDIR}/bin/rmic ${ALT_BOOTDIR}/bin
+.elif ${OPSYS} == "NetBSD" && exists(${.CURDIR}/libs)
+ cp ${.CURDIR}/libs/lib* ${ALT_BOOTDIR}/jre/lib/${MACHINE_ARCH:S/x86_64/amd64/}
+.endif
+
+do-build: ${WRKDIR}/stage3-done
+
+# stage 1 builds a native JDK using the bootstrap binaries
+${WRKDIR}/stage1-done:
+ ${_ULIMIT_CMD} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} images
+ rm -rf ${ALT_BOOTDIR}
+ cd ${BUILDDIR}/images && mv j2sdk-image ${ALT_BOOTDIR}
+.for d in corba hotspot jaxp jaxws langtools tmp
+ mv ${BUILDDIR}/${d} ${BUILDDIR}/${d}-stage1
+.endfor
+ touch ${WRKDIR}/stage1-done
+
+# stage 2 rebuilds the JDK using native tools
+${WRKDIR}/stage2-done: ${WRKDIR}/stage1-done
+ ${_ULIMIT_CMD} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} images
+ touch ${WRKDIR}/stage2-done
+
+# stage 3 builds third party add-ons
+${WRKDIR}/stage3-done: ${WRKDIR}/stage2-done ${WRKDIR}/cacerts.out
+ touch ${WRKDIR}/stage3-done
+
+${WRKDIR}/cacerts.out:
+ mkdir ${WRKDIR}/cacerts && cd ${WRKDIR}/cacerts && \
+ ${PREFIX}/sbin/mozilla-rootcerts extract
+ for cert in ${WRKDIR}/cacerts/*.pem; do \
+ ${INFO_MSG} "Importing $$cert" && \
+ ${SETENV} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} LC_ALL=C \
+ ${BUILDDIR}/images/j2sdk-image/bin/keytool \
+ -noprompt \
+ -importcert \
+ -keystore ${.TARGET} \
+ -alias `${ECHO} $$cert | sed 's,.*/\\([^/]*\\)\\.pem,\\1,'` \
+ -file $$cert \
+ -storepass changeit; \
+ done
+
+do-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${JAVA_HOME}
+ cd ${BUILDDIR}/images/j2sdk-image && pax -rwpp . \
+ ${DESTDIR}${JAVA_HOME}/.
+ ${INSTALL_DATA} ${WRKDIR}/cacerts.out \
+ ${DESTDIR}${JAVA_HOME}/jre/lib/security/cacerts
+ rm -f ${DESTDIR}${JAVA_HOME}/include/jni_md.h
+ ln -s ${LOWER_OPSYS}/jni_md.h \
+ ${DESTDIR}${JAVA_HOME}/include/jni_md.h
+
+.if ${OPSYS} == "NetBSD"
+TOOLS_PLATFORM.unzip=
+.endif
+
+# disabled the ALSA support for now on BSDs via patch
+#.include "../../audio/alsa-lib/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+BUILDLINK_DEPMETHOD.cups?= build
+.include "../../print/cups15/buildlink3.mk"
+.include "../../mk/java-env.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a11a03ad2a06 -r 06f386c90d5c lang/openjdk8/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk8/PLIST Sun Feb 08 08:41:25 2015 +0000
@@ -0,0 +1,638 @@
+@comment $NetBSD: PLIST,v 1.1 2015/02/08 08:41:25 tnn Exp $
+bin/openjdk8-jar
+bin/openjdk8-java
+bin/openjdk8-javac
+bin/openjdk8-javadoc
+bin/openjdk8-javah
+bin/openjdk8-javap
+bin/openjdk8-keytool
+bin/openjdk8-orbd
+bin/openjdk8-policytool
+bin/openjdk8-rmid
+bin/openjdk8-rmiregistry
+bin/openjdk8-servertool
+bin/openjdk8-tnameserv
+java/openjdk8/ASSEMBLY_EXCEPTION
+java/openjdk8/LICENSE
+java/openjdk8/THIRD_PARTY_README
+${PLIST.x11}java/openjdk8/bin/appletviewer
+java/openjdk8/bin/extcheck
+java/openjdk8/bin/idlj
+java/openjdk8/bin/jar
+java/openjdk8/bin/jarsigner
+java/openjdk8/bin/java
+java/openjdk8/bin/java-rmi.cgi
+java/openjdk8/bin/javac
+java/openjdk8/bin/javadoc
+java/openjdk8/bin/javah
+java/openjdk8/bin/javap
+java/openjdk8/bin/jcmd
+java/openjdk8/bin/jconsole
+java/openjdk8/bin/jdb
+java/openjdk8/bin/jdeps
+java/openjdk8/bin/jhat
+java/openjdk8/bin/jinfo
+java/openjdk8/bin/jjs
+java/openjdk8/bin/jmap
+java/openjdk8/bin/jps
+java/openjdk8/bin/jrunscript
+java/openjdk8/bin/jsadebugd
+java/openjdk8/bin/jstack
+java/openjdk8/bin/jstat
+java/openjdk8/bin/jstatd
+java/openjdk8/bin/keytool
+java/openjdk8/bin/native2ascii
+java/openjdk8/bin/orbd
+java/openjdk8/bin/pack200
+${PLIST.x11}java/openjdk8/bin/policytool
+java/openjdk8/bin/rmic
+java/openjdk8/bin/rmid
+java/openjdk8/bin/rmiregistry
+java/openjdk8/bin/schemagen
+java/openjdk8/bin/serialver
+java/openjdk8/bin/servertool
+java/openjdk8/bin/tnameserv
+java/openjdk8/bin/unpack200
+java/openjdk8/bin/wsgen
+java/openjdk8/bin/wsimport
+java/openjdk8/bin/xjc
+java/openjdk8/demo/README
+java/openjdk8/demo/applets/ArcTest/ArcCanvas.class
+java/openjdk8/demo/applets/ArcTest/ArcControls.class
+java/openjdk8/demo/applets/ArcTest/ArcTest.class
+java/openjdk8/demo/applets/ArcTest/ArcTest.java
+java/openjdk8/demo/applets/ArcTest/IntegerTextField.class
+java/openjdk8/demo/applets/ArcTest/example1.html
+java/openjdk8/demo/applets/BarChart/BarChart.class
+java/openjdk8/demo/applets/BarChart/BarChart.java
+java/openjdk8/demo/applets/BarChart/example1.html
+java/openjdk8/demo/applets/BarChart/example2.html
+java/openjdk8/demo/applets/Blink/Blink$1.class
+java/openjdk8/demo/applets/Blink/Blink.class
+java/openjdk8/demo/applets/Blink/Blink.java
+java/openjdk8/demo/applets/Blink/example1.html
+java/openjdk8/demo/applets/CardTest/CardPanel.class
+java/openjdk8/demo/applets/CardTest/CardTest.class
+java/openjdk8/demo/applets/CardTest/CardTest.java
+java/openjdk8/demo/applets/CardTest/example1.html
+java/openjdk8/demo/applets/Clock/Clock.class
+java/openjdk8/demo/applets/Clock/Clock.java
+java/openjdk8/demo/applets/Clock/example1.html
+java/openjdk8/demo/applets/DitherTest/CardinalTextField.class
+java/openjdk8/demo/applets/DitherTest/DitherCanvas.class
+java/openjdk8/demo/applets/DitherTest/DitherControls.class
+java/openjdk8/demo/applets/DitherTest/DitherMethod.class
+java/openjdk8/demo/applets/DitherTest/DitherTest$1.class
+java/openjdk8/demo/applets/DitherTest/DitherTest.class
Home |
Main Index |
Thread Index |
Old Index