pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/openjdk17 lang/openjdk17: import openjdk17-1.17.0...
details: https://anonhg.NetBSD.org/pkgsrc/rev/246b3eba2f50
branches: trunk
changeset: 379243:246b3eba2f50
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Fri May 13 14:24:19 2022 +0000
description:
lang/openjdk17: import openjdk17-1.17.0.3.7
Open-source implementation of the Java Platform, Standard Edition.
This package privides OpenJDK 17 LTS.
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."
diffstat:
lang/openjdk17/DESCR | 9 +
lang/openjdk17/Makefile | 211 +++
lang/openjdk17/PLIST | 636 ++++++++++
lang/openjdk17/bootstrap.mk | 41 +
lang/openjdk17/buildlink3.mk | 17 +
lang/openjdk17/distinfo | 34 +
lang/openjdk17/hacks.mk | 47 +
lang/openjdk17/options.mk | 108 +
lang/openjdk17/patches/patch-make_autoconf_flags-cflags.m4 | 37 +
lang/openjdk17/patches/patch-make_autoconf_lib-alsa.m4 | 24 +
lang/openjdk17/patches/patch-make_autoconf_lib-bundled.m4 | 16 +
lang/openjdk17/patches/patch-make_autoconf_lib-freetype.m4 | 15 +
lang/openjdk17/patches/patch-make_autoconf_lib-x11.m4 | 15 +
lang/openjdk17/patches/patch-make_common_NativeCompilation.gmk | 16 +
lang/openjdk17/patches/patch-make_data_fontconfig_bsd.fontconfig.properties | 51 +
lang/openjdk17/patches/patch-make_lib_Awt2dLibraries.gmk | 17 +
lang/openjdk17/patches/patch-src_hotspot_os_bsd_os__bsd.cpp | 34 +
lang/openjdk17/patches/patch-src_hotspot_os_bsd_os__perf__bsd.cpp | 26 +
lang/openjdk17/patches/patch-src_hotspot_os_posix_os__posix.cpp | 24 +
lang/openjdk17/patches/patch-src_hotspot_os_posix_signals__posix.cpp | 16 +
lang/openjdk17/patches/patch-src_java.base_bsd_native_libjava_ProcessHandleImpl__bsd.c | 32 +
lang/openjdk17/patches/patch-src_java.base_unix_native_libjava_ProcessHandleImpl__unix.c | 15 +
lang/openjdk17/patches/patch-src_java.base_unix_native_libjava_ProcessHandleImpl__unix.h | 14 +
lang/openjdk17/patches/patch-src_java.base_unix_native_libnio_ch_Net.c | 13 +
lang/openjdk17/patches/patch-src_java.desktop_unix_native_common_awt_fontpath.c | 51 +
lang/openjdk17/patches/patch-src_jdk.jdwp.agent_share_native_libdt__socket_socketTransport.c | 13 +
lang/openjdk17/patches/patch-src_jdk.management_bsd_native_libmanagement__ext_UnixOperatingSystem.c | 14 +
lang/openjdk17/patches/patch-test_micro_org_openjdk_bench_java_nio_genBuffers.sh | 22 +
28 files changed, 1568 insertions(+), 0 deletions(-)
diffs (truncated from 1680 to 300 lines):
diff -r 5c0608520f4f -r 246b3eba2f50 lang/openjdk17/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk17/DESCR Fri May 13 14:24:19 2022 +0000
@@ -0,0 +1,9 @@
+Open-source implementation of the Java Platform, Standard Edition.
+This package privides OpenJDK 17 LTS.
+
+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 5c0608520f4f -r 246b3eba2f50 lang/openjdk17/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk17/Makefile Fri May 13 14:24:19 2022 +0000
@@ -0,0 +1,211 @@
+# $NetBSD: Makefile,v 1.1 2022/05/13 14:24:19 ryoon Exp $
+
+DISTNAME= jdk17u-${GITHUB_TAG:C/\+/-/}
+PKGNAME= openjdk17-1.${GITHUB_TAG:C/\+/./:C/jdk-([.0-9]+).*/\1/}
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_GITHUB:=battleblow/}
+GITHUB_PROJECT= jdk17u
+GITHUB_TAG= jdk-17.0.3+7-1
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://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= openjdk17
+JAVA_HOME= ${PREFIX}/java/${JAVA_NAME}
+JAVA_WRAPPERS= jar jarsigner java javac javadoc javap jcmd jconsole jdb \
+ jdeprscan jdeps jfr jimage jinfo jlink jmap jmod jps \
+ jrunscript jshell jstack jstat jstatd keytool \
+ rmiregistry serialver
+
+BUILD_DEPENDS+= mozilla-rootcerts>=1.0.20140820nb2:../../security/mozilla-rootcerts
+
+# For alloca()
+BUILDLINK_TRANSFORM+= opt:-std=c99:-std=gnu99
+BUILDLINK_TRANSFORM+= opt:-std=c++14:-std=gnu++14
+BUILDLINK_TRANSFORM+= opt:-std=c++11:-std=gnu++11
+# For NetBSD
+BUILDLINK_TRANSFORM.NetBSD+= rm:-ldl
+
+.include "../../mk/bsd.prefs.mk"
+
+# -Wl,--hash-style=gnu is not supported by NetBSD 9.
+.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 099900
+BUILDLINK_TRANSFORM+= opt:-Wl,--hash-style=gnu:-Wl,--hash-style=sysv
+.endif
+
+GNU_CONFIGURE= yes
+GNU_CONFIGURE_STRICT= no # generates the configure script during the build
+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 virtualsize cputime
+
+BUILDLINK_PASSTHRU_DIRS+= ${ALT_BOOTDIR}
+
+# Try to use less POSIX semaphores (large MAKE_JOBS can consume them all)
+BOOT_JVMARGS= -XX:+UnlockDiagnosticVMOptions
+
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --openjdk-target=${MACHINE_GNU_PLATFORM}
+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.libcups}/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
+# Do not include ${PREFIX} (/usr/pkg) for internal libraries.
+#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=
+.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} > 099980
+ALL_ENV+= SED="sed -g"
+.endif
+
+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}-${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"
+
+.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
+
+.if ${OPSYS} == "NetBSD"
+# NetBSD's EVFILT_* EV_* are different from FreeBSD/OpenBSD's values.
+SUBST_CLASSES+= kqueue
+SUBST_STAGE.kqueue= pre-configure
+SUBST_MESSAGE.kqueue= fixing kqueue filter values
+SUBST_FILES.kqueue= src/java.base/bsd/classes/sun/nio/ch/KQueue.java
+SUBST_SED.kqueue= -e 's/static final int EVFILT_READ = -1;/static final int EVFILT_READ = 0;/'
+SUBST_SED.kqueue+= -e 's/static final int EVFILT_WRITE = -2;/static final int EVFILT_WRITE = 1;/'
+SUBST_SED.kqueue+= -e 's/static final int EV_ONESHOT = 0x0010;/static final int EV_ONESHOT = 0x0004;/'
+SUBST_SED.kqueue+= -e 's/static final int EV_CLEAR = 0x0020;/static final int EV_CLEAR = 0x0008;/'
+.endif
+
+PLIST_VARS+= internal_vm_compiler jvmci
+.if ${MACHINE_ARCH} == "x86_64"
+PLIST.internal_vm_compiler= yes
+PLIST.jvmci= yes
+.endif
+.if ${MACHINE_ARCH} == "aarch64"
+PLIST.jvmci= 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
+ ${_ULIMIT_CMD} 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 \
+ -storetype jks \
+ -storepass changeit; \
+ done
+ mv ${.TARGET}.tmp ${.TARGET}
+
+do-build:
+ rm -f ${WRKSRC}/make/data/fontconfig/*.orig
+ ${_ULIMIT_CMD} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} LD_LIBRARY_PATH=${ALT_BOOTDIR}/lib ${MAKE_PROGRAM}
+
+do-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${JAVA_HOME}
+ cd ${BUILDDIR}/images/jdk && pax -rwpp . \
+ ${DESTDIR}${JAVA_HOME}/.
+
+.if ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD"
+.include "../../audio/alsa-lib/buildlink3.mk"
+CONFIGURE_ARGS+= --with-alsa=${BUILDLINK_PREFIX.alsa-lib}
+.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.libcups?= build
+.include "../../print/libcups/buildlink3.mk"
+.include "../../mk/java-env.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 5c0608520f4f -r 246b3eba2f50 lang/openjdk17/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk17/PLIST Fri May 13 14:24:19 2022 +0000
@@ -0,0 +1,636 @@
+@comment $NetBSD: PLIST,v 1.1 2022/05/13 14:24:19 ryoon Exp $
+bin/openjdk17-jar
+bin/openjdk17-jarsigner
+bin/openjdk17-java
+bin/openjdk17-javac
+bin/openjdk17-javadoc
+bin/openjdk17-javap
+bin/openjdk17-jcmd
+bin/openjdk17-jconsole
+bin/openjdk17-jdb
+bin/openjdk17-jdeprscan
+bin/openjdk17-jdeps
+bin/openjdk17-jfr
+bin/openjdk17-jimage
+bin/openjdk17-jinfo
+bin/openjdk17-jlink
+bin/openjdk17-jmap
+bin/openjdk17-jmod
+bin/openjdk17-jps
+bin/openjdk17-jrunscript
+bin/openjdk17-jshell
+bin/openjdk17-jstack
+bin/openjdk17-jstat
+bin/openjdk17-jstatd
+bin/openjdk17-keytool
+bin/openjdk17-rmiregistry
+bin/openjdk17-serialver
+java/openjdk17/bin/jar
+java/openjdk17/bin/jar.diz
+java/openjdk17/bin/jarsigner
+java/openjdk17/bin/jarsigner.diz
+java/openjdk17/bin/java
+java/openjdk17/bin/java.diz
+java/openjdk17/bin/javac
+java/openjdk17/bin/javac.diz
+java/openjdk17/bin/javadoc
+java/openjdk17/bin/javadoc.diz
+java/openjdk17/bin/javap
+java/openjdk17/bin/javap.diz
+java/openjdk17/bin/jcmd
+java/openjdk17/bin/jcmd.diz
+java/openjdk17/bin/jconsole
+java/openjdk17/bin/jconsole.diz
+java/openjdk17/bin/jdb
+java/openjdk17/bin/jdb.diz
+java/openjdk17/bin/jdeprscan
+java/openjdk17/bin/jdeprscan.diz
+java/openjdk17/bin/jdeps
+java/openjdk17/bin/jdeps.diz
+java/openjdk17/bin/jfr
+java/openjdk17/bin/jfr.diz
+java/openjdk17/bin/jimage
+java/openjdk17/bin/jimage.diz
+java/openjdk17/bin/jinfo
+java/openjdk17/bin/jinfo.diz
+java/openjdk17/bin/jlink
+java/openjdk17/bin/jlink.diz
+java/openjdk17/bin/jmap
+java/openjdk17/bin/jmap.diz
+java/openjdk17/bin/jmod
+java/openjdk17/bin/jmod.diz
+java/openjdk17/bin/jps
+java/openjdk17/bin/jps.diz
+java/openjdk17/bin/jrunscript
+java/openjdk17/bin/jrunscript.diz
+java/openjdk17/bin/jshell
+java/openjdk17/bin/jshell.diz
+java/openjdk17/bin/jstack
Home |
Main Index |
Thread Index |
Old Index