d67260
# RPM conditionals so as to be able to dynamically produce
d67260
# slowdebug/release builds. See:
d67260
# http://rpm.org/user_doc/conditional_builds.html
d67260
#
d67260
# Examples:
d67260
#
d67260
# Produce release, fastdebug *and* slowdebug builds on x86_64 (default):
d67260
# $ rpmbuild -ba java-1.8.0-openjdk.spec
d67260
#
d67260
# Produce only release builds (no debug builds) on x86_64:
d67260
# $ rpmbuild -ba java-1.8.0-openjdk.spec --without slowdebug --without fastdebug
d67260
#
d67260
# Only produce a release build on x86_64:
d67260
# $ rhpkg mockbuild --without slowdebug --without fastdebug
d67260
#
d67260
# Enable fastdebug builds by default on relevant arches.
d67260
%bcond_without fastdebug
d67260
# Enable slowdebug builds by default on relevant arches.
d67260
%bcond_without slowdebug
d67260
# Enable release builds by default on relevant arches.
d67260
%bcond_without release
d67260
# Remove build artifacts by default
d67260
%bcond_with artifacts
d67260
# Build a fresh libjvm.so for use in a copy of the bootstrap JDK
d67260
%bcond_without fresh_libjvm
d67260
# Build with system libraries
d67260
%bcond_with system_libs
d67260
d67260
# Define whether to use the bootstrap JDK directly or with a fresh libjvm.so
d67260
%if %{with fresh_libjvm}
d67260
%global build_hotspot_first 1
d67260
%else
d67260
%global build_hotspot_first 0
d67260
%endif
d67260
d67260
%if %{with system_libs}
d67260
%global system_libs 1
d67260
%global link_type system
d67260
%global jpeg_lib |libjavajpeg[.]so.*
d67260
%else
d67260
%global system_libs 0
d67260
%global link_type bundled
d67260
%global jpeg_lib |libjpeg[.]so.*
d67260
%endif
d67260
d67260
# Turn off the debug package as we just produce a bunch of tarballs
d67260
%define debug_package %{nil}
d67260
d67260
# note: parametrized macros are order-sensitive (unlike not-parametrized) even with normal macros
d67260
# also necessary when passing it as parameter to other macros. If not macro, then it is considered a switch
d67260
# see the difference between global and define:
d67260
# See https://github.com/rpm-software-management/rpm/issues/127 to comments at  "pmatilai commented on Aug 18, 2017"
d67260
# (initiated in https://bugzilla.redhat.com/show_bug.cgi?id=1482192)
d67260
%global debug_suffix_unquoted -slowdebug
d67260
%global fastdebug_suffix_unquoted -fastdebug
d67260
# quoted one for shell operations
d67260
%global debug_suffix "%{debug_suffix_unquoted}"
d67260
%global fastdebug_suffix "%{fastdebug_suffix_unquoted}"
d67260
%global normal_suffix ""
d67260
d67260
%global debug_warning This package is unoptimised with full debugging. Install only as needed and remove ASAP.
d67260
%global fastdebug_warning This package is optimised with full debugging. Install only as needed and remove ASAP.
d67260
%global debug_on unoptimised with full debugging on
d67260
%global fastdebug_on optimised with full debugging on
d67260
%global for_fastdebug for packages with debugging on and optimisation
d67260
%global for_debug for packages with debugging on and no optimisation
d67260
d67260
%if %{with release}
d67260
%global include_normal_build 1
d67260
%else
d67260
%global include_normal_build 0
d67260
%endif
d67260
d67260
%if %{include_normal_build}
d67260
%global normal_build %{normal_suffix}
d67260
%else
d67260
%global normal_build %{nil}
d67260
%endif
d67260
d67260
%global aarch64         aarch64 arm64 armv8
d67260
# we need to distinguish between big and little endian PPC64
d67260
%global ppc64le         ppc64le
d67260
%global ppc64be         ppc64 ppc64p7
d67260
# Set of architectures which support multiple ABIs
d67260
%global multilib_arches %{power64} sparc64 x86_64
d67260
# Set of architectures for which we build slowdebug builds
d67260
%global debug_arches    %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64}
d67260
# Set of architectures for which we build fastdebug builds
d67260
%global fastdebug_arches x86_64 ppc64le aarch64
d67260
# Set of architectures with a Just-In-Time (JIT) compiler
d67260
%global jit_arches      %{aarch64} %{ix86} %{power64} sparcv9 sparc64 x86_64
d67260
# Set of architectures which use the Zero assembler port (!jit_arches)
d67260
%global zero_arches %{arm} ppc s390 s390x
d67260
# Set of architectures which run a full bootstrap cycle
d67260
%global bootstrap_arches %{jit_arches} %{zero_arches}
d67260
# Set of architectures which support SystemTap tapsets
d67260
%global systemtap_arches %{jit_arches}
d67260
# Set of architectures which support the serviceability agent
d67260
%global sa_arches       %{ix86} x86_64 sparcv9 sparc64 %{aarch64}
d67260
# Set of architectures which support class data sharing
d67260
# See https://bugzilla.redhat.com/show_bug.cgi?id=513605
d67260
# MetaspaceShared::generate_vtable_methods is not implemented for the PPC JIT
d67260
%global share_arches    %{ix86} x86_64 sparcv9 sparc64 %{aarch64}
d67260
# Set of architectures which support Java Flight Recorder (JFR)
d67260
%global jfr_arches      %{jit_arches}
d67260
# Set of architectures for which alt-java has SSB mitigation
d67260
%global ssbd_arches x86_64
d67260
# Set of architectures where we verify backtraces with gdb
d67260
%global gdb_arches %{jit_arches} %{zero_arches}
d67260
d67260
# By default, we build a debug build during main build on JIT architectures
d67260
%if %{with slowdebug}
d67260
%ifarch %{debug_arches}
d67260
%global include_debug_build 1
d67260
%else
d67260
%global include_debug_build 0
d67260
%endif
d67260
%else
d67260
%global include_debug_build 0
d67260
%endif
d67260
d67260
# By default, we build a fastdebug build during main build only on fastdebug architectures
d67260
%if %{with fastdebug}
d67260
%ifarch %{fastdebug_arches}
d67260
%global include_fastdebug_build 1
d67260
%else
d67260
%global include_fastdebug_build 0
d67260
%endif
d67260
%else
d67260
%global include_fastdebug_build 0
d67260
%endif
d67260
d67260
%if %{include_debug_build}
d67260
%global slowdebug_build %{debug_suffix}
d67260
%else
d67260
%global slowdebug_build %{nil}
d67260
%endif
d67260
d67260
%if %{include_fastdebug_build}
d67260
%global fastdebug_build %{fastdebug_suffix}
d67260
%else
d67260
%global fastdebug_build %{nil}
d67260
%endif
d67260
d67260
# If you disable all builds, then the build fails
d67260
# Build and test slowdebug first as it provides the best diagnostics
d67260
%global build_loop  %{slowdebug_build} %{fastdebug_build} %{normal_build}
d67260
d67260
%if 0%{?flatpak}
d67260
%global bootstrap_build false
d67260
%else
d67260
%ifarch %{bootstrap_arches}
d67260
%global bootstrap_build true
d67260
%else
d67260
%global bootstrap_build false
d67260
%endif
d67260
%endif
d67260
d67260
%global bootstrap_targets images
d67260
%global release_targets images docs-zip
d67260
# No docs nor bootcycle for debug builds
d67260
%global debug_targets images
d67260
# Target to use to just build HotSpot
d67260
%global hotspot_target hotspot
d67260
d67260
# JDK to use for bootstrapping
d67260
# Use OpenJDK 7 where available (on RHEL) to avoid
d67260
# having to use the rhel-7.x-java-unsafe-candidate hack
d67260
%if ! 0%{?fedora} && 0%{?rhel} <= 7
d67260
%global buildjdkver 1.7.0
d67260
%else
d67260
%global buildjdkver 1.8.0
d67260
%endif
d67260
%global bootjdk /usr/lib/jvm/java-%{buildjdkver}-openjdk
d67260
d67260
# Filter out flags from the optflags macro that cause problems with the OpenJDK build
d67260
# We filter out -O flags so that the optimization of HotSpot is not lowered from O3 to O2
d67260
# We filter out -Wall which will otherwise cause HotSpot to produce hundreds of thousands of warnings (100+mb logs)
d67260
# We replace it with -Wformat (required by -Werror=format-security) and -Wno-cpp to avoid FORTIFY_SOURCE warnings
d67260
# We filter out -fexceptions as the HotSpot build explicitly does -fno-exceptions and it's otherwise the default for C++
d67260
%global ourflags %(echo %optflags | sed -e 's|-Wall|-Wformat -Wno-cpp|' | sed -r -e 's|-O[0-9]*||')
d67260
%global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||')
d67260
%global ourldflags %{__global_ldflags}
d67260
d67260
# With disabled nss is NSS deactivated, so NSS_LIBDIR can contain the wrong path
d67260
# the initialization must be here. Later the pkg-config have buggy behavior
d67260
# looks like openjdk RPM specific bug
d67260
# Always set this so the nss.cfg file is not broken
d67260
%global NSS_LIBDIR %(pkg-config --variable=libdir nss)
d67260
%global NSS_LIBS %(pkg-config --libs nss)
d67260
%global NSS_CFLAGS %(pkg-config --cflags nss-softokn)
d67260
# see https://bugzilla.redhat.com/show_bug.cgi?id=1332456
d67260
%global NSSSOFTOKN_BUILDTIME_NUMBER %(pkg-config --modversion nss-softokn || : )
d67260
%global NSS_BUILDTIME_NUMBER %(pkg-config --modversion nss || : )
d67260
# this is workaround for processing of requires during srpm creation
d67260
%global NSSSOFTOKN_BUILDTIME_VERSION %(if [ "x%{NSSSOFTOKN_BUILDTIME_NUMBER}" == "x" ] ; then echo "" ;else echo ">= %{NSSSOFTOKN_BUILDTIME_NUMBER}" ;fi)
d67260
%global NSS_BUILDTIME_VERSION %(if [ "x%{NSS_BUILDTIME_NUMBER}" == "x" ] ; then echo "" ;else echo ">= %{NSS_BUILDTIME_NUMBER}" ;fi)
d67260
d67260
# In some cases, the arch used by the JDK does
d67260
# not match _arch.
d67260
# Also, in some cases, the machine name used by SystemTap
d67260
# does not match that given by _target_cpu
d67260
%ifarch x86_64
d67260
%global archinstall amd64
d67260
%global stapinstall x86_64
d67260
%endif
d67260
%ifarch ppc
d67260
%global archinstall ppc
d67260
%global stapinstall powerpc
d67260
%endif
d67260
%ifarch %{ppc64be}
d67260
%global archinstall ppc64
d67260
%global stapinstall powerpc
d67260
%endif
d67260
%ifarch %{ppc64le}
d67260
%global archinstall ppc64le
d67260
%global stapinstall powerpc
d67260
%endif
d67260
%ifarch %{ix86}
d67260
%global archinstall i386
d67260
%global stapinstall i386
d67260
%endif
d67260
%ifarch ia64
d67260
%global archinstall ia64
d67260
%global stapinstall ia64
d67260
%endif
d67260
%ifarch s390
d67260
%global archinstall s390
d67260
%global stapinstall s390
d67260
%endif
d67260
%ifarch s390x
d67260
%global archinstall s390x
d67260
%global stapinstall s390
d67260
%endif
d67260
%ifarch %{arm}
d67260
%global archinstall arm
d67260
%global stapinstall arm
d67260
%endif
d67260
%ifarch %{aarch64}
d67260
%global archinstall aarch64
d67260
%global stapinstall arm64
d67260
%endif
d67260
# 32 bit sparc, optimized for v9
d67260
%ifarch sparcv9
d67260
%global archinstall sparc
d67260
%global stapinstall %{_target_cpu}
d67260
%endif
d67260
# 64 bit sparc
d67260
%ifarch sparc64
d67260
%global archinstall sparcv9
d67260
%global stapinstall %{_target_cpu}
d67260
%endif
d67260
# Need to support noarch for srpm build
d67260
%ifarch noarch
d67260
%global archinstall %{nil}
d67260
%global stapinstall %{nil}
d67260
%endif
d67260
d67260
# Always off in portables
d67260
%ifarch %{systemtap_arches}
d67260
%global with_systemtap 0
d67260
%else
d67260
%global with_systemtap 0
d67260
%endif
d67260
d67260
# New Version-String scheme-style defines
d67260
%global majorver 8
d67260
d67260
# Standard JPackage naming and versioning defines
d67260
%global origin          openjdk
d67260
%global origin_nice     OpenJDK
d67260
%global top_level_dir_name   %{origin}
d67260
d67260
# Settings for local security configuration
d67260
%global security_file %{top_level_dir_name}/jdk/src/share/lib/security/java.security-%{_target_os}
d67260
%global cacerts_file /etc/pki/java/cacerts
d67260
d67260
# Define vendor information used by OpenJDK
d67260
%global oj_vendor Red Hat, Inc.
d67260
%global oj_vendor_url "https://www.redhat.com/"
d67260
# Define what url should JVM offer in case of a crash report
d67260
# order may be important, epel may have rhel declared
d67260
%if 0%{?epel}
d67260
%global oj_vendor_bug_url  https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora%20EPEL&component=%{component}&version=epel%{epel}
d67260
%else
d67260
%if 0%{?fedora}
d67260
# Does not work for rawhide, keeps the version field empty
d67260
%global oj_vendor_bug_url  https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=%{component}&version=%{fedora}
d67260
%else
d67260
%if 0%{?rhel}
d67260
%global oj_vendor_bug_url  https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%20%{rhel}&component=%{component}
d67260
%else
d67260
%global oj_vendor_bug_url  https://bugzilla.redhat.com/enter_bug.cgi
d67260
%endif
d67260
%endif
d67260
%endif
d67260
d67260
# note, following three variables are sedded from update_sources if used correctly. Hardcode them rather there.
d67260
%global shenandoah_project      openjdk
d67260
%global shenandoah_repo         shenandoah-jdk8u
d67260
%global openjdk_revision        jdk8u372-b07
d67260
%global shenandoah_revision     shenandoah-%{openjdk_revision}
d67260
# Define old aarch64/jdk8u tree variables for compatibility
d67260
%global project         %{shenandoah_project}
d67260
%global repo            %{shenandoah_repo}
d67260
%global revision        %{shenandoah_revision}
d67260
# Define IcedTea version used for SystemTap tapsets and desktop file
d67260
%global icedteaver      3.15.0
d67260
# Define current Git revision for the FIPS support patches
d67260
%global fipsver 6d1aade0648
d67260
# Define current Git revision for the cacerts patch
d67260
%global cacertsver 8139f2361c2
d67260
d67260
# e.g. aarch64-shenandoah-jdk8u212-b04-shenandoah-merge-2019-04-30 -> aarch64-shenandoah-jdk8u212-b04
d67260
%global version_tag     %(VERSION=%{revision}; echo ${VERSION%%-shenandoah-merge*})
d67260
# eg # jdk8u60-b27 -> jdk8u60 or # aarch64-jdk8u60-b27 -> aarch64-jdk8u60  (dont forget spec escape % by %%)
d67260
%global whole_update    %(VERSION=%{version_tag}; echo ${VERSION%%-*})
d67260
# eg  jdk8u60 -> 60 or aarch64-jdk8u60 -> 60
d67260
%global updatever       %(VERSION=%{whole_update}; echo ${VERSION##*u})
d67260
# eg jdk8u60-b27 -> b27
d67260
%global buildver        %(VERSION=%{version_tag}; echo ${VERSION##*-})
d67260
%global rpmrelease      2
d67260
# Define milestone (EA for pre-releases, GA ("fcs") for releases)
d67260
# Release will be (where N is usually a number starting at 1):
d67260
# - 0.N%%{?extraver}%%{?dist} for EA releases,
d67260
# - N%%{?extraver}{?dist} for GA releases
d67260
%global is_ga           1
d67260
%if %{is_ga}
d67260
%global milestone          fcs
d67260
%global milestone_version  %{nil}
d67260
%global extraver %{nil}
d67260
%global eaprefix %{nil}
d67260
%else
d67260
%global milestone          ea
d67260
%global milestone_version  "-ea"
d67260
%global extraver .%{milestone}
d67260
%global eaprefix 0.
d67260
%endif
d67260
# priority must be 7 digits in total. The expression is workarounding tip
d67260
%global priority        %(TIP=1800%{updatever};  echo ${TIP/tip/999})
d67260
d67260
%global javaver         1.%{majorver}.0
d67260
d67260
# parametrized macros are order-sensitive
d67260
%global compatiblename  %{name}
d67260
%global fullversion     %{compatiblename}-%{version}-%{release}
d67260
# images stub
d67260
%global jdkimage       j2sdk-image
d67260
%global jreimage       j2re-image
d67260
# output dir stub
d67260
%define buildoutputdir() %{expand:build/jdk8.build%{?1}}
d67260
%define installoutputdir() %{expand:install/jdk8.install%{?1}}
d67260
%define packageoutputdir() %{expand:packages/jdk8.packages%{?1}}
d67260
# we can copy the javadoc to not arched dir, or make it not noarch
d67260
%define uniquejavadocdir()    %{expand:%{fullversion}%{?1}}
d67260
# main id and dir of this jdk
d67260
%define uniquesuffix()        %{expand:%{fullversion}.%{_arch}%{?1}}
d67260
%define jreportablenameimpl() %(echo %{uniquesuffix ""} | sed "s;el%{rhel}\\(_[0-9]\\)*;portable%{1}.jre;g")
d67260
%define jdkportablenameimpl() %(echo %{uniquesuffix ""} | sed "s;el%{rhel}\\(_[0-9]\\)*;portable%{1}.jdk;g")
d67260
%define jreportablearchive()  %{expand:%{jreportablenameimpl -- %%{1}}.tar.xz}
d67260
%define jdkportablearchive()  %{expand:%{jdkportablenameimpl -- %%{1}}.tar.xz}
d67260
%define jreportablename()     %{expand:%{jreportablenameimpl -- %%{1}}}
d67260
%define jdkportablename()     %{expand:%{jdkportablenameimpl -- %%{1}}}
d67260
%define docportablename() %(echo %{uniquesuffix ""} | sed "s;el%{rhel}\\(_[0-9]\\)*;portable.docs;g")
d67260
%define docportablearchive()  %{docportablename}.tar.xz
d67260
%define miscportablename() %(echo %{uniquesuffix ""} | sed "s;el%{rhel}\\(_[0-9]\\)*;portable.misc;g")
d67260
%define miscportablearchive()  %{miscportablename}.tar.xz
d67260
d67260
# Fix for https://bugzilla.redhat.com/show_bug.cgi?id=1111349.
d67260
# See also https://bugzilla.redhat.com/show_bug.cgi?id=1590796
d67260
# as to why some libraries *cannot* be excluded. In particular,
d67260
# these are:
d67260
# libjsig.so, libjava.so, libjawt.so, libjvm.so and libverify.so
d67260
%global _privatelibs libatk-wrapper[.]so.*|libattach[.]so.*|libawt_headless[.]so.*|libawt[.]so.*|libawt_xawt[.]so.*|libdt_socket[.]so.*|libfontmanager[.]so.*|libhprof[.]so.*|libinstrument[.]so.*|libj2gss[.]so.*|libj2pcsc[.]so.*|libj2pkcs11[.]so.*|libjaas_unix[.]so.*|libjava_crw_demo[.]so.*%{jpeg_lib}|libjdwp[.]so.*|libjli[.]so.*|libjsdt[.]so.*|libjsoundalsa[.]so.*|libjsound[.]so.*|liblcms[.]so.*|libmanagement[.]so.*|libmlib_image[.]so.*|libnet[.]so.*|libnio[.]so.*|libnpt[.]so.*|libsaproc[.]so.*|libsctp[.]so.*|libsplashscreen[.]so.*|libsunec[.]so.*|libsystemconf[.]so.*|libunpack[.]so.*|libzip[.]so.*|lib[.]so\\(SUNWprivate_.*
d67260
%global __provides_exclude ^(%{_privatelibs})$
d67260
%global __requires_exclude ^(%{_privatelibs})$
d67260
d67260
# Standard JPackage directories and symbolic links.
d67260
%global sdkdir()        %{expand:%{uniquesuffix %%1}}
d67260
%global jrelnk()        %{expand:jre-%{javaver}-%{origin}-%{version}-%{release}.%{_arch}%1}
d67260
d67260
%global jredir()        %{expand:%{sdkdir %%1}/jre}
d67260
%global sdkbindir()     %{expand:%{_jvmdir}/%{sdkdir %%1}/bin}
d67260
%global jrebindir()     %{expand:%{_jvmdir}/%{jredir %%1}/bin}
d67260
%global alt_java_name     alt-java
d67260
%global jvmjardir()     %{expand:%{_jvmjardir}/%{uniquesuffix %%1}}
d67260
d67260
%global rpm_state_dir %{_localstatedir}/lib/rpm-state/
d67260
d67260
# For flatpack builds hard-code /usr/sbin/alternatives,
d67260
# otherwise use %%{_sbindir} relative path.
d67260
%if 0%{?flatpak}
d67260
%global alternatives_requires /usr/sbin/alternatives
d67260
%else
d67260
%global alternatives_requires %{_sbindir}/alternatives
d67260
%endif
d67260
d67260
%if %{with_systemtap}
d67260
# Where to install systemtap tapset (links)
d67260
# We would like these to be in a package specific sub-dir,
d67260
# but currently systemtap doesn't support that, so we have to
d67260
# use the root tapset dir for now. To distinguish between 64
d67260
# and 32 bit architectures we place the tapsets under the arch
d67260
# specific dir (note that systemtap will only pickup the tapset
d67260
# for the primary arch for now). Systemtap uses the machine name
d67260
# aka target_cpu as architecture specific directory name.
d67260
%global tapsetroot /usr/share/systemtap
d67260
%global tapsetdirttapset %{tapsetroot}/tapset/
d67260
%global tapsetdir %{tapsetdirttapset}/%{stapinstall}
d67260
%endif
d67260
d67260
# Prevent brp-java-repack-jars from being run.
d67260
%global __jar_repack 0
d67260
d67260
# portables have grown out of its component, moving back to java-x-vendor
d67260
# this expression, when declared as global, filled component with java-x-vendor portable
d67260
%define component %(echo %{name} | sed "s;-portable;;g")
d67260
d67260
Name:    java-%{javaver}-%{origin}-portable
d67260
Version: %{javaver}.%{updatever}.%{buildver}
d67260
Release: %{?eaprefix}%{rpmrelease}%{?extraver}%{?dist}
d67260
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons
d67260
# and this change was brought into RHEL-4. java-1.5.0-ibm packages
d67260
# also included the epoch in their virtual provides. This created a
d67260
# situation where in-the-wild java-1.5.0-ibm packages provided "java =
d67260
# 1:1.5.0". In RPM terms, "1.6.0 < 1:1.5.0" since 1.6.0 is
d67260
# interpreted as 0:1.6.0. So the "java >= 1.6.0" requirement would be
d67260
# satisfied by the 1:1.5.0 packages. Thus we need to set the epoch in
d67260
# JDK package >= 1.6.0 to 1, and packages referring to JDK virtual
d67260
# provides >= 1.6.0 must specify the epoch, "java >= 1:1.6.0".
d67260
d67260
Epoch:   1
d67260
Summary: %{origin_nice} %{majorver} Runtime Environment portable edition
d67260
Group:   Development/Languages
d67260
d67260
# HotSpot code is licensed under GPLv2
d67260
# JDK library code is licensed under GPLv2 with the Classpath exception
d67260
# The Apache license is used in code taken from Apache projects (primarily JAXP & JAXWS)
d67260
# DOM levels 2 & 3 and the XML digital signature schemas are licensed under the W3C Software License
d67260
# The JSR166 concurrency code is in the public domain
d67260
# The BSD and MIT licenses are used for a number of third-party libraries (see THIRD_PARTY_README)
d67260
# The OpenJDK source tree includes the JPEG library (IJG), zlib & libpng (zlib), giflib and LCMS (MIT)
d67260
# The test code includes copies of NSS under the Mozilla Public License v2.0
d67260
# The PCSClite headers are under a BSD with advertising license
d67260
# The elliptic curve cryptography (ECC) source code is licensed under the LGPLv2.1 or any later version
d67260
License:  ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and GPLv2 and GPLv2 with exceptions and IJG and LGPLv2+ and MIT and MPLv2.0 and Public Domain and W3C and zlib
d67260
URL:      http://openjdk.java.net/
d67260
d67260
# Shenandoah HotSpot
d67260
# aarch64-port/jdk8u-shenandoah contains an integration forest of
d67260
# OpenJDK 8u, the aarch64 port and Shenandoah
d67260
# To regenerate, use:
d67260
# VERSION=%%{shenandoah_revision}
d67260
# FILE_NAME_ROOT=%%{shenandoah_project}-%%{shenandoah_repo}-${VERSION}
d67260
# REPO_ROOT=<path to checked-out repository> generate_source_tarball.sh
d67260
# where the source is obtained from http://hg.openjdk.java.net/%%{project}/%%{repo}
d67260
Source0: %{shenandoah_project}-%{shenandoah_repo}-%{shenandoah_revision}-4curve.tar.xz
d67260
d67260
# Custom README for -src subpackage
d67260
Source2:  README.md
d67260
d67260
# Release notes
d67260
Source7: NEWS
d67260
d67260
# Use 'icedtea_sync.sh' to update the following
d67260
# They are based on code contained in the IcedTea project (3.x).
d67260
# Systemtap tapsets. Zipped up to keep it small.
d67260
# Disabled in portables
d67260
#Source8: tapsets-icedtea-%%{icedteaver}.tar.xz
d67260
d67260
# Desktop files. Adapted from IcedTea
d67260
# Disabled in portables
d67260
#Source9: jconsole.desktop.in
d67260
#Source10: policytool.desktop.in
d67260
d67260
# nss configuration file
d67260
Source11: nss.cfg.in
d67260
d67260
# Removed libraries that we link instead
d67260
Source12: remove-intree-libraries.sh
d67260
d67260
# Ensure we aren't using the limited crypto policy
d67260
Source13: TestCryptoLevel.java
d67260
d67260
# Ensure ECDSA is working
d67260
Source14: TestECDSA.java
d67260
d67260
# Verify system crypto (policy) can be disabled via a property
d67260
Source15: TestSecurityProperties.java
d67260
d67260
# Ensure vendor settings are correct
d67260
Source16: CheckVendor.java
d67260
d67260
# nss fips configuration file
d67260
Source17: nss.fips.cfg.in
d67260
d67260
# Ensure translations are available for new timezones
d67260
Source18: TestTranslations.java
d67260
d67260
# Disabled in portables
d67260
#Source20: repackReproduciblePolycies.sh
d67260
d67260
# New versions of config files with aarch64 support. This is not upstream yet.
d67260
Source100: config.guess
d67260
Source101: config.sub
d67260
d67260
############################################
d67260
#
d67260
# RPM/distribution specific patches
d67260
#
d67260
# This section includes patches specific to
d67260
# Fedora/RHEL which can not be upstreamed
d67260
# either in their current form or at all.
d67260
############################################
d67260
d67260
# Accessibility patches
d67260
# Ignore AWTError when assistive technologies are loaded
d67260
Patch1:   rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch
d67260
# Turn on AssumeMP by default on RHEL systems
d67260
Patch534: rh1648246-always_instruct_vm_to_assume_multiple_processors_are_available.patch
d67260
# RH1648249: Add PKCS11 provider to java.security
d67260
Patch1000: rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch
d67260
# RH1582504: Use RSA as default for keytool, as DSA is disabled in all crypto policies except LEGACY
d67260
Patch1003: rh1582504-rsa_default_for_keytool.patch
d67260
d67260
# Crypto policy and FIPS support patches
d67260
# Patch is generated from the fips tree at https://github.com/rh-openjdk/jdk8u/tree/fips
d67260
# as follows: git diff %%{openjdk_revision} common jdk > fips-8u-$(git show -s --format=%h HEAD).patch
d67260
# Diff is limited to src and make subdirectories to exclude .github changes
d67260
# Fixes currently included:
d67260
# PR3183, RH1340845: Support Fedora/RHEL8 system crypto policy
d67260
# PR3655: Allow use of system crypto policy to be disabled by the user
d67260
# RH1655466: Support RHEL FIPS mode using SunPKCS11 provider
d67260
# RH1760838: No ciphersuites available for SSLSocket in FIPS mode
d67260
# RH1860986: Disable TLSv1.3 with the NSS-FIPS provider until PKCS#11 v3.0 support is available
d67260
# RH1906862: Always initialise JavaSecuritySystemConfiguratorAccess
d67260
# RH1929465: Improve system FIPS detection
d67260
# RH1996182: Login to the NSS software token in FIPS mode
d67260
# RH1991003: Allow plain key import unless com.redhat.fips.plainKeySupport is set to false
d67260
# RH2021263: Resolve outstanding FIPS issues
d67260
# RH2052819: Fix FIPS reliance on crypto policies
d67260
# RH2052829: Detect NSS at Runtime for FIPS detection
d67260
# RH2036462: sun.security.pkcs11.wrapper.PKCS11.getInstance breakage
d67260
# RH2090378: Revert to disabling system security properties and FIPS mode support together
d67260
Patch1001: fips-8u-%{fipsver}.patch
d67260
d67260
#############################################
d67260
#
d67260
# Upstreamable patches
d67260
#
d67260
# This section includes patches which need to
d67260
# be reviewed & pushed to the current development
d67260
# tree of OpenJDK.
d67260
#############################################
d67260
# PR2737: Allow multiple initialization of PKCS11 libraries
d67260
Patch5: pr2737-allow_multiple_pkcs11_library_initialisation_to_be_a_non_critical_error.patch
d67260
# Turn off strict overflow on IndicRearrangementProcessor{,2}.cpp following 8140543: Arrange font actions
d67260
Patch512: rh1649664-awt2dlibraries_compiled_with_no_strict_overflow.patch
d67260
# RH1337583, PR2974: PKCS#10 certificate requests now use CRLF line endings rather than system line endings
d67260
Patch523: pr2974-rh1337583-add_systemlineendings_option_to_keytool_and_use_line_separator_instead_of_crlf_in_pkcs10.patch
d67260
# PR3083, RH1346460: Regression in SSL debug output without an ECC provider
d67260
Patch528: pr3083-rh1346460-for_ssl_debug_return_null_instead_of_exception_when_theres_no_ecc_provider.patch
d67260
# PR2888: OpenJDK should check for system cacerts database (e.g. /etc/pki/java/cacerts)
d67260
# PR3575, RH1567204: System cacerts database handling should not affect jssecacerts
d67260
# RH2055274: Revert default keystore to JAVA_HOME/jre/lib/security/cacerts in portable builds
d67260
# Must be applied after the FIPS patch as it also changes java.security
d67260
# Patch is generated from the cacerts tree at https://github.com/rh-openjdk/jdk8u/tree/cacerts
d67260
# as follows: git diff fips > pr2888-rh2055274-support_system_cacerts-$(git show -s --format=%h HEAD).patch
d67260
Patch539: pr2888-rh2055274-support_system_cacerts-%{cacertsver}.patch
d67260
Patch541: rh1684077-openjdk_should_depend_on_pcsc-lite-libs_instead_of_pcsc-lite-devel.patch
d67260
# RH1750419: Enable build of speculative store bypass hardened alt-java (CVE-2018-3639)
d67260
Patch600: rh1750419-redhat_alt_java.patch
d67260
# JDK-8281098, PR3836: Extra compiler flags not passed to adlc build
d67260
Patch112: jdk8281098-pr3836-pass_compiler_flags_to_adlc.patch
d67260
d67260
#############################################
d67260
#
d67260
# Arch-specific upstreamable patches
d67260
#
d67260
# This section includes patches which need to
d67260
# be reviewed & pushed upstream and are specific
d67260
# to certain architectures. This usually means the
d67260
# current OpenJDK development branch, but may also
d67260
# include other trees e.g. for the AArch64 port for
d67260
# OpenJDK 8u.
d67260
#############################################
d67260
# s390: PR3593: Use "%z" for size_t on s390 as size_t != intptr_t
d67260
Patch103: pr3593-s390_use_z_format_specifier_for_size_t_arguments_as_size_t_not_equals_to_int.patch
d67260
# x86: S8199936, PR3533: HotSpot generates code with unaligned stack, crashes on SSE operations (-mstackrealign workaround)
d67260
Patch105: jdk8199936-pr3533-enable_mstackrealign_on_x86_linux_as_well_as_x86_mac_os_x.patch
d67260
# S390 ambiguous log2_intptr calls
d67260
Patch107: s390-8214206_fix.patch
d67260
d67260
#############################################
d67260
#
d67260
# Patches which need backporting to 8u
d67260
#
d67260
# This section includes patches which have
d67260
# been pushed upstream to the latest OpenJDK
d67260
# development tree, but need to be backported
d67260
# to OpenJDK 8u.
d67260
#############################################
d67260
# S8074839, PR2462: Resolve disabled warnings for libunpack and the unpack200 binary
d67260
# This fixes printf warnings that lead to build failure with -Werror=format-security from optflags
d67260
Patch502: pr2462-resolve_disabled_warnings_for_libunpack_and_the_unpack200_binary.patch
d67260
# PR3591: Fix for bug 3533 doesn't add -mstackrealign to JDK code
d67260
Patch571: jdk8199936-pr3591-enable_mstackrealign_on_x86_linux_as_well_as_x86_mac_os_x_jdk.patch
d67260
# 8143245, PR3548: Zero build requires disabled warnings
d67260
Patch574: jdk8143245-pr3548-zero_build_requires_disabled_warnings.patch
d67260
# s390: JDK-8203030, Type fixing for s390
d67260
Patch102: jdk8203030-zero_s390_31_bit_size_t_type_conflicts_in_shared_code.patch
d67260
# 8035341: Allow using a system installed libpng
d67260
Patch202: jdk8035341-allow_using_system_installed_libpng.patch
d67260
# 8042159: Allow using a system-installed lcms2
d67260
Patch203: jdk8042159-allow_using_system_installed_lcms2-root.patch
d67260
Patch204: jdk8042159-allow_using_system_installed_lcms2-jdk.patch
d67260
# JDK-8257794: Zero: assert(istate->_stack_limit == istate->_thread->last_Java_sp() + 1) failed: wrong on Linux/x86_32
d67260
Patch581: jdk8257794-remove_broken_assert.patch
d67260
# JDK-8186464, RH1433262: ZipFile cannot read some InfoZip ZIP64 zip files
d67260
Patch12: jdk8186464-rh1433262-zip64_failure.patch
d67260
d67260
#############################################
d67260
#
d67260
# Patches appearing in 8u382
d67260
#
d67260
# This section includes patches which are present
d67260
# in the listed OpenJDK 8u release and should be
d67260
# able to be removed once that release is out
d67260
# and used by this RPM.
d67260
#############################################
d67260
# JDK-8271199, RH2175317: Mutual TLS handshake fails signing client certificate with custom sensitive PKCS11 key
d67260
Patch2001: jdk8271199-rh2175317-custom_pkcs11_provider_support.patch
d67260
d67260
#############################################
d67260
#
d67260
# Patches ineligible for 8u
d67260
#
d67260
# This section includes patches which are present
d67260
# upstream, but ineligible for upstream 8u backport.
d67260
#############################################
d67260
# 8043805: Allow using a system-installed libjpeg
d67260
Patch201: jdk8043805-allow_using_system_installed_libjpeg.patch
d67260
d67260
#############################################
d67260
#
d67260
# Shenandoah fixes
d67260
#
d67260
# This section includes patches which are
d67260
# specific to the Shenandoah garbage collector
d67260
# and should be upstreamed to the appropriate
d67260
# trees.
d67260
#############################################
d67260
d67260
#############################################
d67260
#
d67260
# Non-OpenJDK fixes
d67260
#
d67260
# This section includes patches to code other
d67260
# that from OpenJDK.
d67260
#############################################
d67260
d67260
#############################################
d67260
#
d67260
# Dependencies
d67260
#
d67260
#############################################
d67260
BuildRequires: autoconf
d67260
BuildRequires: automake
d67260
BuildRequires: alsa-lib-devel
d67260
BuildRequires: binutils
d67260
BuildRequires: cups-devel
d67260
BuildRequires: desktop-file-utils
d67260
# elfutils only are OK for build without AOT
d67260
BuildRequires: elfutils-devel
d67260
BuildRequires: file
d67260
BuildRequires: fontconfig-devel
d67260
BuildRequires: freetype-devel
d67260
BuildRequires: gcc-c++
d67260
BuildRequires: gdb
d67260
BuildRequires: libxslt
d67260
BuildRequires: libX11-devel
d67260
BuildRequires: libXext-devel
d67260
BuildRequires: libXi-devel
d67260
BuildRequires: libXinerama-devel
d67260
BuildRequires: libXrender-devel
d67260
BuildRequires: libXt-devel
d67260
BuildRequires: libXtst-devel
d67260
# Requirement for setting up nss.cfg and nss.fips.cfg
d67260
BuildRequires: nss-devel
d67260
# Commented out for portable RHEL7 doesn't have this
d67260
# Requirement for system security property test
d67260
#BuildRequires: crypto-policies
d67260
BuildRequires: pkgconfig
d67260
BuildRequires: xorg-x11-proto-devel
d67260
BuildRequires: zip
d67260
BuildRequires: tar
d67260
BuildRequires: unzip
d67260
# Require a boot JDK which doesn't fail due to RH1482244
d67260
BuildRequires: java-%{buildjdkver}-openjdk-devel >= 1.7.0.151-2.6.11.3
d67260
# Zero-assembler build requirement
d67260
%ifarch %{zero_arches}
d67260
BuildRequires: libffi-devel
d67260
%endif
d67260
# 2023c required as of JDK-8305113
d67260
BuildRequires: tzdata-java >= 2023c
d67260
# Earlier versions have a bug in tree vectorization on PPC
d67260
BuildRequires: gcc >= 4.8.3-8
d67260
d67260
# cacerts build requirement.
d67260
BuildRequires: ca-certificates
d67260
%if %{with_systemtap}
d67260
BuildRequires: systemtap-sdt-devel
d67260
%endif
d67260
d67260
%if %{system_libs}
d67260
BuildRequires: giflib-devel
d67260
BuildRequires: lcms2-devel
d67260
BuildRequires: libjpeg-devel
d67260
BuildRequires: libpng-devel
d67260
%else
d67260
# Version in jdk/src/share/native/sun/awt/giflib/gif_lib.h
d67260
Provides: bundled(giflib) = 5.2.1
d67260
# Version in jdk/src/share/native/sun/java2d/cmm/lcms/lcms2.h
d67260
Provides: bundled(lcms2) = 2.10.0
d67260
# Version in jdk/src/share/native/sun/awt/image/jpeg/jpeglib.h
d67260
Provides: bundled(libjpeg) = 6b
d67260
# Version in jdk/src/share/native/sun/awt/libpng/png.h
d67260
Provides: bundled(libpng) = 1.6.37
d67260
# We link statically against libstdc++ to increase portability
d67260
BuildRequires: libstdc++-static
d67260
%endif
d67260
d67260
%description
d67260
The %{origin_nice} %{majorver} runtime environment - portable edition
d67260
d67260
%if %{include_normal_build}
d67260
%package devel
d67260
Summary: %{origin_nice} %{majorver} Development Environment portable edition
d67260
Group:   Development/Tools
d67260
%description devel
d67260
The %{origin_nice} %{majorver} development tools - portable edition
d67260
%endif
d67260
d67260
%if %{include_debug_build}
d67260
%package slowdebug
d67260
Summary: %{origin_nice} %{majorver} Runtime Environment portable edition %{debug_on}
d67260
Group:   Development/Languages
d67260
%description slowdebug
d67260
The %{origin_nice} %{majorver} runtime environment - portable edition
d67260
%{debug_warning}
d67260
d67260
%package devel-slowdebug
d67260
Summary: %{origin_nice} %{majorver} Development Environment portable edition %{debug_on}
d67260
Group:   Development/Tools
d67260
%description devel-slowdebug
d67260
The %{origin_nice} %{majorver} development tools - portable edition
d67260
%{debug_warning}
d67260
%endif
d67260
d67260
%if %{include_fastdebug_build}
d67260
%package fastdebug
d67260
Summary: %{origin_nice} %{majorver} Runtime Environment portable edition %{fastdebug_on}
d67260
Group:   Development/Languages
d67260
%description fastdebug
d67260
The %{origin_nice} %{majorver} runtime environment - portable edition
d67260
%{fastdebug_warning}
d67260
d67260
%package devel-fastdebug
d67260
Summary: %{origin_nice} %{majorver} Development Environment portable edition %{fastdebug_on}
d67260
Group:   Development/Tools
d67260
%description devel-fastdebug
d67260
The %{origin_nice} %{majorver} development tools - portable edition
d67260
%{fastdebug_warning}
d67260
%endif
d67260
d67260
%if %{include_normal_build}
d67260
%package unstripped
d67260
Summary: The %{origin_nice} %{majorver} runtime environment, unstripped.
d67260
Group:   Development/Languages
d67260
%description unstripped
d67260
The %{origin_nice} %{majorver} runtime environment, unstripped.
d67260
%endif
d67260
d67260
%package docs
d67260
Summary: %{origin_nice} %{majorver} API documentation
d67260
Group:   Development/Languages
d67260
%description docs
d67260
The %{origin_nice} %{majorver} API documentation.
d67260
d67260
%package misc
d67260
Summary: %{origin_nice} %{majorver} miscellany
d67260
Group:   Development/Languages
d67260
%description misc
d67260
The %{origin_nice} %{majorver} miscellany.
d67260
d67260
%prep
d67260
if [ %{include_normal_build} -eq 0 -o  %{include_normal_build} -eq 1 ] ; then
d67260
  echo "include_normal_build is %{include_normal_build}"
d67260
else
d67260
  echo "include_normal_build is %{include_normal_build}, that is invalid. Use 1 for yes or 0 for no"
d67260
  exit 11
d67260
fi
d67260
if [ %{include_debug_build} -eq 0 -o  %{include_debug_build} -eq 1 ] ; then
d67260
  echo "include_debug_build is %{include_debug_build}"
d67260
else
d67260
  echo "include_debug_build is %{include_debug_build}, that is invalid. Use 1 for yes or 0 for no"
d67260
  exit 12
d67260
fi
d67260
if [ %{include_fastdebug_build} -eq 0 -o  %{include_fastdebug_build} -eq 1 ] ; then
d67260
  echo "include_fastdebug_build is %{include_fastdebug_build}"
d67260
else
d67260
  echo "include_fastdebug_build is %{include_fastdebug_build}, that is invalid. Use 1 for yes or 0 for no"
d67260
  exit 13
d67260
fi
d67260
if [ %{include_debug_build} -eq 0 -a  %{include_normal_build} -eq 0 -a  %{include_fastdebug_build} -eq 0 ] ; then
d67260
  echo "You have disabled all builds (normal,fastdebug,slowdebug). That is a no go."
d67260
  exit 14
d67260
fi
d67260
d67260
echo "Update version: %{updatever}"
d67260
echo "Build number: %{buildver}"
d67260
echo "Milestone: %{milestone}"
d67260
%setup -q -c -n %{uniquesuffix ""} -T -a 0
d67260
# https://bugzilla.redhat.com/show_bug.cgi?id=1189084
d67260
prioritylength=`expr length %{priority}`
d67260
if [ $prioritylength -ne 7 ] ; then
d67260
 echo "priority must be 7 digits in total, violated"
d67260
 exit 14
d67260
fi
d67260
# For old patches
d67260
ln -s %{top_level_dir_name} jdk8
d67260
d67260
cp %{SOURCE2} .
d67260
d67260
# replace outdated configure guess script
d67260
#
d67260
# the configure macro will do this too, but it also passes a few flags not
d67260
# supported by openjdk configure script
d67260
cp %{SOURCE100} %{top_level_dir_name}/common/autoconf/build-aux/
d67260
cp %{SOURCE101} %{top_level_dir_name}/common/autoconf/build-aux/
d67260
d67260
# OpenJDK patches
d67260
d67260
%if %{system_libs}
d67260
# Remove libraries that are linked
d67260
sh %{SOURCE12}
d67260
%endif
d67260
d67260
# Do not enable them with system_libs, they do not work properly with bundled option
d67260
# System library fixes
d67260
%if %{system_libs}
d67260
%patch201
d67260
%patch202
d67260
%patch203
d67260
%patch204
d67260
%endif
d67260
d67260
%patch1
d67260
%patch5
d67260
d67260
# s390 build fixes
d67260
%patch102
d67260
%patch103
d67260
%patch107
d67260
d67260
# AArch64 fixes
d67260
d67260
# x86 fixes
d67260
%patch105
d67260
d67260
# Upstreamable fixes
d67260
%patch502
d67260
%patch512
d67260
%patch523
d67260
%patch528
d67260
%patch571
d67260
%patch574
d67260
%patch112
d67260
%patch581
d67260
%patch541
d67260
%patch12
d67260
d67260
pushd %{top_level_dir_name}
d67260
# Add crypto policy and FIPS support
d67260
%patch1001 -p1
d67260
# nss.cfg PKCS11 support; must come last as it also alters java.security
d67260
%patch1000 -p1
d67260
# system cacerts support
d67260
%patch539 -p1
d67260
# 8u382 fix
d67260
%patch2001 -p1
d67260
popd
d67260
d67260
# RPM-only fixes
d67260
%patch600
d67260
%patch1003
d67260
d67260
# RHEL-only patches
d67260
%if ! 0%{?fedora} && 0%{?rhel} <= 7
d67260
%patch534
d67260
%endif
d67260
d67260
# Shenandoah patches
d67260
d67260
# Extract systemtap tapsets
d67260
%if %{with_systemtap}
d67260
tar --strip-components=1 -x -I xz -f %{SOURCE8}
d67260
%if %{include_debug_build}
d67260
cp -r tapset tapset%{debug_suffix}
d67260
%endif
d67260
%if %{include_fastdebug_build}
d67260
cp -r tapset tapset%{fastdebug_suffix}
d67260
%endif
d67260
d67260
d67260
for suffix in %{build_loop} ; do
d67260
  for file in "tapset"$suffix/*.in; do
d67260
    OUTPUT_FILE=`echo $file | sed -e "s:\.stp\.in$:-%{version}-%{release}.%{_arch}.stp:g"`
d67260
    sed -e "s:@ABS_SERVER_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/jre/lib/%{archinstall}/server/libjvm.so:g" $file > $file.1
d67260
# TODO find out which architectures other than i686 have a client vm
d67260
%ifarch %{ix86}
d67260
    sed -e "s:@ABS_CLIENT_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/jre/lib/%{archinstall}/client/libjvm.so:g" $file.1 > $OUTPUT_FILE
d67260
%else
d67260
    sed -e "/@ABS_CLIENT_LIBJVM_SO@/d" $file.1 > $OUTPUT_FILE
d67260
%endif
d67260
    sed -i -e "s:@ABS_JAVA_HOME_DIR@:%{_jvmdir}/%{sdkdir -- $suffix}:g" $OUTPUT_FILE
d67260
    sed -i -e "s:@INSTALL_ARCH_DIR@:%{archinstall}:g" $OUTPUT_FILE
d67260
    sed -i -e "s:@prefix@:%{_jvmdir}/%{sdkdir -- $suffix}/:g" $OUTPUT_FILE
d67260
  done
d67260
done
d67260
# systemtap tapsets ends
d67260
%endif
d67260
d67260
# Prepare desktop files
d67260
# Portables do not have desktop integration
d67260
d67260
# Setup nss.cfg
d67260
sed -e "s:@NSS_LIBDIR@:%{NSS_LIBDIR}:g" %{SOURCE11} > nss.cfg
d67260
d67260
# Setup nss.fips.cfg
d67260
sed -e "s:@NSS_LIBDIR@:%{NSS_LIBDIR}:g" %{SOURCE17} > nss.fips.cfg
d67260
d67260
# Setup security policy
d67260
#Commented because NA to portable
d67260
#sed -i -e "s:^security.systemCACerts=.*:security.systemCACerts=%{cacerts_file}:" %{security_file}
d67260
d67260
%build
d67260
d67260
# How many CPU's do we have?
d67260
export NUM_PROC=%(/usr/bin/getconf _NPROCESSORS_ONLN 2> /dev/null || :)
d67260
export NUM_PROC=${NUM_PROC:-1}
d67260
%if 0%{?_smp_ncpus_max}
d67260
# Honor %%_smp_ncpus_max
d67260
[ ${NUM_PROC} -gt %{?_smp_ncpus_max} ] && export NUM_PROC=%{?_smp_ncpus_max}
d67260
%endif
d67260
d67260
%ifarch s390x sparc64 alpha %{power64} %{aarch64}
d67260
export ARCH_DATA_MODEL=64
d67260
%endif
d67260
%ifarch alpha
d67260
export CFLAGS="$CFLAGS -mieee"
d67260
%endif
d67260
d67260
# We use ourcppflags because the OpenJDK build seems to
d67260
# pass EXTRA_CFLAGS to the HotSpot C++ compiler...
d67260
EXTRA_CFLAGS="%ourcppflags -Wno-error"
d67260
EXTRA_CPP_FLAGS="%ourcppflags"
d67260
%ifarch %{power64} ppc
d67260
EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-tree-vectorize"
d67260
# fix rpmlint warnings
d67260
EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
d67260
%endif
d67260
EXTRA_ASFLAGS="${EXTRA_CFLAGS} -Wa,--generate-missing-build-notes=yes"
d67260
export EXTRA_CFLAGS EXTRA_ASFLAGS
d67260
d67260
(cd %{top_level_dir_name}/common/autoconf
d67260
 bash ./autogen.sh
d67260
)
d67260
d67260
function buildjdk() {
d67260
    local outputdir=${1}
d67260
    local buildjdk=${2}
d67260
    local maketargets="${3}"
d67260
    local debuglevel=${4}
d67260
    local link_opt=${5}
d67260
    local debug_symbols=${6}
d67260
d67260
    local top_srcdir_abs_path=$(pwd)/%{top_level_dir_name}
d67260
    # Variable used in hs_err hook on build failures
d67260
    local top_builddir_abs_path=$(pwd)/${outputdir}
d67260
d67260
    echo "Using output directory: ${outputdir}";
d67260
d67260
    if [ "x${link_opt}" = "xbundled" ] ; then
d67260
        libc_link_opt="static";
d67260
    else
d67260
        libc_link_opt="dynamic";
d67260
    fi
d67260
d67260
    echo "Checking build JDK ${buildjdk} is operational..."
d67260
    ${buildjdk}/bin/java -version
d67260
    echo "Using make targets: ${maketargets}"
d67260
    echo "Using debuglevel: ${debuglevel}"
d67260
    echo "Using link_opt: ${link_opt}"
d67260
    echo "Using debug_symbols: ${debug_symbols}"
d67260
    echo "Building 8u%{updatever}-%{buildver}, milestone %{milestone}"
d67260
d67260
    mkdir -p ${outputdir}
d67260
    pushd ${outputdir}
d67260
d67260
    bash ${top_srcdir_abs_path}/configure \
d67260
%ifarch %{jfr_arches}
d67260
    --enable-jfr \
d67260
%else
d67260
    --disable-jfr \
d67260
%endif
d67260
%ifarch %{zero_arches}
d67260
    --with-jvm-variants=zero \
d67260
%endif
d67260
    --with-cacerts-file=`readlink -f %{_sysconfdir}/pki/java/cacerts`  \
d67260
    --with-native-debug-symbols=${debug_symbols} \
d67260
    --with-milestone=%{milestone} \
d67260
    --with-update-version=%{updatever} \
d67260
    --with-build-number=%{buildver} \
d67260
    --with-vendor-name="%{oj_vendor}" \
d67260
    --with-vendor-url="%{oj_vendor_url}" \
d67260
    --with-vendor-bug-url="%{oj_vendor_bug_url}" \
d67260
    --with-vendor-vm-bug-url="%{oj_vendor_bug_url}" \
d67260
    --with-boot-jdk=${buildjdk} \
d67260
    --with-debug-level=${debuglevel} \
d67260
    --disable-sysconf-nss \
d67260
    --enable-unlimited-crypto \
d67260
    --with-zlib=${link_opt} \
d67260
    --with-giflib=${link_opt} \
d67260
%if %{with system_libs}
d67260
    --with-libjpeg=${link_opt} \
d67260
    --with-libpng=${link_opt} \
d67260
    --with-lcms=${link_opt} \
d67260
%endif
d67260
    --with-stdc++lib=${libc_link_opt} \
d67260
    --with-extra-cxxflags="$EXTRA_CPP_FLAGS" \
d67260
    --with-extra-cflags="$EXTRA_CFLAGS" \
d67260
    --with-extra-asflags="$EXTRA_ASFLAGS" \
d67260
    --with-extra-ldflags="%{ourldflags}" \
d67260
    --with-num-cores="$NUM_PROC"
d67260
d67260
    cat spec.gmk
d67260
    cat hotspot-spec.gmk
d67260
d67260
    make \
d67260
	JAVAC_FLAGS=-g \
d67260
	LOG=trace \
d67260
	SCTP_WERROR= \
d67260
	${maketargets} || ( pwd; find ${top_srcdir_abs_path} ${top_builddir_abs_path} -name "hs_err_pid*.log" | xargs cat && false )
d67260
d67260
    popd
d67260
}
d67260
d67260
function installjdk() {
d67260
    local outputdir=${1}
d67260
    local installdir=${2}
d67260
    local jdkimagepath=${installdir}/images/%{jdkimage}
d67260
    local jreimagepath=${installdir}/images/%{jreimage}
d67260
d67260
    echo "Installing build from ${outputdir} to ${installdir}..."
d67260
    mkdir -p ${installdir}
d67260
    echo "Installing images..."
d67260
    mv ${outputdir}/images ${installdir}
d67260
    if [ -d ${outputdir}/bundles ] ; then
d67260
        echo "Installing bundles...";
d67260
        mv ${outputdir}/bundles ${installdir} ;
d67260
    fi
d67260
    # On 8u, docs ends up at the top-level, not in images
d67260
    if [ -d ${outputdir}/docs ] ; then
d67260
        echo "Installing docs...";
d67260
        mv ${outputdir}/docs ${installdir} ;
d67260
    fi
d67260
d67260
%if !%{with artifacts}
d67260
    echo "Removing output directory...";
d67260
    rm -rf ${outputdir}
d67260
%endif
d67260
d67260
    for imagepath in ${jdkimagepath} ${jreimagepath} ; do
d67260
d67260
        if [ -d ${imagepath} ] ; then
d67260
            # the build (erroneously) removes read permissions from some jars
d67260
            # this is a regression in OpenJDK 7 (our compiler):
d67260
            # http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1437
d67260
            find ${imagepath} -iname '*.jar' -exec chmod ugo+r {} \;
d67260
d67260
            # Build screws up permissions on binaries
d67260
            # https://bugs.openjdk.java.net/browse/JDK-8173610
d67260
            find ${imagepath} -iname '*.so' -exec chmod +x {} \;
d67260
            find ${imagepath}/bin/ -exec chmod +x {} \;
d67260
d67260
            # Install local files which are distributed with the JDK
d67260
            install -m 644 %{SOURCE7} ${imagepath}
d67260
d67260
            # Create fake alt-java as a placeholder for future alt-java
d67260
            pushd ${imagepath}
d67260
            # add alt-java man page
d67260
            echo "Hardened java binary recommended for launching untrusted code from the Web e.g. javaws" > man/man1/%{alt_java_name}.1
d67260
            cat man/man1/java.1 >> man/man1/%{alt_java_name}.1
d67260
            popd
d67260
d67260
            # Print release information
d67260
            cat ${imagepath}/release
d67260
        fi
d67260
    done
d67260
d67260
    # Handle these outside the loop as install path differs between JDK and JRE image
d67260
    install -m 644 nss.cfg ${jdkimagepath}/jre/lib/security/
d67260
    install -m 644 nss.cfg ${jreimagepath}/lib/security/
d67260
    # Install nss.fips.cfg: NSS configuration for global FIPS mode (crypto-policies)
d67260
    install -m 644 nss.fips.cfg ${jdkimagepath}/jre/lib/security/
d67260
    install -m 644 nss.fips.cfg ${jreimagepath}/lib/security/
d67260
}
d67260
d67260
function genchecksum() {
d67260
    local checkedfile=${1}
d67260
d67260
    checkdir=$(dirname ${1})
d67260
    checkfile=$(basename ${1})
d67260
d67260
    echo "Generating checksum for ${checkfile} in ${checkdir}..."
d67260
    pushd ${checkdir}
d67260
    sha256sum ${checkfile} > ${checkfile}.sha256sum
d67260
    sha256sum --check ${checkfile}.sha256sum
d67260
    popd
d67260
}
d67260
d67260
function packagejdk() {
d67260
    local imagesdir=$(pwd)/${1}/images
d67260
    local docdir=$(pwd)/${1}/docs
d67260
    local bundledir=$(pwd)/${1}/bundles
d67260
    local packagesdir=$(pwd)/${2}
d67260
    local srcdir=$(pwd)/%{top_level_dir_name}
d67260
d67260
    echo "Packaging build from ${imagesdir} to ${packagesdir}..."
d67260
    mkdir -p ${packagesdir}
d67260
    pushd ${imagesdir}
d67260
d67260
    if [ "x$suffix" = "x" ] ; then
d67260
        nameSuffix=""
d67260
    else
d67260
        nameSuffix=`echo "$suffix"| sed s/-/./`
d67260
    fi
d67260
d67260
    jdkname=%{jdkportablename -- "$nameSuffix"}
d67260
    jdkarchive=${packagesdir}/%{jdkportablearchive -- "$nameSuffix"}
d67260
    jrename=%{jreportablename -- "$nameSuffix"}
d67260
    jrearchive=${packagesdir}/%{jreportablearchive -- "$nameSuffix"}
d67260
    debugjdkarchive=${packagesdir}/%{jdkportablearchive -- "${nameSuffix}.debuginfo"}
d67260
    debugjrearchive=${packagesdir}/%{jreportablearchive -- "${nameSuffix}.debuginfo"}
d67260
    unstrippedarchive=${packagesdir}/%{jdkportablearchive -- "${nameSuffix}.unstripped"}
d67260
    # We only use docs for the release build
d67260
    docname=%{docportablename}
d67260
    docarchive=${packagesdir}/%{docportablearchive}
d67260
    built_doc_archive=jdk-%{javaver}_%{updatever}%{milestone_version}$suffix-%{buildver}-docs.zip
d67260
    # These are from the source tree so no debug variants
d67260
    miscname=%{miscportablename}
d67260
    miscarchive=${packagesdir}/%{miscportablearchive}
d67260
d67260
    # Rename directories for packaging
d67260
    mv %{jdkimage} ${jdkname}
d67260
    mv %{jreimage} ${jrename}
d67260
d67260
    # Release images have external debug symbols
d67260
    if [ "x$suffix" = "x" ] ; then
d67260
        # Keep the unstripped version for consumption by RHEL RPMs
d67260
        tar -cJf ${unstrippedarchive} ${jdkname}
d67260
        genchecksum ${unstrippedarchive}
d67260
d67260
        # Strip the files
d67260
        for file in $(find ${jdkname} ${jrename} -type f) ; do
d67260
            if file ${file} | grep -q 'ELF'; then
d67260
                noextfile=${file/.so/};
d67260
                objcopy --only-keep-debug ${file} ${noextfile}.debuginfo;
d67260
                objcopy --add-gnu-debuglink=${noextfile}.debuginfo ${file};
d67260
                strip -g ${file};
d67260
            fi
d67260
        done
d67260
d67260
        tar -cJf ${debugjdkarchive} $(find ${jdkname} -name \*.debuginfo)
d67260
        genchecksum ${debugjdkarchive}
d67260
        tar -cJf ${debugjrearchive} $(find ${jrename} -name \*.debuginfo)
d67260
        genchecksum ${debugjrearchive}
d67260
d67260
	mkdir ${docname}
d67260
	mv ${docdir} ${docname}
d67260
	mv ${bundledir}/${built_doc_archive} ${docname}
d67260
	tar -cJf ${docarchive} ${docname}
d67260
	genchecksum ${docarchive}
d67260
d67260
	mkdir ${miscname}
d67260
	for s in 16 24 32 48 ; do
d67260
	    cp -av ${srcdir}/jdk/src/solaris/classes/sun/awt/X11/java-icon${s}.png ${miscname}
d67260
	done
d67260
	tar -cJf ${miscarchive} ${miscname}
d67260
	genchecksum ${miscarchive}
d67260
    fi
d67260
d67260
    tar -cJf ${jdkarchive} --exclude='**.debuginfo' ${jdkname}
d67260
    genchecksum ${jdkarchive}
d67260
d67260
    tar -cJf ${jrearchive}  --exclude='**.debuginfo' ${jrename}
d67260
    genchecksum ${jrearchive}
d67260
d67260
    # Revert directory renaming so testing will run
d67260
    # TODO: testing should run on the packaged JDK
d67260
    mv ${jdkname} %{jdkimage}
d67260
    mv ${jrename} %{jreimage}
d67260
d67260
    popd #images
d67260
}
d67260
d67260
%if %{build_hotspot_first}
d67260
  # Build a fresh libjvm.so first and use it to bootstrap
d67260
  cp -LR --preserve=mode,timestamps %{bootjdk} newboot
d67260
  systemjdk=$(pwd)/newboot
d67260
  buildjdk build/newboot ${systemjdk} %{hotspot_target} "release" "bundled" "internal"
d67260
  mv build/newboot/hotspot/dist/jre/lib/%{archinstall}/server/libjvm.so newboot/jre/lib/%{archinstall}/server
d67260
%else
d67260
  systemjdk=%{bootjdk}
d67260
%endif
d67260
d67260
for suffix in %{build_loop} ; do
d67260
d67260
  if [ "x$suffix" = "x" ] ; then
d67260
      debugbuild=release
d67260
  else
d67260
      # change --something to something
d67260
      debugbuild=`echo $suffix  | sed "s/-//g"`
d67260
  fi
d67260
  # We build with internal debug symbols and do
d67260
  # our own stripping for one version of the
d67260
  # release build
d67260
  debug_symbols=internal
d67260
d67260
  builddir=%{buildoutputdir -- ${suffix}}
d67260
  bootbuilddir=boot${builddir}
d67260
  installdir=%{installoutputdir -- ${suffix}}
d67260
  bootinstalldir=boot${installdir}
d67260
  packagesdir=%{packageoutputdir -- ${suffix}}
d67260
d67260
  link_opt="%{link_type}"
d67260
%if %{system_libs}
d67260
  # Copy the source tree so we can remove all in-tree libraries
d67260
  cp -a %{top_level_dir_name} %{top_level_dir_name_backup}
d67260
  # Remove all libraries that are linked
d67260
  sh %{SOURCE12} %{top_level_dir_name} full
d67260
%endif
d67260
  # Debug builds don't need same targets as release for
d67260
  # build speed-up. We also avoid bootstrapping these
d67260
  # slower builds.
d67260
  if echo $debugbuild | grep -q "debug" ; then
d67260
      maketargets="%{debug_targets}"
d67260
      run_bootstrap=false
d67260
  else
d67260
      maketargets="%{release_targets}"
d67260
      run_bootstrap=%{bootstrap_build}
d67260
  fi
d67260
  if ${run_bootstrap} ; then
d67260
      buildjdk ${bootbuilddir} ${systemjdk} "%{bootstrap_targets}" ${debugbuild} ${link_opt} ${debug_symbols}
d67260
      installjdk ${bootbuilddir} ${bootinstalldir}
d67260
      buildjdk ${builddir} $(pwd)/${bootinstalldir}/images/%{jdkimage} "${maketargets}" ${debugbuild} ${link_opt} ${debug_symbols}
d67260
      installjdk ${builddir} ${installdir}
d67260
      %{!?with_artifacts:rm -rf ${bootinstalldir}}
d67260
  else
d67260
      buildjdk ${builddir} ${systemjdk} "${maketargets}" ${debugbuild} ${link_opt} ${debug_symbols}
d67260
      installjdk ${builddir} ${installdir}
d67260
  fi
d67260
  packagejdk ${installdir} ${packagesdir}
d67260
d67260
%if %{system_libs}
d67260
  # Restore original source tree we modified by removing full in-tree sources
d67260
  rm -rf %{top_level_dir_name}
d67260
  mv %{top_level_dir_name_backup} %{top_level_dir_name}
d67260
%endif
d67260
d67260
# build cycles
d67260
done
d67260
d67260
%check
d67260
d67260
# We test debug first as it will give better diagnostics on a crash
d67260
for suffix in %{build_loop} ; do
d67260
d67260
export JAVA_HOME=$(pwd)/%{installoutputdir -- $suffix}/images/%{jdkimage}
d67260
d67260
# Check unlimited policy has been used
d67260
$JAVA_HOME/bin/javac -d . %{SOURCE13}
d67260
$JAVA_HOME/bin/java TestCryptoLevel
d67260
d67260
# Check ECC is working
d67260
$JAVA_HOME/bin/javac -d . %{SOURCE14}
d67260
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE14})|sed "s|\.java||")
d67260
d67260
# Check system crypto (policy) is active and can be disabled
d67260
# Test takes a single argument - true or false - to state whether system
d67260
# security properties are enabled or not.
d67260
$JAVA_HOME/bin/javac -d . %{SOURCE15}
d67260
export PROG=$(echo $(basename %{SOURCE15})|sed "s|\.java||")
d67260
export SEC_DEBUG="-Djava.security.debug=properties"
d67260
# Portable specific: set false whereas its true for upstream
d67260
$JAVA_HOME/bin/java ${SEC_DEBUG} ${PROG} false
d67260
$JAVA_HOME/bin/java ${SEC_DEBUG} -Djava.security.disableSystemPropertiesFile=true ${PROG} false
d67260
d67260
# Check correct vendor values have been set
d67260
$JAVA_HOME/bin/javac -d . %{SOURCE16}
d67260
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE16})|sed "s|\.java||") "%{oj_vendor}" %{oj_vendor_url} %{oj_vendor_bug_url}
d67260
d67260
# Check java launcher has no SSB mitigation
d67260
if ! nm $JAVA_HOME/bin/java | grep set_speculation ; then true ; else false; fi
d67260
d67260
# Check alt-java launcher has SSB mitigation on supported architectures
d67260
%ifarch %{ssbd_arches}
d67260
nm $JAVA_HOME/bin/%{alt_java_name} | grep set_speculation
d67260
%else
d67260
if ! nm $JAVA_HOME/bin/%{alt_java_name} | grep set_speculation ; then true ; else false; fi
d67260
%endif
d67260
d67260
# Check translations are available for new timezones
d67260
$JAVA_HOME/bin/javac -d . %{SOURCE18}
d67260
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE18})|sed "s|\.java||") JRE
d67260
d67260
# Release builds strip the debug symbols into external .debuginfo files
d67260
if [ "x$suffix" = "x" ] ; then
d67260
  so_suffix="debuginfo"
d67260
else
d67260
  so_suffix="so"
d67260
fi
d67260
d67260
# Check debug symbols are present and can identify code
d67260
find "$JAVA_HOME" -iname "*.$so_suffix" -print0 | while read -d $'\0' lib
d67260
do
d67260
  if [ -f "$lib" ] ; then
d67260
    echo "Testing $lib for debug symbols"
d67260
    # All these tests rely on RPM failing the build if the exit code of any set
d67260
    # of piped commands is non-zero.
d67260
d67260
    # Test for .debug_* sections in the shared object. This is the main test
d67260
    # Stripped objects will not contain these
d67260
    eu-readelf -S "$lib" | grep "] .debug_"
d67260
    test $(eu-readelf -S "$lib" | grep -E "\]\ .debug_(info|abbrev)" | wc --lines) == 2
d67260
d67260
    # Test FILE symbols. These will most likely be removed by anything that
d67260
    # manipulates symbol tables because it's generally useless. So a nice test
d67260
    # that nothing has messed with symbols
d67260
    old_IFS="$IFS"
d67260
    IFS=$'\n'
d67260
    for line in $(eu-readelf -s "$lib" | grep "00000000      0 FILE    LOCAL  DEFAULT")
d67260
    do
d67260
     # We expect to see .cpp files, except for architectures like aarch64 and
d67260
     # s390 where we expect .o and .oS files
d67260
      echo "$line" | grep -E "ABS ((.*/)?[-_a-zA-Z0-9]+\.(c|cc|cpp|cxx|o|oS))?$"
d67260
    done
d67260
    IFS="$old_IFS"
d67260
d67260
    # If this is the JVM, look for javaCalls.(cpp|o) in FILEs, for extra sanity checking
d67260
    if [ "`basename $lib`" = "libjvm.so" ]; then
d67260
      eu-readelf -s "$lib" | \
d67260
        grep -E "00000000      0 FILE    LOCAL  DEFAULT      ABS javaCalls.(cpp|o)$"
d67260
    fi
d67260
d67260
    # Test that there are no .gnu_debuglink sections pointing to another
d67260
    # debuginfo file. There shouldn't be any debuginfo files, so the link makes
d67260
    # no sense either
d67260
    eu-readelf -S "$lib" | grep 'gnu'
d67260
    if eu-readelf -S "$lib" | grep '] .gnu_debuglink' | grep PROGBITS; then
d67260
      echo "bad .gnu_debuglink section."
d67260
      eu-readelf -x .gnu_debuglink "$lib"
d67260
      false
d67260
    fi
d67260
  fi
d67260
done
d67260
d67260
# Make sure gdb can do a backtrace based on line numbers on libjvm.so
d67260
# javaCalls.cpp:58 should map to:
d67260
# http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/ff3b27e6bcc2/src/share/vm/runtime/javaCalls.cpp#l58
d67260
# Using line number 1 might cause build problems. See:
d67260
# https://bugzilla.redhat.com/show_bug.cgi?id=1539664
d67260
# https://bugzilla.redhat.com/show_bug.cgi?id=1538767
d67260
gdb -q "$JAVA_HOME/bin/java" <
d67260
handle SIGSEGV pass nostop noprint
d67260
handle SIGILL pass nostop noprint
d67260
set breakpoint pending on
d67260
break javaCalls.cpp:58
d67260
commands 1
d67260
backtrace
d67260
quit
d67260
end
d67260
run -version
d67260
EOF
d67260
d67260
%ifarch %{gdb_arches}
d67260
grep 'JavaCallWrapper::JavaCallWrapper' gdb.out
d67260
%endif
d67260
d67260
# Check src.zip has all sources. See RHBZ#1130490
d67260
jar -tf $JAVA_HOME/src.zip | grep 'sun.misc.Unsafe'
d67260
d67260
# Check class files include useful debugging information
d67260
$JAVA_HOME/bin/javap -l java.lang.Object | grep "Compiled from"
d67260
$JAVA_HOME/bin/javap -l java.lang.Object | grep LineNumberTable
d67260
$JAVA_HOME/bin/javap -l java.lang.Object | grep LocalVariableTable
d67260
d67260
# Check generated class files include useful debugging information
d67260
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep "Compiled from"
d67260
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LineNumberTable
d67260
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LocalVariableTable
d67260
d67260
# build cycles check
d67260
done
d67260
d67260
%install
d67260
d67260
for suffix in %{build_loop} ; do
d67260
d67260
    packagesdir=%{packageoutputdir -- ${suffix}}
d67260
d67260
    if [ "x$suffix" = "x" ] ; then
d67260
        nameSuffix=""
d67260
    else
d67260
        nameSuffix=`echo "$suffix"| sed s/-/./`
d67260
    fi
d67260
d67260
    # These definitions should match those in installjdk
d67260
    jdkarchive=${packagesdir}/%{jdkportablearchive -- "$nameSuffix"}
d67260
    jrearchive=${packagesdir}/%{jreportablearchive -- "$nameSuffix"}
d67260
    debugjdkarchive=${packagesdir}/%{jdkportablearchive -- "${nameSuffix}.debuginfo"}
d67260
    debugjrearchive=${packagesdir}/%{jreportablearchive -- "${nameSuffix}.debuginfo"}
d67260
    unstrippedarchive=${packagesdir}/%{jdkportablearchive -- "${nameSuffix}.unstripped"}
d67260
d67260
    mkdir -p $RPM_BUILD_ROOT%{_jvmdir}
d67260
d67260
    mv ${jdkarchive} $RPM_BUILD_ROOT%{_jvmdir}/
d67260
    mv ${jdkarchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
d67260
    mv ${jrearchive} $RPM_BUILD_ROOT%{_jvmdir}/
d67260
    mv ${jrearchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
d67260
d67260
    if [ "x$suffix" = "x" ] ; then
d67260
        mv ${debugjdkarchive} $RPM_BUILD_ROOT%{_jvmdir}/
d67260
        mv ${debugjdkarchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
d67260
        mv ${debugjrearchive} $RPM_BUILD_ROOT%{_jvmdir}/
d67260
        mv ${debugjrearchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
d67260
        mv ${unstrippedarchive} $RPM_BUILD_ROOT%{_jvmdir}/
d67260
        mv ${unstrippedarchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
d67260
    fi
d67260
done
d67260
d67260
# These definitions should match those in installjdk
d67260
# Install outside the loop as there are no debug variants
d67260
docarchive=${packagesdir}/%{docportablearchive}
d67260
miscarchive=${packagesdir}/%{miscportablearchive}
d67260
d67260
mv ${docarchive} $RPM_BUILD_ROOT%{_jvmdir}/
d67260
mv ${docarchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
d67260
mv ${miscarchive} $RPM_BUILD_ROOT%{_jvmdir}/
d67260
mv ${miscarchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
d67260
d67260
# To show sha in the build log
d67260
for file in `ls $RPM_BUILD_ROOT%{_jvmdir}/*.sha256sum` ; do
d67260
    ls -l $file ;
d67260
    cat $file ;
d67260
done
d67260
d67260
d67260
%if %{include_normal_build}
d67260
d67260
%files
d67260
# main package builds always
d67260
%{_jvmdir}/%{jreportablearchive -- %%{nil}}
d67260
%{_jvmdir}/%{jreportablearchive -- .debuginfo}
d67260
%{_jvmdir}/%{jreportablearchive -- %%{nil}}.sha256sum
d67260
%{_jvmdir}/%{jreportablearchive -- .debuginfo}.sha256sum
d67260
%else
d67260
%files
d67260
# placeholder
d67260
%endif
d67260
d67260
%if %{include_normal_build}
d67260
%files devel
d67260
%{_jvmdir}/%{jdkportablearchive -- %%{nil}}
d67260
%{_jvmdir}/%{jdkportablearchive -- .debuginfo}
d67260
%{_jvmdir}/%{jdkportablearchive -- %%{nil}}.sha256sum
d67260
%{_jvmdir}/%{jdkportablearchive -- .debuginfo}.sha256sum
d67260
%endif
d67260
d67260
%files unstripped
d67260
%{_jvmdir}/%{jdkportablearchive -- .unstripped}
d67260
%{_jvmdir}/%{jdkportablearchive -- .unstripped}.sha256sum
d67260
d67260
%if %{include_debug_build}
d67260
d67260
%files slowdebug
d67260
%{_jvmdir}/%{jreportablearchive -- .slowdebug}
d67260
%{_jvmdir}/%{jreportablearchive -- .slowdebug}.sha256sum
d67260
d67260
%files devel-slowdebug
d67260
%{_jvmdir}/%{jdkportablearchive -- .slowdebug}
d67260
%{_jvmdir}/%{jdkportablearchive -- .slowdebug}.sha256sum
d67260
%endif
d67260
d67260
%if %{include_fastdebug_build}
d67260
d67260
%files fastdebug
d67260
%{_jvmdir}/%{jreportablearchive -- .fastdebug}
d67260
%{_jvmdir}/%{jreportablearchive -- .fastdebug}.sha256sum
d67260
d67260
%files devel-fastdebug
d67260
%{_jvmdir}/%{jdkportablearchive -- .fastdebug}
d67260
%{_jvmdir}/%{jdkportablearchive -- .fastdebug}.sha256sum
d67260
d67260
%endif
d67260
d67260
%files docs
d67260
%{_jvmdir}/%{docportablearchive}
d67260
%{_jvmdir}/%{docportablearchive}.sha256sum
d67260
d67260
%files misc
d67260
%{_jvmdir}/%{miscportablearchive}
d67260
%{_jvmdir}/%{miscportablearchive}.sha256sum
d67260
d67260
%changelog
d67260
* Thu Apr 27 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.372.b07-2
d67260
- Sync with existing RHEL 8 build, in order to start building portables on RHEL 8
d67260
- Fix debug symbols flag to newboot and package naming
d67260
- Disable debug_package as we only produce tarballs
d67260
- Drop redundant removal of empty RPM_BUILD_ROOT
d67260
d67260
* Tue Apr 18 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.372.b07-1
d67260
- Update to shenandoah-jdk8u372-b07 (GA)
d67260
- Update release notes for shenandoah-8u372-b07.
d67260
- Require tzdata 2023c due to inclusion of JDK-8305113 in 8u372-b07
d67260
- Reintroduce jconsole-plugin.patch from RHEL 9
d67260
- Update generate_tarball.sh to add support for passing a boot JDK to the configure run
d67260
- Add POSIX-friendly error codes to generate_tarball.sh and fix whitespace
d67260
- Remove .jcheck and GitHub support when generating tarballs, as done in upstream release tarballs
d67260
- Drop JDK-8275535/RH2053256 patch which is now upstream
d67260
- Include JDK-8271199 backport early ahead of 8u382 (RH2175317)
d67260
- ** This tarball is embargoed until 2023-04-18 @ 1pm PT. **
d67260
- Resolves: rhbz#2185182
d67260
- Resolves: rhbz#2175317
d67260
d67260
* Tue Apr 18 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.362.b09-2
d67260
- Reintroduce generate_source_tarball.sh from RHEL 9
d67260
d67260
* Tue Feb 28 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.362.b09-1
d67260
- Update to shenandoah-jdk8u352-b09 (GA)
d67260
- Update release notes for shenandoah-8u352-b09.
d67260
- Sync system cacerts support with RHEL 9, disabling using -Dsecurity.systemCACerts=
d67260
- Update cacerts patch to fix OPENJDK-1433 SecurityManager issue
d67260
d67260
* Mon Feb 27 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.362.b08-4
d67260
- Build with internal debuginfo as in RHEL and then create a stripped variant ourselves for the portable release build
d67260
- Restore compiler flags to those used in RHEL
d67260
- Remove 8u portable only debug check using nm -aCl which takes a very long time and seems to be duplicated by other checks
d67260
- Add docs & icons to the portable output
d67260
- Make sure generated checksums work and don't include full path
d67260
- The docs directory is a top-level directory on OpenJDK 8, so needs to be moved to the install directory separately
d67260
d67260
* Mon Feb 27 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.362.b08-3
d67260
- Separate JDK packaging into a separate function
d67260
- Use variables to make it clearer what is going on
d67260
- Use a package output directory as we do for building and installing
d67260
d67260
* Mon Feb 27 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.362.b08-2
d67260
- Adapt the portable build to use the same system library handling as RHEL builds
d67260
d67260
* Fri Jan 13 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.362.b08-1
d67260
- Update to shenandoah-jdk8u352-b08 (GA)
d67260
- Update release notes for shenandoah-8u352-b08.
d67260
- Fix broken links and missing release notes in older releases.
d67260
- Drop JDK-8195607/PR3776/RH1760437 now this is upstream
d67260
- Require tzdata 2022g due to inclusion of JDK-8296108, JDK-8296715 & JDK-8297804
d67260
- Drop tzdata patches for 2022d & 2022e (JDK-8294357 & JDK-8295173) which are now upstream
d67260
- Update TestTranslations.java to test the new America/Ciudad_Juarez zone
d67260
- Drop RH1163501 patch which is not upstream or in 11, 17 & 19 packages and seems obsolete
d67260
  - Patch was broken by inclusion of "JDK-8293554: Enhanced DH Key Exchanges"
d67260
  - Patch was added for a specific corner case of a 4096-bit DH key on a Fedora host that no longer exists
d67260
  - Fedora now appears to be using RSA and the JDK now supports ECC in preference to large DH keys
d67260
- Resolves: rhbz#2160111
d67260
d67260
* Fri Oct 14 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.352.b08-1
d67260
- Update to shenandoah-jdk8u352-b08 (GA)
d67260
- Update release notes for shenandoah-8u352-b08.
d67260
- Update in-tree tzdata to 2022e with JDK-8294357 & JDK-8295173
d67260
- Add test to ensure timezones can be translated
d67260
- Rebase FIPS patch against 8u352-b07
d67260
- * This tarball is embargoed until 2022-10-18 @ 1pm PT. *
d67260
- Resolves: rhbz#2133695
d67260
d67260
* Mon Aug 29 2022 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.345.b01-2
d67260
- Added some previously missing piece related to flatpack builds in portable spec
d67260
- The change went into upstream branch in 8u292-b10(GA) itself
d67260
d67260
* Mon Aug 29 2022 Stephan Bergmann <sbergman@redhat.com> - 1:1.8.0.345.b01-2
d67260
- Disable copy-jdk-configs for Flatpak builds
d67260
- Fix flatpak builds by exempting them from bootstrap
d67260
- Resolves: rhbz#2102727
d67260
d67260
* Wed Aug 03 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.345.b01-1
d67260
- Update to shenandoah-jdk8u345-b01 (GA)
d67260
- Update release notes for 8u345-b01.
d67260
- Resolves: rhbz#2112405
d67260
d67260
* Sun Jul 17 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.342.b07-1
d67260
- Update to shenandoah-jdk8u342-b07 (GA)
d67260
- Update release notes for shenandoah-8u342-b07.
d67260
- Print release file during build, which should now include a correct SOURCE value from .src-rev
d67260
- Include script to generate bug list for release notes
d67260
- Update tzdata requirement to 2022a to match JDK-8283350
d67260
- Rebase JDK-8186464 patch so it applies after JDK-8190753
d67260
- Switch to GA mode for final release.
d67260
- This tarball is embargoed until 2022-07-19 @ 1pm PT.
d67260
- Resolves: rhbz#2106502
d67260
d67260
* Sun Jul 17 2022 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.332.b09-5
d67260
- System security properties are disabled by default on portable.
d67260
- Commented out lines which are not applicable for portable.
d67260
- Commented out BR for crypto-policies for portable
d67260
d67260
* Sun Jul 17 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.332.b09-5
d67260
- Rebase FIPS patches from fips branch and simplify by using a single patch from that repository
d67260
- * RH2036462: sun.security.pkcs11.wrapper.PKCS11.getInstance breakage
d67260
- * RH2090378: Revert to disabling system security properties and FIPS mode support together
d67260
- Rebase RH1648249 nss.cfg patch so it applies after the FIPS patch
d67260
- Rebase PR2888/RH2055274 cacerts patch so it applies after the current FIPS patch
d67260
- Perform configuration changes (e.g. nss.cfg, nss.fips.cfg, tzdb.dat) in installjdk
d67260
- Enable system security properties in the RPM (now disabled by default in the FIPS repo)
d67260
- Improve security properties test to check both enabled and disabled behaviour
d67260
- Run security properties test with property debugging on
d67260
- Explicitly require crypto-policies during build and runtime for system security properties
d67260
- Resolves: rhbz#2097152
d67260
- Resolves: rhbz#2100675
d67260
d67260
* Thu Jun 30 2022 Francisco Ferrari Bihurriet <fferrari@redhat.com> - 1:1.8.0.332.b09-4
d67260
- RH2007331: SecretKey generate/import operations don't add the CKA_SIGN attribute in FIPS mode
d67260
- Resolves: rhbz#2102435
d67260
d67260
* Thu May 19 2022 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.332.b09-3
d67260
- to pass aqa:
d67260
- removed copy system tzdb in favour of in-tree
d67260
- removed Patch3: rh1648644-java_access_bridge_privileged_security.patch
d67260
- This is not intended to release untill we decide proper steps
d67260
d67260
* Wed May 11 2022 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.332.b09-2
d67260
- Add some missing chunk in %check from upstream spec.
d67260
d67260
* Mon Apr 18 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.332.b09-1
d67260
- Update to shenandoah-jdk8u332-b09 (GA)
d67260
- Update release notes for 8u332-b09.
d67260
- Switch to GA mode for final release.
d67260
- This tarball is embargoed until 2022-04-19 @ 1pm PT.
d67260
- Resolves: rhbz#2073422
d67260
d67260
* Mon Apr 18 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.332.b06-0.2.ea
d67260
- Allow the default keystore to be configured using security.systemCACerts
d67260
- Use of the property can now be disabled using -Djava.security.disableSystemCACerts=true
d67260
- Commented out the configuration line for RHEL which is NA for portable.
d67260
- Resolves: rhbz#2055274
d67260
d67260
* Mon Apr 18 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.332.b06-0.1.ea
d67260
- Update to shenandoah-jdk8u332-b06 (EA)
d67260
- Update release notes for shenandoah-8u332-b06.
d67260
- Minor corrections to previous changelog entry.
d67260
- Resolves: rhbz#2047536
d67260
d67260
* Sun Apr 17 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.332.b01-0.1.ea
d67260
- Update to shenandoah-jdk8u332-b01 (EA)
d67260
- Update release notes for shenandoah-8u332-b01.
d67260
- Switch to EA mode.
d67260
- Remove JDK-8279077 patch now upstream.
d67260
- Related: rhbz#2047536
d67260
d67260
* Mon Feb 28 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b06-10
d67260
- Add JDK-8275535 patch to fix LDAP authentication issue.
d67260
- Resolves: rhbz#2053285
d67260
d67260
* Mon Feb 28 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b06-9
d67260
- Detect NSS at runtime for FIPS detection
d67260
- Resolves: rhbz#2052828
d67260
d67260
* Mon Feb 21 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b06-8
d67260
- Refactor build functions so we can build just HotSpot without any attempt at installation.
d67260
- Introduce architecture restriction logic for the gdb test. (RH2041970)
d67260
- Pass compiler flags to the ADLC build (JDK-8281098)
d67260
- Adjust JDK8199936/PR3533 -mstackrealign patch to instead pass -mincoming-stack-boundary=2 -mpreferred-stack-boundary=4
d67260
- Explicitly list JIT architectures rather than relying on those with slowdebug builds
d67260
- Disable the serviceability agent on Zero architectures even when the architecture itself is supported
d67260
- Add backport of JDK-8257794 to fix bogus assert on slowdebug x86-32 Zero builds
d67260
- Sync minor placement differences with Fedora & RHEL 9
d67260
- Resolves: rhbz#2022815
d67260
d67260
* Mon Jan 31 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b06-7
d67260
- Turn off bootstrapping for slow debug builds, which are particularly slow on ppc64le.
d67260
- Related: rhbz#2022815
d67260
d67260
* Fri Jan 28 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b06-6
d67260
- Reduce disk footprint by removing build artifacts by default.
d67260
- Related: rhbz#1999937
d67260
d67260
* Thu Jan 27 2022 Jayashree Huttanagoudar <gnu.andrew@redhat.com> - 1:1.8.0.322.b06-5
d67260
- Add some diagnostic messages to buildjdk()
d67260
- Add missing chmod instructions to buildjdk()
d67260
d67260
* Thu Jan 27 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b06-5
d67260
- Use the "reverse" build loop (debug first) as the main and only build loop to get more diagnostics.
d67260
- Resolves: rhbz#1966233
d67260
d67260
* Tue Jan 25 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b06-4
d67260
- Install nss.cfg and nss.fips.cfg into portable images.
d67260
- Consistently make use of jdkimage and jreimage variables.
d67260
d67260
* Mon Jan 24 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b06-3
d67260
- Separate crypto policy initialisation from FIPS initialisation, now they are no longer interdependent
d67260
d67260
* Mon Jan 24 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b06-2
d67260
- Fix FIPS issues in native code and with initialisation of java.security.Security
d67260
- Related: rhbz#2039366
d67260
d67260
* Fri Jan 21 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b06-1
d67260
- Update to aarch64-shenandoah-jdk8u322-b06 (EA)
d67260
- Update release notes for 8u322-b06.
d67260
- Switch to GA mode for final release.
d67260
- Resolves: rhbz#2039366
d67260
d67260
* Thu Jan 20 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b05-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u322-b05 (EA)
d67260
- Update release notes for 8u322-b05.
d67260
- Require tzdata 2021e as of JDK-8275766.
d67260
- Update tarball generation script to use git following shenandoah-jdk8u's move to github
d67260
- Resolves: rhbz#2022815
d67260
d67260
* Tue Jan 18 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b04-0.2.ea
d67260
- Add backport of JDK-8279077 to fix crash on ppc64
d67260
- Resolves: rhbz#2030399
d67260
d67260
* Mon Jan 10 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b04-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u322-b04 (EA)
d67260
- Update release notes for 8u322-b04.
d67260
- Require tzdata 2021c as of JDK-8274407.
d67260
- Related: rhbz#2022815
d67260
d67260
* Fri Jan 07 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b03-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u322-b03 (EA)
d67260
- Update release notes for 8u322-b03.
d67260
- Related: rhbz#2022815
d67260
d67260
* Fri Dec 17 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b02-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u322-b02 (EA)
d67260
- Update release notes for 8u322-b02.
d67260
- Related: rhbz#2022815
d67260
d67260
* Tue Dec 14 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.322.b01-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u322-b01 (EA)
d67260
- Update release notes for 8u322-b01.
d67260
- Switch to EA mode.
d67260
- Related: rhbz#2022815
d67260
d67260
* Tue Dec 14 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.322.b01-0.1.ea
d67260
- Typo correction to the previous commit for restructuring the build.
d67260
d67260
* Mon Dec 06 2021 Severin Gehwolf <sgehwolf@redhat.com> - 1:1.8.0.312.b07-5
d67260
- Use 'sql:' prefix in nss.fips.cfg as F35+ no longer ship the legacy
d67260
  secmod.db file as part of nss
d67260
- Resolves: rhbz#2023532
d67260
d67260
* Mon Nov 22 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.312.b07-4
d67260
- Fixed warnings for bogus date and macro expansion in comment line.
d67260
d67260
* Mon Oct 25 2021 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.312.b07-3
d67260
- added and enabled nss.cfg (source11: nss.cfg.in + patch1000: rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch)
d67260
- added and enabled fips patches and nss.fips.cfg
d67260
- added and enabled source15: TestSecurityProperties.java test
d67260
- enabled patch534: rh1648246-always_instruct_vm_to_assume_multiple_processors_are_available.patch
d67260
- enabled patch539: pr2888-openjdk_should_check_for_system_cacerts_database_eg_etc_pki_java_cacerts.patch
d67260
- source17: nss.fips.cfg.in,patch1001: rh1655466-global_crypto_and_fips.patch
d67260
  patch1001: rh1655466-global_crypto_and_fips.patch
d67260
  patch1002: rh1818909-fips_default_keystore_type.patch patch1004: rh1860986-disable_tlsv1.3_in_fips_mode.patch
d67260
  patch1005: rh1915071-always_initialise_configurator_access.patch patch1006: rh1929465-improve_system_FIPS_detection-root.patch
d67260
  patch1007: rh1929465-improve_system_FIPS_detection-jdk.patch
d67260
  patch1008: rh1996182-login_to_nss_software_token.patch patch1011: rh1991003-enable_fips_keys_import.patch
d67260
  patch580: jdk8195607-pr3776-rh1760437-nss_sqlite_db_config.patch
d67260
- Disable FIPS mode detection using NSS in favour of using /proc/sys/crypto/fips_enabled for now, so we don't link against NSS
d67260
-- effectively disabled Patch1008: rh1929465-improve_system_FIPS_detection.patch by settng --enable-sysconf-nss to --disable-sysconf-nss
d67260
-- the enable-sysconf-nss was bringing in hard depndence on nss. Without nss, even in non fips, jvm had not even started
d67260
- introduced ssbd_arches to have properly tested alt-java
d67260
-- added forgotten test for alt-java
d67260
- removed bad redeclaration of fastdebug_arches
d67260
- made TestECDSA non fatal, started to fail. Locally passed. TODO, fix
d67260
d67260
* Mon Oct 25 2021 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.312.b07-2
d67260
- cacerts symlink is resolved before passed to configure
d67260
- https://issues.redhat.com/browse/OPENJDK-487
d67260
d67260
* Fri Oct 15 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.312.b07-1
d67260
- Update to aarch64-shenandoah-jdk8u312-b07 (EA)
d67260
- Update release notes for 8u312-b07.
d67260
- Switch to GA mode for final release.
d67260
- This tarball is embargoed until 2021-10-19 @ 1pm PT.
d67260
- Resolves: rhbz#2011826
d67260
d67260
* Mon Oct 04 2021 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.302.b08-2
d67260
- fixed bugzilla component. It was pointing to java-x-vendor-portable due to recent rename
d67260
d67260
* Mon Aug 16 2021 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.302.b08-1
d67260
- renamed to java-1.8.0-openjdk-portable
d67260
- adapted pacakges to not contain double portbale in name
d67260
d67260
* Fri Jul 16 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.302.b08-0
d67260
- Update to aarch64-shenandoah-jdk8u302-b08 (EA)
d67260
- Update release notes for 8u302-b08.
d67260
- Switch to GA mode for final release.
d67260
- This tarball is embargoed until 2021-07-20 @ 1pm PT.
d67260
- added forgotten patch107 s390-8214206_fix.patch
d67260
d67260
* Thu Jul 01 2021 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.302.b03-0.1.ea
d67260
- returned two wrongly removed patches
d67260
- returned and applied patch541 rh1684077-openjdk_should_depend_on_pcsc-lite-libs_instead_of_pcsc-lite-devel.patch
d67260
- returned and applied patch12 jdk8186464-rh1433262-zip64_failure.patch
d67260
d67260
* Sun Jun 27 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.302.b03-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u302-b03 (EA)
d67260
- Update release notes for 8u302-b03.
d67260
- Resolves: rhbz#1967812
d67260
d67260
* Fri Apr 09 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.292.b10-1
d67260
- Add CVE numbers.
d67260
- Require tzdata 2021a due to JDK-8260356
d67260
- Resolves: rhbz#1938201
d67260
d67260
* Thu Apr 08 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.292.b10-0
d67260
- Update to aarch64-shenandoah-jdk8u292-b10 (GA)
d67260
- Update release notes for 8u292-b10.
d67260
- This tarball is embargoed until 2021-04-20 @ 1pm PT.
d67260
- Resolves: rhbz#1938201
d67260
d67260
* Thu Apr 08 2021 Stephan Bergmann <sbergman@redhat.com> - 1:1.8.0.292.b10-0
d67260
- Hardcode /usr/sbin/alternatives for Flatpak builds
d67260
- Resolves: rhbz#1967813
d67260
d67260
* Tue Mar 30 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.292.b09-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u292-b09 (EA)
d67260
- Update release notes for 8u292-b09.
d67260
- Resolves: rhbz#1938081
d67260
d67260
* Sat Mar 27 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.292.b08-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u292-b08 (EA)
d67260
- Update release notes for 8u292-b08.
d67260
- Resolves: rhbz#1938081
d67260
d67260
* Thu Mar 25 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.292.b07-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u292-b07 (EA)
d67260
- Update release notes for 8u292-b07.
d67260
- Resolves: rhbz#1938081
d67260
d67260
* Mon Mar 22 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.292.b06-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u292-b06 (EA)
d67260
- Update release notes for 8u292-b06.
d67260
- Require tzdata 2020f due to JDK-8259048
d67260
- Resolves: rhbz#1938081
d67260
d67260
* Mon Mar 15 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.292.b05-0.1.ea
d67260
- Remove patch s390-8214206_fix.patch as portable is not built for s390.
d67260
d67260
* Mon Mar 15 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.292.b05-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u292-b05-shenandoah-merge-2021-03-11 (EA).
d67260
- Update release notes for 8u292-b05-shenandoah-merge-2021-03-11.
d67260
d67260
* Mon Mar 08 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.292.b05-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u292-b05 (EA)
d67260
- Update release notes for 8u292-b05.
d67260
d67260
* Fri Mar 05 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.292.b04-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u292-b04 (EA)
d67260
- Update release notes for 8u292-b04.
d67260
d67260
* Thu Mar 04 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.292.b03-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u292-b03 (EA)
d67260
- Update release notes for 8u292-b03.
d67260
d67260
* Tue Mar 02 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.292.b02-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u292-b02 (EA)
d67260
- Update release notes for 8u292-b02.
d67260
d67260
* Fri Feb 12 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.292.b01-0.0.ea
d67260
- Update tzdata-java from 2020b to 2021a
d67260
d67260
* Fri Feb 12 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.292.b01-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u292-b01 (EA)
d67260
- Update release notes for 8u292-b01.
d67260
- Switch to EA mode.
d67260
d67260
* Thu Feb 4 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.282.b08-4
d67260
- Changes to generate sha256sum for each linux-portable build artifacts inside RPM
d67260
d67260
* Mon Jan 25 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.282.b08-3
d67260
- Cleanup package summary for fastdebug and slowdebug.
d67260
- Resolves: rhbz#1908963
d67260
d67260
* Mon Jan 25 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.282.b08-2
d67260
- Cleanup package descriptions and version number placement.
d67260
- Resolves: rhbz#1908963
d67260
d67260
* Mon Jan 18 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.282.b08-1
d67260
- Fix to address the extra src.zip bundled inside jdk tarball.
d67260
d67260
* Sat Jan 16 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.282.b08-0
d67260
- Update to aarch64-shenandoah-jdk8u282-b08 (GA)
d67260
- Update release notes for 8u282-b08.
d67260
- This tarball is embargoed until 2021-01-19 @ 1pm PT.
d67260
- Resolves: rhbz#1908963
d67260
d67260
* Fri Jan 15 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.282.b07-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u282-b07 (EA)
d67260
- Update release notes for 8u282-b07.
d67260
- Fix placement issue in release notes, caught by comparing with vanilla version.
d67260
- Resolves: rhbz#1903904
d67260
d67260
* Wed Jan 13 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.282.b06-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u282-b06 (EA)
d67260
- Update release notes for 8u282-b06.
d67260
- Resolves: rhbz#1903903
d67260
d67260
* Mon Jan 11 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.282.b05-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u282-b05 (EA)
d67260
- Update release notes for 8u282-b05 and make some minor corrections.
d67260
- Resolves: rhbz#1903903
d67260
d67260
* Fri Jan 08 2021 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.282.b04-0.1.ea
d67260
- added patch600, rh1750419-redhat_alt_java.patch
d67260
- Replaced alt-java palceholder by real pathced alt-java
d67260
- remove patch529 rh1566890-CVE_2018_3639-speculative_store_bypass.patch
d67260
- remove patch531 rh1566890-CVE_2018_3639-speculative_store_bypass_toggle.patch
d67260
- both suprassed by new patch
d67260
- Resolves: rhbz#1750419
d67260
d67260
* Wed Jan 06 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.282.b04-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u282-b04 (EA)
d67260
- Update release notes for 8u282-b04.
d67260
- Remove upstreamed patch PR3519
d67260
- Resolves: rhbz#1903903
d67260
d67260
* Sat Jan 02 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.282.b03-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u282-b03 (EA)
d67260
- Update release notes for 8u282-b03.
d67260
- Resolves: rhbz#1903903
d67260
d67260
* Wed Dec 23 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.282.b02-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u282-b02 (EA)
d67260
- Resolves: rhbz#1903903
d67260
d67260
* Tue Dec 22 2020 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.282.b01-0.0.ea
d67260
- Remove upstreamed JDK-8252395 & JDK-8252975.
d67260
d67260
* Tue Dec 22 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.282.b01-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u282-b01 (EA)
d67260
- Update release notes for 8u282-b01.
d67260
- Switch to EA mode.
d67260
- Require tzdata 2020b due to resource changes in JDK-8254177
d67260
- Remove PR3601, covered upstream by JDK-8062808.
d67260
- Remove upstreamed JDK-8197981/PR3548, JDK-8062808/PR3548, JDK-8254177 & JDK-8215727.
d67260
- Resolves: rhbz#1903903
d67260
d67260
* Wed Dec 09 2020 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.275.b01-3
d67260
- Included patch to handle '--without fastdebug' option to mockbuild
d67260
d67260
* Wed Dec 09 2020 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.275.b01-2
d67260
- Align fastdebug/slowdebug changes with upstream rhel-8.4.0 spec
d67260
d67260
* Tue Dec 01 2020 Jiri Vanek <jvanekf@redhat.com> - 1:1.8.0.275.b01-1
d67260
- added br of listdc++-static
d67260
- removed patch998 rh1649731-allow_to_build_on_rhel6_with_stdcpplib_autotools_2_63.patch
d67260
- removed patch999 gcc-4.4.7-x86-32-siphash64.patch
d67260
- initial on-el7 build (more tuning expected)
d67260
d67260
* Fri Nov 06 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.275.b01-0
d67260
- Update to aarch64-shenandoah-jdk8u275-b01 (GA)
d67260
- Update release notes for 8u275.
d67260
- Resolves: rhbz#1895062
d67260
d67260
* Wed Oct 21 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b10-3
d67260
- Add backport of JDK-8215727: "Restore JFR thread sampler loop to old / previous behaviour"
d67260
- Resolves: rhbz#1876665
d67260
d67260
* Wed Oct 21 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b10-2
d67260
- Remove the 64-bit siphash test which fails to compile on x86-32 debug builds with gcc 4.4.7 in RHEL 6
d67260
- Resolves: rhbz#1876665
d67260
d67260
* Tue Oct 20 2020 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.272.b10-1
d67260
- Added patch to apply tzdata 2020b
d67260
d67260
* Sat Oct 17 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b10-0
d67260
- Update to aarch64-shenandoah-jdk8u272-b10.
d67260
- Switch to GA mode for final release.
d67260
- Update release notes for 8u272 release.
d67260
- Add backport of JDK-8254177 to update to tzdata 2020b
d67260
- Require tzdata 2020b due to resource changes in JDK-8254177
d67260
- Delay tzdata 2020b dependency until tzdata update has shipped.
d67260
- Adjust JDK-8062808/PR3548 following constantPool.hpp context change in JDK-8243302
d67260
- Adjust PR3593 following g1StringDedupTable.cpp context change in JDK-8240124 & JDK-8244955
d67260
- This tarball is embargoed until 2020-10-20 @ 1pm PT.
d67260
- Resolves: rhbz#1876665
d67260
d67260
* Thu Oct 15 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b09-0.1.ea
d67260
- Include a test in the RPM to check the build has the correct vendor information.
d67260
- Use 'oj_' prefix on new vendor globals to avoid a conflict with RPM's vendor value.
d67260
- Improve quoting of vendor name
d67260
- Resolves: rhbz#1876665
d67260
d67260
* Thu Oct 15 2020 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.272.b09-0.1.ea
d67260
- Set vendor property and vendor URLs
d67260
- Made URLs to be preconfigured by OS
d67260
- Resolves: rhbz#1876665
d67260
d67260
* Wed Oct 14 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b09-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u272-b09 (EA).
d67260
- Resolves: rhbz#1876665
d67260
d67260
* Tue Oct 13 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b08-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u272-b08 (EA).
d67260
- Resolves: rhbz#1876665
d67260
d67260
* Mon Oct 12 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b07-0.5.ea
d67260
- Enable JFR on x86, now we have JDK-8252096: Shenandoah: adjust SerialPageShiftCount for x86_32 and JFR
d67260
- Resolves: rhbz#1876665
d67260
d67260
* Wed Sep 23 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b07-0.4.ea
d67260
- Re-organise S/390 patches for upstream submission, separating 8u upstream from Shenandoah fixes.
d67260
- Add new formatting case found in memprofiler.cpp on debug builds to PR3593 patch.
d67260
d67260
* Wed Sep 23 2020 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.272.b07-0.3.ea
d67260
- Placed upstream patches JDK-8252395 and JDK-8252975 under separate section
d67260
- So that these patches can be dropped easily once they are available in 8u282 GA release
d67260
d67260
* Thu Sep 17 2020 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.272.b07-0.2.ea
d67260
- Added upstream patches for JDK-8252395 and JDK-8252975
d67260
- JDK-8252395: To ensure debuginfo files get properly copied to the images directory
d67260
- JDK-8252975: Is to fix the build failure due to JDK-8252395
d67260
d67260
* Tue Sep 08 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b07-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u272-b07.
d67260
d67260
* Thu Sep 03 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b06-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u272-b06.
d67260
d67260
* Wed Sep 02 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b05-0.1.ea
d67260
- Add additional s390 log2_intptr case in shenandoahUtils.cpp introduced by JDK-8245464
d67260
d67260
* Wed Sep 02 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b05-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u272-b05-shenandoah-merge-2020-08-28.
d67260
d67260
* Thu Aug 27 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b05-0.0.ea
d67260
- Add additional s390 size_t case in g1ConcurrentMarkObjArrayProcessor.cpp introduced by JDK-8057003
d67260
d67260
* Thu Aug 27 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b05-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u272-b05.
d67260
- Fix context in JDK-8186464/RH1433262 patch, following JDK-8078334 @randomness tag addition.
d67260
d67260
* Wed Aug 19 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b04-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u272-b04.
d67260
d67260
* Mon Aug 17 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b03-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u272-b03.
d67260
d67260
* Sun Aug 09 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b02-0.0.ea
d67260
- Change target from 'zip-docs' to 'docs-zip', which is the naming used upstream.
d67260
d67260
* Sun Aug 09 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b02-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u272-b02.
d67260
- Remove JDK-8154313 backport now applied upstream.
d67260
d67260
* Sat Aug 01 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b01-0.0.ea
d67260
- JFR must now be explicitly disabled when unwanted (e.g. x86), following switch of upstream default.
d67260
d67260
* Sat Aug 01 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.272.b01-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u272-b01.
d67260
- Switch to EA mode.
d67260
- Remove ZipConstants change from JDK-8186464 backport, now provided upstream by JDK-8075774
d67260
d67260
* Mon Jul 27 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.265.b01-0
d67260
- Update to aarch64-shenandoah-jdk8u265-b01.
d67260
- Update release notes for 8u265 release.
d67260
- Resolves: rhbz#1860453
d67260
d67260
* Sun Jul 12 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b10-0
d67260
- Introduce jfr_arches for architectures which support JFR.
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Sun Jul 12 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b10-0
d67260
- Update to aarch64-shenandoah-jdk8u262-b10.
d67260
- Switch to GA mode for final release.
d67260
- Update release notes for 8u262 release.
d67260
- Fix typo in jfr_arches which leads to ppc64 being wrongly excluded.
d67260
- Split JDK-8042159 patch into per-repo patches as upstream.
d67260
- Update JDK-8042159 JDK patch to apply after JDK-8238002 changes to Awt2dLibraries.gmk
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Sat Jul 11 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b09-0.3.ea
d67260
- Restructure the build so a minimal initial build is then used for the final build (with docs)
d67260
- This reduces pressure on the system JDK and ensures the JDK being built can do a full build
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Fri Jul 10 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b09-0.2.ea
d67260
- Update to aarch64-shenandoah-jdk8u262-b09-shenandoah-merge-2020-07-03
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Wed Jul 08 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b09-0.2.ea
d67260
- Sync alt-java support with java-11-openjdk version.
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Wed Jul 08 2020 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.262.b09-0.2.ea
d67260
- Created copy of java as alt-java and adapted alternatives and man pages
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Wed Jul 08 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b09-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u262-b09.
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Wed Jul 08 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b08-0.3.ea
d67260
- Update to aarch64-shenandoah-jdk8u262-b08.
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Tue Jul 07 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b07-0.2.ea
d67260
- Update to aarch64-shenandoah-jdk8u262-b07-shenandoah-merge-2020-06-18.
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Fri Jul 03 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b07-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u262-b07.
d67260
- Require tzdata 2020a so system tzdata matches resource updates in b07
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Mon Jun 08 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b06-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u262-b06.
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Mon Jun 08 2020 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:1.8.0.262.b05-0.4.ea
d67260
- Removed patch jdk8243541-rh1838229-tzdata2020a.patch
d67260
- Portabel builds use upstream tzddb.dat, and we expect it to be synced with jdk code
d67260
d67260
* Mon Jun 08 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b05-0.4.ea
d67260
- Backport JDK-8186464 so ZIP64 archives < 4GB can be read.
d67260
- Resolves: rhbz#1433262
d67260
d67260
* Mon Jun 08 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b05-0.3.ea
d67260
- Update to aarch64-shenandoah-jdk8u262-b05-shenandoah-merge-2020-06-04.
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Mon Jun 08 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b05-0.2.ea
d67260
- Backport JDK-8243541 & require tzdata 2020a as latest tzdata package needs resource updates
d67260
- Resolves: rhbz#1838229
d67260
d67260
* Sun Jun 07 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b05-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u262-b05.
d67260
- Remove backports of JDK-8227269 & JDK-8241750 included upstream in 8u262-b05.
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Sun Jun 07 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b04-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u262-b04.
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Sun Jun 07 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b03-0.2.ea
d67260
- Update to aarch64-shenandoah-jdk8u262-b03-shenandoah-merge-2020-05-20.
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Sat Jun 06 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b03-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u262-b03.
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Sat Jun 06 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b02-0.2.ea
d67260
- Enable JFR in our builds, ahead of upstream default.
d67260
- Only enable JFR for JIT builds, as it is not supported with Zero.
d67260
- Turn off JFR on x86 for now due to assert(SerializePageShiftCount == count) crash.
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Wed Jun 03 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b02-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u262-b02.
d67260
- Resolves: rhbz#1838811
d67260
d67260
* Sun May 24 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.262.b01-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u262-b01.
d67260
- Switch to EA mode.
d67260
- Adjust JDK-8143245/PR3548 patch following context changes due to JDK-8203287 for JFR
d67260
d67260
* Sat May 23 2020 Andrew John Hughes <gnu.andrew@redhat.com> - 1:1.8.0.252.b09-4
d67260
- Add backports of JDK-8227269 & JDK-8241750 to resolve slow class loading with JDWP enabled.
d67260
- Resolves: rhbz#1751985
d67260
d67260
* Tue Apr 14 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.252.b09-2
d67260
- Add release notes.
d67260
- Resolves: rhbz#1810557
d67260
d67260
* Sun Apr 12 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.252.b09-1
d67260
- Make use of --with-extra-asflags introduced in jdk8u252-b01.
d67260
- Resolves: rhbz#1810557
d67260
d67260
* Mon Apr 06 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.252.b09-0
d67260
- Update to aarch64-shenandoah-jdk8u252-b09.
d67260
- Switch to GA mode for final release.
d67260
- Resolves: rhbz#1810557
d67260
d67260
* Fri Mar 27 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.252.b08-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u252-b08.
d67260
- Resolves: rhbz#1810557
d67260
d67260
* Tue Mar 24 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.252.b07-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u252-b07.
d67260
- Resolves: rhbz#1810557
d67260
d67260
* Mon Mar 16 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.252.b06-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u252-b06.
d67260
- Resolves: rhbz#1810557
d67260
d67260
* Fri Feb 28 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.252.b05-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u252-b05.
d67260
- Resolves: rhbz#1810557
d67260
d67260
* Mon Feb 24 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.252.b04-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u252-b04.
d67260
- Resolves: rhbz#1810557
d67260
d67260
* Wed Feb 19 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.252.b03-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u252-b03.
d67260
- Adjust PR2974/RH1337583 & PR3083/RH1346460 following context changes in JDK-8230978
d67260
- Resolves: rhbz#1810557
d67260
d67260
* Tue Feb 04 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.252.b02-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u252-b02.
d67260
- Resolves: rhbz#1810557
d67260
d67260
* Mon Jan 27 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.252.b01-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u252-b01.
d67260
- Switch to EA mode.
d67260
- Adjust JDK-8199936/PR3533 patch following JDK-8227397 configure change
d67260
- Resolves: rhbz#1810557
d67260
d67260
* Tue Jan 21 2020 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.242.b08-3
d67260
- get rid of openjdkportable in favour of el
d67260
d67260
* Tue Jan 21 2020 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.242.b08-2
d67260
- renamed static to more accurate portable
d67260
d67260
* Wed Jan 15 2020 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.242.b08-1
d67260
- sync with rhel 8.1
d67260
d67260
* Tue Oct 15 2019 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.232.b09-0
d67260
- Update to aarch64-shenandoah-jdk8u232-b09.
d67260
- Switch to GA mode for final release.
d67260
- Remove PR1834/RH1022017 which is now handled by JDK-8228825 upstream.
d67260
d67260
* Mon Oct 07 2019 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.232.b01-0.0.ea
d67260
- Update to aarch64-shenandoah-jdk8u232-b01.
d67260
- Switch to EA mode.
d67260
- Drop JDK-8210761/RH1632174 as now upstream.
d67260
- Drop JDK-8223219 as now upstream.
d67260
d67260
* Tue Jul 23 2019 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.222.b10-4
d67260
- for release, build debugsymbols to special archive
d67260
d67260
* Tue Jul 23 2019 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.222.b10-3
d67260
- filtered out -g from extra flags
d67260
d67260
* Thu Jul 11 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.222.b10-1
d67260
- Update to aarch64-shenandoah-jdk8u222-b10.
d67260
- Resolves: rhbz#1724452
d67260
d67260
* Mon Jul 08 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.222.b09-2
d67260
- Use normal_suffix for Javadoc zip filename to copy, as there is is no debug version.
d67260
- Resolves: rhbz#1724452
d67260
d67260
* Mon Jul 08 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.222.b09-2
d67260
- Provide Javadoc debug subpackages for now, but populate them from the normal build.
d67260
- Resolves: rhbz#1724452
d67260
d67260
* Mon Jul 08 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.222.b09-1
d67260
- Update to aarch64-shenandoah-jdk8u222-b09.
d67260
- Switch to GA mode for final release.
d67260
- Resolves: rhbz#1724452
d67260
d67260
* Tue Jul 02 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.222.b08-0.1.ea
d67260
- Update to aarch64-shenandoah-jdk8u222-b08.
d67260
- Adjust PR3083/RH134640 to apply after JDK-8182999
d67260
- Resolves: rhbz#1724452
d67260
d67260
* Tue Jul 02 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:1.8.0.222.b07-0.3.ea
d67260
- Include 'ea' designator in Release when appropriate.
d67260
- Resolves: rhbz#1724452
d67260
d67260
* Wed Jun 26 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:1.8.0.222.b07-2
d67260
- Don't produce javadoc/javadoc-zip sub packages for the debug variant build.
d67260
- Don't perform a bootcycle build for the debug variant build.
d67260
- Resolves: rhbz#1724452
d67260
d67260
* Tue Jun 25 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.222.b07-1
d67260
- Update to aarch64-shenandoah-jdk8u222-b07 and Shenandoah merge 2019-06-13.
d67260
- Resolves: rhbz#1724452
d67260
d67260
* Fri Jun 14 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.222.b06-1
d67260
- Update to aarch64-shenandoah-jdk8u222-b06.
d67260
- Resolves: rhbz#1724452
d67260
d67260
* Thu Jun 06 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.222.b05-1
d67260
- Update to aarch64-shenandoah-jdk8u222-b05.
d67260
- Resolves: rhbz#1724452
d67260
d67260
* Sat May 25 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.222.b04-1
d67260
- Update to aarch64-shenandoah-jdk8u222-b04.
d67260
- Drop remaining JDK-8210425/RH1632174 patch now AArch64 part is upstream.
d67260
- Resolves: rhbz#1705328
d67260
d67260
* Wed May 22 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.222.b03-1
d67260
- Handle milestone as variables so we can alter it easily and set the docs zip filename appropriately.
d67260
- Drop unused use_shenandoah_hotspot variable.
d67260
- Resolves: rhbz#1705328
d67260
d67260
* Wed May 22 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.222.b03-1
d67260
- Update to aarch64-shenandoah-jdk8u222-b03.
d67260
- Set milestone to "ea" as this is not the final release.
d67260
- Drop 8210425 patches applied upstream. Still need to add AArch64 version in aarch64/shenandoah-jdk8u.
d67260
- Re-generate JDK-8141570 & JDK-8143245 patches due to 8210425 zeroshark.make changes.
d67260
- Resolves: rhbz#1705328
d67260
d67260
* Mon May 13 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.222.b02-1
d67260
- Update to aarch64-shenandoah-jdk8u222-b02.
d67260
- Drop 8064786/PR3599 & 8210416/RH1632174 as applied upstream (8064786 silently in 8176100).
d67260
- Resolves: rhbz#1705328
d67260
d67260
* Thu May 02 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.222.b01-1
d67260
- Update to aarch64-shenandoah-jdk8u222-b01.
d67260
- Refactor PR2888 after inclusion of 8129988 upstream. Now includes PR3575.
d67260
- Drop 8171000, 8197546 & PR3634 as applied upstream.
d67260
- Adjust 8214206 fix for S390 as BinaryMagnitudeSeq moved to shenandoahNumberSeq.cpp
d67260
- Resolves: rhbz#1705328
d67260
d67260
* Thu Apr 11 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.212.b04-1
d67260
- Update to aarch64-shenandoah-jdk8u212-b04.
d67260
- Resolves: rhbz#1693468
d67260
d67260
* Thu Apr 11 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.212.b03-0
d67260
- Update to aarch64-shenandoah-jdk8u212-b03.
d67260
- Resolves: rhbz#1693468
d67260
d67260
* Tue Apr 09 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.212.b02-0
d67260
- Update to aarch64-shenandoah-jdk8u212-b02.
d67260
- Remove patches included upstream
d67260
  - JDK-8197429/PR3546/RH153662{2,3}
d67260
  - JDK-8184309/PR3596
d67260
- Re-generate patches
d67260
  - JDK-8203030
d67260
- Add casts to resolve s390 ambiguity in calls to log2_intptr
d67260
- Resolves: rhbz#1693468
d67260
d67260
* Sun Apr 07 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.202.b08-0
d67260
- Update to aarch64-shenandoah-jdk8u202-b08.
d67260
- Remove patches included upstream
d67260
  - JDK-8211387/PR3559
d67260
  - JDK-8073139/PR1758/RH1191652
d67260
  - JDK-8044235
d67260
  - JDK-8131048/PR3574/RH1498936
d67260
  - JDK-8164920/PR3574/RH1498936
d67260
- Resolves: rhbz#1693468
d67260
d67260
* Thu Apr 04 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.201.b13-0
d67260
- Update to aarch64-shenandoah-jdk8u201-b13.
d67260
- Drop JDK-8160748 & JDK-8189170 AArch64 patches now applied upstream.
d67260
- Resolves: rhbz#1693468
d67260
d67260
* Tue Apr 02 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:1.8.0.201.b09-3
d67260
- Update patch for RH1566890.
d67260
  - Renamed rh1566890_speculative_store_bypass_so_added_more_per_task_speculation_control_CVE_2018_3639 to
d67260
    rh1566890-CVE_2018_3639-speculative_store_bypass.patch
d67260
  - Added dependent patch,
d67260
    rh1566890-CVE_2018_3639-speculative_store_bypass_toggle.patch
d67260
- Resolves: rhbz#1693468
d67260
d67260
* Tue Mar 12 2019 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.201.b09-2
d67260
- name adapted to current tag
d67260
d67260
* Thu Feb 28 2019 Jiri Vanek jvanek@redhat.com - 1:1.8.0.201.b09-2
d67260
- Replaced pcsc-lite-devel (which is in optional channel) with pcsc-lite-libs.
d67260
- added rh1684077-openjdk_should_depend_on_pcsc-lite-libs_instead_of_pcsc-lite-devel.patch to make jdk work with pcsc
d67260
d67260
* Tue Feb 26 2019 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.201.b09-0
d67260
- cripled rpms original specto roduce only portable build
d67260
- Resolves: rhbz#1661577