pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/openjdk11 lang/openjdk11: import openjdk11-1.11.0...
details: https://anonhg.NetBSD.org/pkgsrc/rev/65b8e26e2a17
branches: trunk
changeset: 340283:65b8e26e2a17
user: tnn <tnn%pkgsrc.org@localhost>
date: Tue Oct 01 12:36:34 2019 +0000
description:
lang/openjdk11: import openjdk11-1.11.0.5.8 from pkgsrc-wip
diffstat:
lang/openjdk11/DESCR | 8 +
lang/openjdk11/Makefile | 181 ++
lang/openjdk11/PLIST | 620 ++++++++++
lang/openjdk11/bootstrap.mk | 22 +
lang/openjdk11/distinfo | 31 +
lang/openjdk11/hacks.mk | 52 +
lang/openjdk11/options.mk | 117 +
lang/openjdk11/patches/patch-make_autoconf_basics.m4 | 24 +
lang/openjdk11/patches/patch-make_autoconf_flags-cflags.m4 | 37 +
lang/openjdk11/patches/patch-make_autoconf_jdk-options.m4 | 15 +
lang/openjdk11/patches/patch-make_autoconf_lib-bundled.m4 | 16 +
lang/openjdk11/patches/patch-make_autoconf_lib-freetype.m4 | 15 +
lang/openjdk11/patches/patch-make_autoconf_lib-x11.m4 | 15 +
lang/openjdk11/patches/patch-make_common_NativeCompilation.gmk | 16 +
lang/openjdk11/patches/patch-make_data_fontconfig_bsd.fontconfig.properties | 53 +
lang/openjdk11/patches/patch-src_hotspot_os_bsd_os__bsd.cpp | 27 +
lang/openjdk11/patches/patch-src_hotspot_os_bsd_os__perf__bsd.cpp | 27 +
lang/openjdk11/patches/patch-src_hotspot_os_posix_os__posix.cpp | 24 +
lang/openjdk11/patches/patch-src_java.base_bsd_native_libjava_ProcessHandleImpl__bsd.c | 35 +
lang/openjdk11/patches/patch-src_java.base_unix_native_libjava_ProcessHandleImpl__unix.c | 15 +
lang/openjdk11/patches/patch-src_java.base_unix_native_libjava_ProcessHandleImpl__unix.h | 14 +
lang/openjdk11/patches/patch-src_java.base_unix_native_libjsig_jsig.c | 18 +
lang/openjdk11/patches/patch-src_java.desktop_unix_native_common_awt_fontpath.c | 53 +
lang/openjdk11/patches/patch-src_jdk.management_bsd_native_libmanagement__ext_UnixOperatingSystem.c | 16 +
24 files changed, 1451 insertions(+), 0 deletions(-)
diffs (truncated from 1547 to 300 lines):
diff -r ec957dbf1a82 -r 65b8e26e2a17 lang/openjdk11/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk11/DESCR Tue Oct 01 12:36:34 2019 +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 ec957dbf1a82 -r 65b8e26e2a17 lang/openjdk11/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk11/Makefile Tue Oct 01 12:36:34 2019 +0000
@@ -0,0 +1,181 @@
+# $NetBSD: Makefile,v 1.1 2019/10/01 12:36:34 tnn Exp $
+
+DISTNAME= openjdk-jdk11u-${GITHUB_TAG:C/\+/-/}
+PKGNAME= openjdk11-1.${GITHUB_TAG:C/\+/./:C/jdk-([.0-9]+).*/\1/}
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_GITHUB:=battleblow/}
+GITHUB_PROJECT= openjdk-jdk11u
+GITHUB_TAG= jdk-11.0.5+8-1
+
+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}
+
+JAVA_NAME= openjdk11
+JAVA_HOME= ${PREFIX}/java/${JAVA_NAME}
+JAVA_WRAPPERS= jar java javac javadoc javah javap jcmd jhat jps jstack \
+ keytool orbd policytool rmid rmiregistry servertool tnameserv
+
+BUILD_DEPENDS+= mozilla-rootcerts>=1.0.20140820nb2:../../security/mozilla-rootcerts
+
+GNU_CONFIGURE= yes
+USE_GNU_CONFIGURE_HOST= no
+CONFIGURE_SCRIPT= configure
+CONFIG_SHELL= bash
+CONFIG_SUB_OVERRIDE+= make/autoconf/build-aux/config.sub
+CONFIG_GUESS_OVERRIDE+= make/autoconf/build-aux/config.guess
+CONFIG_SUB_OVERRIDE+= make/autoconf/build-aux/autoconf-config.sub
+CONFIG_GUESS_OVERRIDE+= make/autoconf/build-aux/autoconf-config.guess
+USE_LANGUAGES= c c++
+USE_TOOLS+= bash gmake pax pkg-config unzip:run zip:run autoconf automake
+UNLIMIT_RESOURCES= datasize stacksize
+
+BUILDLINK_PASSTHRU_DIRS+= ${ALT_BOOTDIR}
+
+# Try to use less POSIX semaphores (large MAKE_JOBS can consume them all)
+BOOT_JVMARGS= -XX:+UnlockDiagnosticVMOptions \
+ -XX:-UseSemaphoreGCThreadsSynchronization
+
+CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
+CONFIGURE_ARGS+= --openjdk-target=${MACHINE_GNU_PLATFORM:Q}
+CONFIGURE_ARGS+= --with-boot-jdk=${ALT_BOOTDIR}
+CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=${BOOT_JVMARGS:Q}
+CONFIGURE_ARGS+= --with-zlib=system
+CONFIGURE_ARGS+= --with-giflib=bundled
+CONFIGURE_ARGS+= --with-lcms=bundled
+CONFIGURE_ARGS+= --with-cups-include=${BUILDLINK_PREFIX.cups-base}/include
+CONFIGURE_ARGS+= --with-freetype=system
+CONFIGURE_ARGS+= --with-freetype-lib=${BUILDLINK_PREFIX.freetype2}/lib
+CONFIGURE_ARGS+= --with-freetype-include=${BUILDLINK_PREFIX.freetype2}/include
+CONFIGURE_ARGS+= --with-jobs=${MAKE_JOBS:U1}
+CONFIGURE_ARGS+= --with-num-cores=${MAKE_JOBS:U1}
+CONFIGURE_ARGS+= --disable-precompiled-headers
+CONFIGURE_ARGS+= --disable-ccache
+CONFIGURE_ARGS+= --disable-javac-server
+CONFIGURE_ARGS+= --with-extra-ldflags=${LDFLAGS:Q}
+CONFIGURE_ARGS+= --with-extra-cflags=${CFLAGS:Q}
+CONFIGURE_ARGS+= --with-extra-cxxflags=${CXXFLAGS:Q}
+CONFIGURE_ARGS+= --disable-warnings-as-errors
+CONFIGURE_ARGS+= --with-cacerts-file=${WRKDIR}/cacerts.out
+CONFIGURE_ARGS+= --with-default-make-target=product-images
+# It is intentional to use CONFIGURE_ARGS instead of CONFIGURE_ENV here.
+CONFIGURE_ARGS+= USER=pkgsrc
+
+# Avoid build errors when JAVA_HOME and CLASSPATH are defined by user.
+MAKE_ENV+= JAVA_HOME=
+MAKE_ENV+= CLASSPATH=
+
+BUILD_OPSYS= ${OPSYS:C/.*BSD/bsd/:S/DragonFly/bsd/:S/SunOS/solaris/:S/Linux/linux/}
+BUILD_ARCH= ${MACHINE_ARCH:S/i386/x86/:S/sparc64/sparcv9/:C/^e?arm.*$/arm/}
+BUILDDIR= ${WRKSRC}/build/${BUILD_OPSYS}-${BUILD_ARCH}-normal-${BUILD_VARIANT}-${BUILD_DEBUG_LEVEL}
+BUILDLINK_PASSTHRU_RPATHDIRS+= ${PREFIX}/java/${JAVA_NAME}/lib
+BUILDLINK_PASSTHRU_RPATHDIRS+= ${PREFIX}/java/${JAVA_NAME}/lib/server
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+.include "../../mk/compiler.mk"
+
+# Fix segfault under NetBSD/amd64 8.99 with GCC 6.4.0
+.if !empty(CC_VERSION:Mgcc-[67].*)
+CFLAGS+= -fno-lifetime-dse
+CFLAGS+= -fno-delete-null-pointer-checks
+.endif
+
+.if !empty(PKGSRC_COMPILER:Mclang)
+CONFIGURE_ARGS+= --with-toolchain-type=clang
+_WRAP_EXTRA_ARGS.CC+= -Wno-format-nonliteral -Wno-sign-compare -Wno-char-subscripts
+CWRAPPERS_APPEND.cc+= -Wno-format-nonliteral -Wno-sign-compare -Wno-char-subscripts
+_WRAP_EXTRA_ARGS.CXX+= -Wno-tautological-undefined-compare
+CWRAPPERS_APPEND.cxx+= -Wno-tautological-undefined-compare
+
+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
+.else
+# GCC
+CONFIGURE_ARGS+= --with-toolchain-type=gcc
+.endif
+
+.include "bootstrap.mk"
+.include "options.mk"
+
+SUBST_CLASSES+= libpath
+SUBST_STAGE.libpath= pre-configure
+SUBST_FILES.libpath+= src/hotspot/os/bsd/os_bsd.cpp
+SUBST_FILES.libpath+= make/autoconf/flags-cflags.m4
+SUBST_FILES.libpath+= make/autoconf/lib-bundled.m4
+SUBST_FILES.libpath+= make/autoconf/lib-freetype.m4
+SUBST_FILES.libpath+= make/autoconf/lib-x11.m4
+SUBST_VARS.libpath= PREFIX COMPILER_RPATH_FLAG JAVA_NAME BUILDLINK_PREFIX.zlib X11BASE
+
+SUBST_CLASSES+= fontpaths
+SUBST_STAGE.fontpaths= pre-configure
+SUBST_MESSAGE.fontpaths= fixing font paths
+SUBST_FILES.fontpaths= make/data/fontconfig/bsd.fontconfig.properties
+SUBST_FILES.fontpaths+= src/java.desktop/unix/native/common/awt/fontpath.c
+SUBST_VARS.fontpaths= PREFIX BUILDLINK_PREFIX.fontconfig
+
+PLIST_VARS+= aot
+PLIST_VARS+= internal_vm_compiler
+.if ${MACHINE_ARCH} == "x86_64"
+PLIST.aot= yes
+PLIST.internal_vm_compiler= yes
+.endif
+
+.if ${OPSYS} == "NetBSD"
+TOOLS_PLATFORM.unzip=
+.endif
+
+post-extract:
+# These libs are bundled w/ the netbsd-7 bootstrap to facilitate building with
+# MKLLVM=yes / MKGCC=no. Nuke them from bootstrap if they are present in base.
+.if exists(/lib/libgcc_s.so.1)
+ ${RM} -f ${ALT_BOOTDIR}/lib/libgcc_s.so*
+.endif
+
+pre-configure: ${WRKDIR}/cacerts.out
+
+${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} ${CONFIGURE_ENV} LC_ALL=C \
+ ${ALT_BOOTDIR}/bin/keytool \
+ -noprompt \
+ -importcert \
+ -keystore ${.TARGET}.tmp \
+ -alias `${ECHO} $$cert | sed 's,.*/\\([^/]*\\)\\.pem,\\1,'` \
+ -file $$cert \
+ -storepass changeit; \
+ done
+ mv ${.TARGET}.tmp ${.TARGET}
+
+do-build:
+ rm -f ${WRKSRC}/make/data/fontconfig/*.orig
+ ${_ULIMIT_CMD} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
+
+do-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${JAVA_HOME}
+ cd ${BUILDDIR}/images/jdk && pax -rwpp . \
+ ${DESTDIR}${JAVA_HOME}/.
+
+.if ${OPSYS} == "Linux"
+.include "../../audio/alsa-lib/buildlink3.mk"
+.endif
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+# Headers from CUPS are required to build the native implementation of
+# sun.print.* which is used by java.awt.print.
+BUILDLINK_DEPMETHOD.cups-base?= build
+.include "../../print/cups-base/buildlink3.mk"
+.include "../../mk/java-env.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ec957dbf1a82 -r 65b8e26e2a17 lang/openjdk11/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk11/PLIST Tue Oct 01 12:36:34 2019 +0000
@@ -0,0 +1,620 @@
+@comment $NetBSD: PLIST,v 1.1 2019/10/01 12:36:34 tnn Exp $
+bin/openjdk11-jar
+bin/openjdk11-java
+bin/openjdk11-javac
+bin/openjdk11-javadoc
+bin/openjdk11-javah
+bin/openjdk11-javap
+bin/openjdk11-jcmd
+bin/openjdk11-jhat
+bin/openjdk11-jps
+bin/openjdk11-jstack
+bin/openjdk11-keytool
+bin/openjdk11-orbd
+bin/openjdk11-policytool
+bin/openjdk11-rmid
+bin/openjdk11-rmiregistry
+bin/openjdk11-servertool
+bin/openjdk11-tnameserv
+${PLIST.aot}java/openjdk11/bin/jaotc
+java/openjdk11/bin/jar
+java/openjdk11/bin/jarsigner
+java/openjdk11/bin/java
+java/openjdk11/bin/javac
+java/openjdk11/bin/javadoc
+java/openjdk11/bin/javap
+java/openjdk11/bin/jcmd
+java/openjdk11/bin/jconsole
+java/openjdk11/bin/jdb
+java/openjdk11/bin/jdeprscan
+java/openjdk11/bin/jdeps
+java/openjdk11/bin/jimage
+java/openjdk11/bin/jinfo
+java/openjdk11/bin/jjs
+java/openjdk11/bin/jlink
+java/openjdk11/bin/jmap
+java/openjdk11/bin/jmod
+java/openjdk11/bin/jps
+java/openjdk11/bin/jrunscript
+java/openjdk11/bin/jshell
+java/openjdk11/bin/jstack
+java/openjdk11/bin/jstat
+java/openjdk11/bin/jstatd
+java/openjdk11/bin/keytool
+java/openjdk11/bin/pack200
+java/openjdk11/bin/rmic
+java/openjdk11/bin/rmid
+java/openjdk11/bin/rmiregistry
+java/openjdk11/bin/serialver
+java/openjdk11/bin/unpack200
+java/openjdk11/conf/logging.properties
+java/openjdk11/conf/management/jmxremote.access
+java/openjdk11/conf/management/jmxremote.password.template
+java/openjdk11/conf/management/management.properties
+java/openjdk11/conf/net.properties
+java/openjdk11/conf/security/java.policy
+java/openjdk11/conf/security/java.security
+java/openjdk11/conf/security/policy/README.txt
+java/openjdk11/conf/security/policy/limited/default_US_export.policy
+java/openjdk11/conf/security/policy/limited/default_local.policy
+java/openjdk11/conf/security/policy/limited/exempt_local.policy
+java/openjdk11/conf/security/policy/unlimited/default_US_export.policy
+java/openjdk11/conf/security/policy/unlimited/default_local.policy
+java/openjdk11/conf/sound.properties
+java/openjdk11/demo/README
+java/openjdk11/demo/jfc/CodePointIM/CodePointIM.jar
+java/openjdk11/demo/jfc/CodePointIM/README.html
+java/openjdk11/demo/jfc/CodePointIM/README_ja.html
+java/openjdk11/demo/jfc/CodePointIM/README_zh_CN.html
+java/openjdk11/demo/jfc/CodePointIM/src.zip
+java/openjdk11/demo/jfc/FileChooserDemo/FileChooserDemo.jar
+java/openjdk11/demo/jfc/FileChooserDemo/README.txt
+java/openjdk11/demo/jfc/FileChooserDemo/src.zip
+java/openjdk11/demo/jfc/Font2DTest/Font2DTest.html
+java/openjdk11/demo/jfc/Font2DTest/Font2DTest.jar
+java/openjdk11/demo/jfc/Font2DTest/README.txt
+java/openjdk11/demo/jfc/Font2DTest/src.zip
+java/openjdk11/demo/jfc/J2Ddemo/J2Ddemo.jar
+java/openjdk11/demo/jfc/J2Ddemo/README.txt
+java/openjdk11/demo/jfc/J2Ddemo/src.zip
+java/openjdk11/demo/jfc/Metalworks/Metalworks.jar
+java/openjdk11/demo/jfc/Metalworks/README.txt
+java/openjdk11/demo/jfc/Metalworks/src.zip
+java/openjdk11/demo/jfc/Notepad/Notepad.jar
+java/openjdk11/demo/jfc/Notepad/README.txt
+java/openjdk11/demo/jfc/Notepad/src.zip
+java/openjdk11/demo/jfc/SampleTree/README.txt
+java/openjdk11/demo/jfc/SampleTree/SampleTree.jar
+java/openjdk11/demo/jfc/SampleTree/src.zip
+java/openjdk11/demo/jfc/Stylepad/README.txt
+java/openjdk11/demo/jfc/Stylepad/Stylepad.jar
+java/openjdk11/demo/jfc/Stylepad/src.zip
+java/openjdk11/demo/jfc/SwingSet2/README.txt
+java/openjdk11/demo/jfc/SwingSet2/SwingSet2.html
+java/openjdk11/demo/jfc/SwingSet2/SwingSet2.jar
+java/openjdk11/demo/jfc/SwingSet2/src.zip
+java/openjdk11/demo/jfc/TableExample/README.txt
+java/openjdk11/demo/jfc/TableExample/TableExample.jar
+java/openjdk11/demo/jfc/TableExample/src.zip
+java/openjdk11/demo/jfc/TransparentRuler/README.txt
Home |
Main Index |
Thread Index |
Old Index