<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/23369e474fe1839c75ec9600d525f00353e17fb3">https://github.com/macports/macports-ports/commit/23369e474fe1839c75ec9600d525f00353e17fb3</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 23369e474fe1839c75ec9600d525f00353e17fb3
</span>Author: usersxx <97012123+usersxx@users.noreply.github.com>
AuthorDate: Fri May 6 14:46:46 2022 +0530
<span style='display:block; white-space:pre;color:#404040;'> openjdk8: update to 8.332.09.1
</span>---
java/openjdk8/Portfile | 92 +++++++++++++++++++++++++++++++++++---------------
1 file changed, 64 insertions(+), 28 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/java/openjdk8/Portfile b/java/openjdk8/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 467a6b6048e..d964b6279d8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/java/openjdk8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/java/openjdk8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,23 +6,34 @@ name openjdk8
</span> # use format based on macports:
# https://guide.macports.org/chunked/reference.portgroup.html#reference.portgroup.java
# https://github.com/openjdk/jdk8u/tags
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set u 322
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-version 1.8.0_${u}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Tags: https://github.com/openjdk/jdk8u/tags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# remove 'jdk' from the latest tag without '-ga' that has commit that corresponds to the latest tag with '-ga'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set major 8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set update 332
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set build 09
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set macpatch 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version ${major}.${update}.${build}.${macpatch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span> revision 2
categories java devel
platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-supported_archs x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs ppc x86_64
</span> license GPL-2+
maintainers {outlook.com:usersword123 @usersxx} openmaintainer
description Openjdk 8
long_description JDK 8 and JRE 8 builds of Openjdk, the Open-Source implementation \
of the Java Platform, Standard Edition, and related projects.
homepage https://openjdk.java.net/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-fetch.type git
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-git.url https://github.com/openjdk/jdk8u
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-git.branch jdk8u${u}-ga
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites https://git.openjdk.java.net/jdk8u/archive/refs/tags/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname jdk${major}u${update}-b${build}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 b2cde9b65a250c998587851d074d4d82c867e6a2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 063022673fe08b700bc5290abab72911ee544d784b4a9d16739139693b8c45a2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 88134914
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> patchfiles patch-openjdk8-xcode1.diff \
patch-openjdk8-xcode2.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_lib port:freetype
depends_build port:autoconf \
port:gmake \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,65 +45,90 @@ use_xcode yes
</span> use_configure yes
configure.cmd ${prefix}/bin/bash ./configure
configure.pre_args --prefix=${tpath}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set extrachflags "-isysroot `xcrun --sdk macosx --show-sdk-path` -arch ${configure.build_arch}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set extracxxflags "-isysroot `xcrun --sdk macosx --show-sdk-path` -arch ${configure.build_arch}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set extraldflags "-Wl,-syslibroot,`xcrun --sdk macosx --show-sdk-path` -arch ${configure.build_arch}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set jchflags "-Wno-implicit-function-declaration -Wno-unused-parameter"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set jcxxflags "-Wno-implicit-function-declaration -Wno-unused-parameter"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set jldflags "-L`xcrun --sdk macosx --show-sdk-path`/usr/lib -L`xcrun --sdk macosx --show-sdk-path`/usr/lib/system"
</span> set bug_url "https://trac.macports.org/newticket?port=${name}"
# default configure args
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --with-boot-jdk=/Library/Java/JavaVirtualMachines/openjdk8-bootstrap/Contents/Home \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args --with-boot-jdk \
</span> --with-debug-level=release \
--with-freetype-include=${prefix}/include/freetype2 \
--with-freetype-lib=${prefix}/lib \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-jvm-variants=server \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-extra-cflags="${configure.cflags} ${extrachflags} ${jchflags}" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-extra-cxxflags="${configure.cxxflags} ${extracxxflags} ${jcxxflags}" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-extra-ldflags="${configure.ldflags} ${extraldflags} ${jldflags}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-extra-cflags="${configure.cflags}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-extra-cxxflags="${configure.cxxflags}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-extra-ldflags="${configure.ldflags}" \
</span> --with-milestone=fcs \
--with-vendor-name="OpenJDK Porters Group" \
--with-vendor-url="${homepage}" \
--with-vendor-bug-url="${bug_url}" \
--with-vendor-vm-bug-url="${bug_url}" \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-update-version=${u} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-conf-name=release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-update-version=${update} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-conf-name=openjdk8 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-native-debug-symbols=none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${configure.build_arch} eq "ppc"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:openjdk7-bootstrap
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace --with-boot-jdk --with-boot-jdk=/Library/Java/JavaVirtualMachines/openjdk7-bootstrap
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.post_args --disable-headful
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|WARNINGS_ARE_ERRORS = -Werror|WARNING_FLAGS =|g" hotspot/make/bsd/makefiles/gcc.make
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wformat=2|WARNING_FLAGS = |g" hotspot/make/bsd/makefiles/gcc.make
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@ZERO_ARCHDEF@|PPC|g" hotspot/make/bsd/platform_zero.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@ZERO_LIBARCH@|ppc|g" hotspot/make/bsd/platform_zero.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|#include "vm_version_ext_x86.hpp"| |g" hotspot/src/os/bsd/vm/os_perf_bsd.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|_cpu_info->set_number_of_hardware_threads(VM_Version_Ext::number_of_threads());| |g" hotspot/src/os/bsd/vm/os_perf_bsd.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|_cpu_info->set_number_of_cores(VM_Version_Ext::number_of_cores());| |g" hotspot/src/os/bsd/vm/os_perf_bsd.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|_cpu_info->set_number_of_sockets(VM_Version_Ext::number_of_sockets());| |g" hotspot/src/os/bsd/vm/os_perf_bsd.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|_cpu_info->set_cpu_name(VM_Version_Ext::cpu_name());| |g" hotspot/src/os/bsd/vm/os_perf_bsd.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|_cpu_info->set_cpu_description(VM_Version_Ext::cpu_description());| |g" hotspot/src/os/bsd/vm/os_perf_bsd.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|dtraceCheck| |g" hotspot/make/bsd/makefiles/vm.make
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|MFLAGS += " LP64=1 "|MFLAGS += " LP64=0 "|g" hotspot/make/bsd/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {${configure.build_arch} eq "x86_64"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:openjdk8-bootstrap
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace --with-boot-jdk --with-boot-jdk=/Library/Java/JavaVirtualMachines/openjdk8-bootstrap/Contents/Home
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
variant server \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- conflicts core \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- description {JVM with normal interpreter and a tiered C1/C2 compiler} {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts core zero zeroshark \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description {JVM with normal interpreter and a tiered C1/C2 compiler} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-jvm-variants=server
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
variant release \
conflicts debug \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- description {OpenJDK with no debug information, all optimizations and no asserts} {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description {OpenJDK with no debug information, all optimizations and no asserts} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-debug-level=release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
variant debug \
conflicts release \
description {OpenJDK with debug information, all optimizations and all asserts} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace --with-debug-level=release --with-debug-level=fastdebug
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-debug-level=fastdebug
</span> configure.args-delete --with-native-debug-symbols=none
}
variant core \
conflicts server \
description {JVM with interpreter only and no compiler} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace --with-jvm-variants=server --with-jvm-variants=core
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-jvm-variants=core
</span> }
if {![variant_isset debug] && ![variant_isset release]} {
default_variants-append +release
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {![variant_isset core] && ![variant_isset server]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants-append +server
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![variant_isset core] && ![variant_isset zeroshark]} && ![variant_isset zero]} && ![variant_isset server]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} < 14} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants-append +zero
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants-append +server
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
build.type gnu
build.target images
use_parallel_build no
worksrcdir openjdk8
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set jdkn jdk${version}.jdk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set jren jre${version}.jre
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set jdkn jdk1.${major}.0_${update}.jdk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set jren jre1.${major}.0_${update}.jre
</span> set jdk_bundle_dir build/release/images/j2sdk-bundle/${jdkn}/Contents
set jre_bundle_dir build/release/images/j2re-bundle/${jren}/Contents
set jdk_path ${tpath}/JavaVirtualMachines/${name}
</pre><pre style='margin:0'>
</pre>