[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/openjdk/openjdk.desc [COPY] Copyright (C) 2022 - 2025 The T2 SDE Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] Open-source implementation of the Java Platform, Standard Edition [T] Java 2 Platform Standard Edition (J2SE) software is the premier [T] platform for rapidly developing and deploying secure, portable [T] applications that run on server and desktop systems spanning [T] most operating systems. [U] https://openjdk.java.net/ [A] Oracle Corporation [M] Tomas Glozar [C] extra/emulator [F] CROSS NO-LTO LATOMIC.sparc # alpha and loongarch64 "only" ICEs, ia64 needs more stack glue code [R] - alpha ia64 loongarch64 riscv [L] GPL [S] Stable [V] 21.0.8+3 [P] X -----5---9 150.000 [CV-URL] https://github.com/openjdk/jdk21u/tags [D] 07727511b52134c7e5bf37fabf749bf0f0d51dedb4d2eb4f146d2f2e jdk-21.0.8+3.tar.gz https://github.com/openjdk/jdk21u/archive/ . $base/package/*/*/java-common-conf.in makeinstopt= cleanconfopt=0 hook_add preconf 2 "chmod +x configure" case $arch_machine in armv*eb) var_append confopt ' ' --with-jvm-variants=zero ;; arm*|aarch*|powerpc64*|riscv64|s390x|i?86|x86_64) # TODO: SDECFG desktop? var_append confopt ' ' --with-jvm-variants=server ;; *) var_append confopt ' ' --with-jvm-variants=zero ;; esac case $arch_machine in ia64|riscv*|sparc64) CC_WRAPPER_INSERT="${CC_WRAPPER_INSERT/-O1/-Os}" #CXX_WRAPPER_INSERT="${CXX_WRAPPER_INSERT/-O1/-O2}" ;; esac if atstage cross; then var_remove_regex confopt " " "--build=.*" var_remove_regex confopt " " "--host=.*" var_append confopt ' ' --build=\$arch_build var_append confopt ' ' --openjdk-target=$arch_target # they have their own build and target vars unset AS LD unset HOST_CC HOSTCC HOST_CXX HOSTCXX unset BUILD_CC BUILDCC CC_FOR_BUILD makeopt= var_append GCC_WRAPPER_INSERT ' ' "-c?:-L$root`pkgprefix libdir libxcb`" else var_remove_regex confopt " " "--build=.*" var_remove_regex confopt " " "--host=.*" fi # Additional configure options var_append confopt ' ' --enable-unlimited-crypto var_append confopt ' ' --disable-warnings-as-errors var_append confopt ' ' --with-stdc++lib=dynamic for lib in giflib lcms libjpeg libpng zlib; do var_append confopt ' ' --with-$lib=system done var_append confopt ' ' "--with-x=$root/$(pkgprefix libx11)" var_append confopt ' ' "--with-version-pre= --with-version-opt=" var_append confopt ' ' "--with-version-build=${ver##*+}" var_append confopt ' ' "--with-fontconfig=$root/$(pkgprefix fontconfig)" #var_append confopt ' ' --with-toolchain-type=$SDECFG_DEFAULT_CC if [ "$SDECFG_DEFAULT_CC" != gcc ]; then var_append GCC_WRAPPER_REMOVE ' ' -fno-var-tracking-assignments fi # Do confopt cleaning manually, since automatic cleaning is broken var_remove confopt ' ' --with-pam var_remove confopt ' ' --with-libpam var_remove confopt ' ' --enable-pam var_remove confopt ' ' --enable-libpam # Replace -jN with JOBS=N and add images target var_remove makeopt ' ' -j$SDECFG_PARALLEL var_append makeopt ' ' "JOBS=$SDECFG_PARALLEL images" # Don't break the build with slightly different bootstrap jdk var_append makeopt ' ' JAVA_WARNINGS_ARE_ERRORS= hook_add postmake 2 "cp -Rfv build/*/images/jdk/* $root/$prefix/"