Blame SOURCES/java-11-openjdk-portable.specfile

aa5196
# debug_package %%{nil} is portable-jdks specific
aa5196
%define  debug_package %{nil}
aa5196
aa5196
# RPM conditionals so as to be able to dynamically produce
aa5196
# slowdebug/release builds. See:
aa5196
# http://rpm.org/user_doc/conditional_builds.html
aa5196
#
aa5196
# Examples:
aa5196
#
aa5196
# Produce release, fastdebug *and* slowdebug builds on x86_64 (default):
aa5196
# $ rpmbuild -ba java-11-openjdk.spec
aa5196
#
aa5196
# Produce only release builds (no slowdebug builds) on x86_64:
aa5196
# $ rpmbuild -ba java-11-openjdk.spec --without slowdebug --without fastdebug
aa5196
#
aa5196
# Only produce a release build on x86_64:
aa5196
# $ rhpkg mockbuild --without slowdebug --without fastdebug
aa5196
aa5196
# Enable fastdebug builds by default on relevant arches.
aa5196
%bcond_without fastdebug
aa5196
# Enable slowdebug builds by default on relevant arches.
aa5196
%bcond_without slowdebug
aa5196
# Enable release builds by default on relevant arches.
aa5196
%bcond_without release
aa5196
# Enable static library builds by default.
aa5196
%bcond_without staticlibs
aa5196
# Remove build artifacts by default
aa5196
%bcond_with artifacts
aa5196
# Build a fresh libjvm.so for use in a copy of the bootstrap JDK
aa5196
%bcond_without fresh_libjvm
aa5196
# Build with system libraries
aa5196
%bcond_with system_libs
aa5196
aa5196
# Workaround for stripping of debug symbols from static libraries
aa5196
%if %{with staticlibs}
aa5196
%define __brp_strip_static_archive %{nil}
aa5196
%global include_staticlibs 1
aa5196
%else
aa5196
%global include_staticlibs 0
aa5196
%endif
aa5196
aa5196
# Define whether to use the bootstrap JDK directly or with a fresh libjvm.so
aa5196
%if %{with fresh_libjvm}
aa5196
%global build_hotspot_first 1
aa5196
%else
aa5196
%global build_hotspot_first 0
aa5196
%endif
aa5196
aa5196
%if %{with system_libs}
aa5196
%global system_libs 1
aa5196
%global link_type system
aa5196
%global freetype_lib %{nil}
aa5196
%else
aa5196
%global system_libs 0
aa5196
%global link_type bundled
aa5196
%global freetype_lib |libfreetype[.]so.*
aa5196
%endif
aa5196
aa5196
# The -g flag says to use strip -g instead of full strip on DSOs or EXEs.
aa5196
# This fixes detailed NMT and other tools which need minimal debug info.
aa5196
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1520879
aa5196
%global _find_debuginfo_opts -g
aa5196
aa5196
# note: parametrized macros are order-sensitive (unlike not-parametrized) even with normal macros
aa5196
# also necessary when passing it as parameter to other macros. If not macro, then it is considered a switch
aa5196
# see the difference between global and define:
aa5196
# See https://github.com/rpm-software-management/rpm/issues/127 to comments at  "pmatilai commented on Aug 18, 2017"
aa5196
# (initiated in https://bugzilla.redhat.com/show_bug.cgi?id=1482192)
aa5196
%global debug_suffix_unquoted -slowdebug
aa5196
%global fastdebug_suffix_unquoted -fastdebug
aa5196
%global main_suffix_unquoted -main
aa5196
%global staticlibs_suffix_unquoted -staticlibs
aa5196
# quoted one for shell operations
aa5196
%global debug_suffix "%{debug_suffix_unquoted}"
aa5196
%global fastdebug_suffix "%{fastdebug_suffix_unquoted}"
aa5196
%global normal_suffix ""
aa5196
%global main_suffix "%{main_suffix_unquoted}"
aa5196
%global staticlibs_suffix "%{staticlibs_suffix_unquoted}"
aa5196
aa5196
%global debug_warning This package is unoptimised with full debugging. Install only as needed and remove ASAP.
aa5196
%global fastdebug_warning This package is optimised with full debugging. Install only as needed and remove ASAP.
aa5196
%global debug_on unoptimised with full debugging on
aa5196
%global fastdebug_on optimised with full debugging on
aa5196
%global for_fastdebug for packages with debugging on and optimisation
aa5196
%global for_debug for packages with debugging on and no optimisation
aa5196
aa5196
%if %{with release}
aa5196
%global include_normal_build 1
aa5196
%else
aa5196
%global include_normal_build 0
aa5196
%endif
aa5196
aa5196
%if %{include_normal_build}
aa5196
%global normal_build %{normal_suffix}
aa5196
%else
aa5196
%global normal_build %{nil}
aa5196
%endif
aa5196
aa5196
# We have hardcoded list of files, which  is appearing in alternatives, and in files
aa5196
# in alternatives those are slaves and master, very often triplicated by man pages
aa5196
# in files all masters and slaves are ghosted
aa5196
# the ghosts are here to allow installation via query like `dnf install /usr/bin/java`
aa5196
# you can list those files, with appropriate sections: cat *.spec | grep -e --install -e --slave -e post_
aa5196
# TODO - fix those hardcoded lists via single list
aa5196
# Those files must *NOT* be ghosted for *slowdebug* packages
aa5196
# FIXME - if you are moving jshell or jlink or similar, always modify all three sections
aa5196
# you can check via headless and devels:
aa5196
#    rpm -ql --noghost java-11-openjdk-headless-11.0.1.13-8.fc29.x86_64.rpm  | grep bin
aa5196
# == rpm -ql           java-11-openjdk-headless-slowdebug-11.0.1.13-8.fc29.x86_64.rpm  | grep bin
aa5196
# != rpm -ql           java-11-openjdk-headless-11.0.1.13-8.fc29.x86_64.rpm  | grep bin
aa5196
# similarly for other %%{_jvmdir}/{jre,java} and %%{_javadocdir}/{java,java-zip}
aa5196
%define is_release_build() %( if [ "%{?1}" == "%{debug_suffix_unquoted}" -o "%{?1}" == "%{fastdebug_suffix_unquoted}" ]; then echo "0" ; else echo "1"; fi )
aa5196
aa5196
# while JDK is a techpreview(is_system_jdk=0), some provides are turned off. Once jdk stops to be an techpreview, move it to 1
aa5196
# as sytem JDK, we mean any JDK which can run whole system java stack without issues (like bytecode issues, module issues, dependencies...)
aa5196
%global is_system_jdk 0
aa5196
aa5196
%global aarch64         aarch64 arm64 armv8
aa5196
# we need to distinguish between big and little endian PPC64
aa5196
%global ppc64le         ppc64le
aa5196
%global ppc64be         ppc64 ppc64p7
aa5196
# Set of architectures which support multiple ABIs
aa5196
%global multilib_arches %{power64} sparc64 x86_64
aa5196
# Set of architectures for which we build slowdebug builds
aa5196
%global debug_arches    %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} s390x
aa5196
# Set of architectures for which we build fastdebug builds
aa5196
%global fastdebug_arches x86_64 ppc64le aarch64
aa5196
# Set of architectures with a Just-In-Time (JIT) compiler
aa5196
%global jit_arches      %{arm} %{aarch64} %{ix86} %{power64} s390x sparcv9 sparc64 x86_64
aa5196
# Set of architectures which use the Zero assembler port (!jit_arches)
aa5196
%global zero_arches ppc s390
aa5196
# Set of architectures which run a full bootstrap cycle
aa5196
%global bootstrap_arches %{jit_arches}
aa5196
# Set of architectures which support SystemTap tapsets
aa5196
%global systemtap_arches %{jit_arches}
aa5196
# Set of architectures with a Ahead-Of-Time (AOT) compiler
aa5196
%global aot_arches      x86_64 %{aarch64}
aa5196
# Set of architectures which support the serviceability agent
aa5196
%global sa_arches       %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} %{arm}
aa5196
# Set of architectures which support class data sharing
aa5196
# As of JDK-8005165 in OpenJDK 10, class sharing is not arch-specific
aa5196
# However, it does segfault on the Zero assembler port, so currently JIT only
aa5196
%global share_arches    %{jit_arches}
aa5196
# Set of architectures for which we build the Shenandoah garbage collector
aa5196
%global shenandoah_arches x86_64 %{aarch64}
aa5196
# Set of architectures for which we build the Z garbage collector
aa5196
%global zgc_arches x86_64
aa5196
# Set of architectures for which alt-java has SSB mitigation
aa5196
%global ssbd_arches x86_64
aa5196
# Set of architectures where we verify backtraces with gdb
aa5196
# s390x fails on RHEL 7 so we exclude it there
aa5196
%if (0%{?rhel} > 0 && 0%{?rhel} < 8)
aa5196
%global gdb_arches %{arm} %{aarch64} %{ix86} %{power64} sparcv9 sparc64 x86_64 %{zero_arches}
aa5196
%else
aa5196
%global gdb_arches %{jit_arches} %{zero_arches}
aa5196
%endif
aa5196
aa5196
# By default, we build a slowdebug build during main build on JIT architectures
aa5196
%if %{with slowdebug}
aa5196
%ifarch %{debug_arches}
aa5196
%global include_debug_build 1
aa5196
%else
aa5196
%global include_debug_build 0
aa5196
%endif
aa5196
%else
aa5196
%global include_debug_build 0
aa5196
%endif
aa5196
aa5196
# On certain architectures, we compile the Shenandoah GC
aa5196
%ifarch %{shenandoah_arches}
aa5196
%global use_shenandoah_hotspot 1
aa5196
%global shenandoah_feature shenandoahgc
aa5196
%else
aa5196
%global use_shenandoah_hotspot 0
aa5196
%global shenandoah_feature -shenandoahgc
aa5196
%endif
aa5196
aa5196
# On certain architectures, we compile the ZGC
aa5196
%ifarch %{zgc_arches}
aa5196
%global use_zgc_hotspot 1
aa5196
%global zgc_feature zgc
aa5196
%else
aa5196
%global use_zgc_hotspot 0
aa5196
%global zgc_feature -zgc
aa5196
%endif
aa5196
aa5196
# By default, we build a fastdebug build during main build only on fastdebug architectures
aa5196
%if %{with fastdebug}
aa5196
%ifarch %{fastdebug_arches}
aa5196
%global include_fastdebug_build 1
aa5196
%else
aa5196
%global include_fastdebug_build 0
aa5196
%endif
aa5196
%else
aa5196
%global include_fastdebug_build 0
aa5196
%endif
aa5196
aa5196
%if %{include_debug_build}
aa5196
%global slowdebug_build %{debug_suffix}
aa5196
%else
aa5196
%global slowdebug_build %{nil}
aa5196
%endif
aa5196
aa5196
%if %{include_fastdebug_build}
aa5196
%global fastdebug_build %{fastdebug_suffix}
aa5196
%else
aa5196
%global fastdebug_build %{nil}
aa5196
%endif
aa5196
aa5196
# If you disable all builds, then the build fails
aa5196
# Build and test slowdebug first as it provides the best diagnostics
aa5196
%global build_loop %{slowdebug_build} %{fastdebug_build} %{normal_build}
aa5196
aa5196
%if %{include_staticlibs}
aa5196
%global staticlibs_loop %{staticlibs_suffix}
aa5196
%else
aa5196
%global staticlibs_loop %{nil}
aa5196
%endif
aa5196
aa5196
%if 0%{?flatpak}
aa5196
%global bootstrap_build false
aa5196
%else
aa5196
%ifarch %{bootstrap_arches}
aa5196
%global bootstrap_build true
aa5196
%else
aa5196
%global bootstrap_build false
aa5196
%endif
aa5196
%endif
aa5196
aa5196
%if %{include_staticlibs}
aa5196
# Extra target for producing the static-libraries. Separate from
aa5196
# other targets since this target is configured to use in-tree
aa5196
# AWT dependencies: lcms, libjpeg, libpng, libharfbuzz, giflib
aa5196
# and possibly others
aa5196
%global static_libs_target static-libs-image
aa5196
%else
aa5196
%global static_libs_target %{nil}
aa5196
%endif
aa5196
aa5196
# The static libraries are produced under the same configuration as the main
aa5196
# build for portables, as we expect in-tree libraries to be used throughout.
aa5196
# If system libraries are enabled, the static libraries will also use them
aa5196
# which may cause issues.
aa5196
%global bootstrap_targets images %{static_libs_target} legacy-jre-image
aa5196
%global release_targets images docs-zip %{static_libs_target} legacy-jre-image
aa5196
# No docs nor bootcycle for debug builds
aa5196
%global debug_targets images %{static_libs_target} legacy-jre-image
aa5196
# Target to use to just build HotSpot
aa5196
%global hotspot_target hotspot
aa5196
aa5196
# JDK to use for bootstrapping
aa5196
%global bootjdk /usr/lib/jvm/java-%{buildjdkver}-openjdk
aa5196
aa5196
# Disable LTO as this causes build failures at the moment.
aa5196
# See RHBZ#1861401
aa5196
%define _lto_cflags %{nil}
aa5196
aa5196
# Filter out flags from the optflags macro that cause problems with the OpenJDK build
aa5196
# We filter out -O flags so that the optimization of HotSpot is not lowered from O3 to O2
aa5196
# We filter out -Wall which will otherwise cause HotSpot to produce hundreds of thousands of warnings (100+mb logs)
aa5196
# We replace it with -Wformat (required by -Werror=format-security) and -Wno-cpp to avoid FORTIFY_SOURCE warnings
aa5196
# We filter out -fexceptions as the HotSpot build explicitly does -fno-exceptions and it's otherwise the default for C++
aa5196
%global ourflags %(echo %optflags | sed -e 's|-Wall|-Wformat -Wno-cpp|' | sed -r -e 's|-O[0-9]*||')
aa5196
%global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||')
aa5196
%global ourldflags %{__global_ldflags}
aa5196
aa5196
# With disabled nss is NSS deactivated, so NSS_LIBDIR can contain the wrong path
aa5196
# the initialization must be here. Later the pkg-config have buggy behavior
aa5196
# looks like openjdk RPM specific bug
aa5196
# Always set this so the nss.cfg file is not broken
aa5196
%global NSS_LIBDIR %(pkg-config --variable=libdir nss)
aa5196
aa5196
# In some cases, the arch used by the JDK does
aa5196
# not match _arch.
aa5196
# Also, in some cases, the machine name used by SystemTap
aa5196
# does not match that given by _target_cpu
aa5196
%ifarch x86_64
aa5196
%global archinstall amd64
aa5196
%global stapinstall x86_64
aa5196
%endif
aa5196
%ifarch ppc
aa5196
%global archinstall ppc
aa5196
%global stapinstall powerpc
aa5196
%endif
aa5196
%ifarch %{ppc64be}
aa5196
%global archinstall ppc64
aa5196
%global stapinstall powerpc
aa5196
%endif
aa5196
%ifarch %{ppc64le}
aa5196
%global archinstall ppc64le
aa5196
%global stapinstall powerpc
aa5196
%endif
aa5196
%ifarch %{ix86}
aa5196
%global archinstall i686
aa5196
%global stapinstall i386
aa5196
%endif
aa5196
%ifarch ia64
aa5196
%global archinstall ia64
aa5196
%global stapinstall ia64
aa5196
%endif
aa5196
%ifarch s390
aa5196
%global archinstall s390
aa5196
%global stapinstall s390
aa5196
%endif
aa5196
%ifarch s390x
aa5196
%global archinstall s390x
aa5196
%global stapinstall s390
aa5196
%endif
aa5196
%ifarch %{arm}
aa5196
%global archinstall arm
aa5196
%global stapinstall arm
aa5196
%endif
aa5196
%ifarch %{aarch64}
aa5196
%global archinstall aarch64
aa5196
%global stapinstall arm64
aa5196
%endif
aa5196
# 32 bit sparc, optimized for v9
aa5196
%ifarch sparcv9
aa5196
%global archinstall sparc
aa5196
%global stapinstall %{_target_cpu}
aa5196
%endif
aa5196
# 64 bit sparc
aa5196
%ifarch sparc64
aa5196
%global archinstall sparcv9
aa5196
%global stapinstall %{_target_cpu}
aa5196
%endif
aa5196
# Need to support noarch for srpm build
aa5196
%ifarch noarch
aa5196
%global archinstall %{nil}
aa5196
%global stapinstall %{nil}
aa5196
%endif
aa5196
aa5196
# always off for portable builds
aa5196
%ifarch %{systemtap_arches}
aa5196
%global with_systemtap 0
aa5196
%else
aa5196
%global with_systemtap 0
aa5196
%endif
aa5196
aa5196
# New Version-String scheme-style defines
aa5196
%global featurever 11
aa5196
%global interimver 0
aa5196
%global updatever 19
aa5196
%global patchver 0
aa5196
# buildjdkver is usually same as %%{featurever},
aa5196
# but in time of bootstrap of next jdk, it is featurever-1,
aa5196
# and this it is better to change it here, on single place
aa5196
%global buildjdkver %{featurever}
aa5196
# Add LTS designator for RHEL builds
aa5196
%if 0%{?rhel}
aa5196
  %global lts_designator "LTS"
aa5196
  %global lts_designator_zip -%{lts_designator}
aa5196
%else
aa5196
  %global lts_designator ""
aa5196
  %global lts_designator_zip ""
aa5196
%endif
aa5196
aa5196
# Define vendor information used by OpenJDK
aa5196
%global oj_vendor Red Hat, Inc.
aa5196
%global oj_vendor_url https://www.redhat.com/
aa5196
# Define what url should JVM offer in case of a crash report
aa5196
# order may be important, epel may have rhel declared
aa5196
%if 0%{?epel}
aa5196
%global oj_vendor_bug_url  https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora%20EPEL&component=%{component}&version=epel%{epel}
aa5196
%else
aa5196
%if 0%{?fedora}
aa5196
# Does not work for rawhide, keeps the version field empty
aa5196
%global oj_vendor_bug_url  https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=%{component}&version=%{fedora}
aa5196
%else
aa5196
%if 0%{?rhel}
aa5196
%global oj_vendor_bug_url  https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%20%{rhel}&component=%{component}
aa5196
%else
aa5196
%global oj_vendor_bug_url  https://bugzilla.redhat.com/enter_bug.cgi
aa5196
%endif
aa5196
%endif
aa5196
%endif
aa5196
%global oj_vendor_version (Red_Hat-%{version}-%{rpmrelease})
aa5196
aa5196
# Define IcedTea version used for SystemTap tapsets and desktop file
aa5196
%global icedteaver      6.0.0pre00-c848b93a8598
aa5196
# Define current Git revision for the FIPS support patches
aa5196
%global fipsver b34fb09a5c
aa5196
aa5196
# Standard JPackage naming and versioning defines
aa5196
%global origin          openjdk
aa5196
%global origin_nice     OpenJDK
aa5196
%global top_level_dir_name   %{origin}
aa5196
%global top_level_dir_name_backup %{top_level_dir_name}-backup
aa5196
%global buildver        7
aa5196
%global rpmrelease      2
aa5196
#%%global tagsuffix     %%{nil}
aa5196
# Priority must be 8 digits in total; up to openjdk 1.8, we were using 18..... so when we moved to 11, we had to add another digit
aa5196
%if %is_system_jdk
aa5196
# Using 10 digits may overflow the int used for priority, so we combine the patch and build versions
aa5196
# It is very unlikely we will ever have a patch version > 4 or a build version > 20, so we combine as (patch * 20) + build.
aa5196
# This means 11.0.9.0+11 would have had a priority of 11000911 as before
aa5196
# A 11.0.9.1+1 would have had a priority of 11000921 (20 * 1 + 1), thus ensuring it is bigger than 11.0.9.0+11
aa5196
%global combiver $( expr 20 '*' %{patchver} + %{buildver} )
aa5196
%global priority %( printf '%02d%02d%02d%02d' %{featurever} %{interimver} %{updatever} %{combiver} )
aa5196
%else
aa5196
# for techpreview, using 1, so slowdebugs can have 0
aa5196
%global priority %( printf '%08d' 1 )
aa5196
%endif
aa5196
%global newjavaver %{featurever}.%{interimver}.%{updatever}.%{patchver}
aa5196
aa5196
# Strip up to 6 trailing zeros in newjavaver, as the JDK does, to get the correct version used in filenames
aa5196
%global filever %(svn=%{newjavaver}; for i in 1 2 3 4 5 6 ; do svn=${svn%%.0} ; done; echo ${svn})
aa5196
aa5196
# The tag used to create the OpenJDK tarball
aa5196
%global vcstag jdk-%{filever}+%{buildver}%{?tagsuffix:-%{tagsuffix}}
aa5196
aa5196
%global javaver         %{featurever}
aa5196
aa5196
# Define milestone (EA for pre-releases, GA for releases)
aa5196
# Release will be (where N is usually a number starting at 1):
aa5196
# - 0.N%%{?extraver}%%{?dist} for EA releases,
aa5196
# - N%%{?extraver}{?dist} for GA releases
aa5196
%global is_ga           1
aa5196
%if %{is_ga}
aa5196
%global ea_designator ""
aa5196
%global ea_designator_zip ""
aa5196
%global extraver %{nil}
aa5196
%global eaprefix %{nil}
aa5196
%else
aa5196
%global ea_designator ea
aa5196
%global ea_designator_zip -%{ea_designator}
aa5196
%global extraver .%{ea_designator}
aa5196
%global eaprefix 0.
aa5196
%endif
aa5196
aa5196
# parametrized macros are order-sensitive
aa5196
%global compatiblename  java-%{featurever}-%{origin}
aa5196
%global fullversion     %{compatiblename}-%{version}-%{release}
aa5196
# images directories from upstream build
aa5196
%global jdkimage                jdk
aa5196
%global static_libs_image       static-libs
aa5196
# output dir stub
aa5196
%define buildoutputdir() %{expand:build/jdk%{featurever}.build%{?1}}
aa5196
%define installoutputdir() %{expand:install/jdk%{featurever}.install%{?1}}
aa5196
%define packageoutputdir() %{expand:packages/jdk%{featurever}.packages%{?1}}
aa5196
# we can copy the javadoc to not arched dir, or make it not noarch
aa5196
%define uniquejavadocdir()    %{expand:%{fullversion}.%{_arch}%{?1}}
aa5196
# main id and dir of this jdk
aa5196
%define uniquesuffix()        %{expand:%{fullversion}.%{_arch}%{?1}}
aa5196
# portable only declarations
aa5196
%global jreimage                jre
aa5196
%define jreportablenameimpl() %(echo %{uniquesuffix ""} | sed "s;el8\\(_[0-9]\\)*;portable%{1}.jre.;g" | sed "s;openjdkportable;el;g")
aa5196
%define jdkportablenameimpl() %(echo %{uniquesuffix ""} | sed "s;el8\\(_[0-9]\\)*;portable%{1}.jdk.;g" | sed "s;openjdkportable;el;g")
aa5196
%define staticlibsportablenameimpl() %(echo %{uniquesuffix ""} | sed "s;el8\\(_[0-9]\\)*;portable%{1}.static-libs.;g" | sed "s;openjdkportable;el;g")
aa5196
%define jreportablearchive()  %{expand:%{jreportablenameimpl -- %%{1}}.tar.xz}
aa5196
%define jdkportablearchive()  %{expand:%{jdkportablenameimpl -- %%{1}}.tar.xz}
aa5196
%define staticlibsportablearchive()  %{expand:%{staticlibsportablenameimpl -- %%{1}}.tar.xz}
aa5196
%define jreportablename()     %{expand:%{jreportablenameimpl -- %%{1}}}
aa5196
%define jdkportablename()     %{expand:%{jdkportablenameimpl -- %%{1}}}
aa5196
# Intentionally use jdkportablenameimpl here since we want to have static-libs files overlayed on
aa5196
# top of the JDK archive
aa5196
%define staticlibsportablename()     %{expand:%{jdkportablenameimpl -- %%{1}}}
aa5196
%define docportablename() %(echo %{uniquesuffix ""} | sed "s;el8\\(_[0-9]\\)*;portable.docs.;g" | sed "s;openjdkportable;el;g")
aa5196
%define docportablearchive()  %{docportablename}.tar.xz
aa5196
%define miscportablename() %(echo %{uniquesuffix ""} | sed "s;el8\\(_[0-9]\\)*;portable.misc.;g" | sed "s;openjdkportable;el;g")
aa5196
%define miscportablearchive()  %{miscportablename}.tar.xz
aa5196
aa5196
#################################################################
aa5196
# fix for https://bugzilla.redhat.com/show_bug.cgi?id=1111349
aa5196
#         https://bugzilla.redhat.com/show_bug.cgi?id=1590796#c14
aa5196
#         https://bugzilla.redhat.com/show_bug.cgi?id=1655938
aa5196
%global _privatelibs libsplashscreen[.]so.*|libawt_xawt[.]so.*|libjli[.]so.*|libattach[.]so.*|libawt[.]so.*|libextnet[.]so.*|libawt_headless[.]so.*|libdt_socket[.]so.*|libfontmanager[.]so.*|libinstrument[.]so.*|libj2gss[.]so.*|libj2pcsc[.]so.*|libj2pkcs11[.]so.*|libjaas[.]so.*|libjavajpeg[.]so.*|libjdwp[.]so.*|libjimage[.]so.*|libjsound[.]so.*|liblcms[.]so.*|libmanagement[.]so.*|libmanagement_agent[.]so.*|libmanagement_ext[.]so.*|libmlib_image[.]so.*|libnet[.]so.*|libnio[.]so.*|libprefs[.]so.*|librmi[.]so.*|libsaproc[.]so.*|libsctp[.]so.*|libsunec[.]so.*|libsystemconf[.]so.*|libunpack[.]so.*|libzip[.]so.*%{freetype_lib}
aa5196
%global _publiclibs libjawt[.]so.*|libjava[.]so.*|libjvm[.]so.*|libverify[.]so.*|libjsig[.]so.*
aa5196
%if %is_system_jdk
aa5196
%global __provides_exclude ^(%{_privatelibs})$
aa5196
%global __requires_exclude ^(%{_privatelibs})$
aa5196
# Never generate lib-style provides/requires for any debug packages
aa5196
%global __provides_exclude_from ^.*/%{uniquesuffix -- %{debug_suffix_unquoted}}/.*$
aa5196
%global __requires_exclude_from ^.*/%{uniquesuffix -- %{debug_suffix_unquoted}}/.*$
aa5196
%global __provides_exclude_from ^.*/%{uniquesuffix -- %{fastdebug_suffix_unquoted}}/.*$
aa5196
%global __requires_exclude_from ^.*/%{uniquesuffix -- %{fastdebug_suffix_unquoted}}/.*$
aa5196
%else
aa5196
# Don't generate provides/requires for JDK provided shared libraries at all.
aa5196
%global __provides_exclude ^(%{_privatelibs}|%{_publiclibs})$
aa5196
%global __requires_exclude ^(%{_privatelibs}|%{_publiclibs})$
aa5196
%endif
aa5196
aa5196
aa5196
%global etcjavasubdir     %{_sysconfdir}/java/java-%{javaver}-%{origin}
aa5196
%define etcjavadir()      %{expand:%{etcjavasubdir}/%{uniquesuffix -- %{?1}}}
aa5196
# Standard JPackage directories and symbolic links.
aa5196
%define sdkdir()        %{expand:%{uniquesuffix -- %{?1}}}
aa5196
%define jrelnk()        %{expand:jre-%{javaver}-%{origin}-%{version}-%{release}.%{_arch}%{?1}}
aa5196
aa5196
%define sdkbindir()     %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin}
aa5196
%define jrebindir()     %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin}
aa5196
aa5196
%global alt_java_name     alt-java
aa5196
aa5196
%global rpm_state_dir %{_localstatedir}/lib/rpm-state/
aa5196
aa5196
# For flatpack builds hard-code /usr/sbin/alternatives,
aa5196
# otherwise use %%{_sbindir} relative path.
aa5196
%if 0%{?flatpak}
aa5196
%global alternatives_requires /usr/sbin/alternatives
aa5196
%else
aa5196
%global alternatives_requires %{_sbindir}/alternatives
aa5196
%endif
aa5196
aa5196
%if %{with_systemtap}
aa5196
# Where to install systemtap tapset (links)
aa5196
# We would like these to be in a package specific sub-dir,
aa5196
# but currently systemtap doesn't support that, so we have to
aa5196
# use the root tapset dir for now. To distinguish between 64
aa5196
# and 32 bit architectures we place the tapsets under the arch
aa5196
# specific dir (note that systemtap will only pickup the tapset
aa5196
# for the primary arch for now). Systemtap uses the machine name
aa5196
# aka target_cpu as architecture specific directory name.
aa5196
%global tapsetroot /usr/share/systemtap
aa5196
%global tapsetdirttapset %{tapsetroot}/tapset/
aa5196
%global tapsetdir %{tapsetdirttapset}/%{stapinstall}
aa5196
%endif
aa5196
aa5196
# Portables have no repo (requires/provides), but these are awesome for orientation in spec
aa5196
# Also scriptlets are happily missing and files are handled old fashion
aa5196
# not-duplicated requires/provides/obsoletes for normal/debug packages
aa5196
%define java_rpo() %{expand:
aa5196
}
aa5196
aa5196
%define java_devel_rpo() %{expand:
aa5196
}
aa5196
aa5196
%define java_static_libs_rpo() %{expand:
aa5196
}
aa5196
aa5196
%define java_unstripped_rpo() %{expand:
aa5196
}
aa5196
aa5196
%define java_docs_rpo() %{expand:
aa5196
}
aa5196
aa5196
%define java_misc_rpo() %{expand:
aa5196
}
aa5196
aa5196
# Prevent brp-java-repack-jars from being run
aa5196
%global __jar_repack 0
aa5196
aa5196
# portables have grown out of its component, moving back to java-x-vendor
aa5196
# this expression, when declared as global, filled component with java-x-vendor portable
aa5196
%define component %(echo %{name} | sed "s;-portable;;g")
aa5196
aa5196
Name:    java-%{javaver}-%{origin}-portable
aa5196
Version: %{newjavaver}.%{buildver}
aa5196
Release: %{?eaprefix}%{rpmrelease}%{?extraver}%{?dist}
aa5196
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons
aa5196
# and this change was brought into RHEL-4. java-1.5.0-ibm packages
aa5196
# also included the epoch in their virtual provides. This created a
aa5196
# situation where in-the-wild java-1.5.0-ibm packages provided "java =
aa5196
# 1:1.5.0". In RPM terms, "1.6.0 < 1:1.5.0" since 1.6.0 is
aa5196
# interpreted as 0:1.6.0. So the "java >= 1.6.0" requirement would be
aa5196
# satisfied by the 1:1.5.0 packages. Thus we need to set the epoch in
aa5196
# JDK package >= 1.6.0 to 1, and packages referring to JDK virtual
aa5196
# provides >= 1.6.0 must specify the epoch, "java >= 1:1.6.0".
aa5196
aa5196
Epoch:   1
aa5196
Summary: %{origin_nice} %{featurever} Runtime Environment portable edition
aa5196
%if 0%{?rhel} <= 8
aa5196
Group:   Development/Languages
aa5196
%endif
aa5196
aa5196
# HotSpot code is licensed under GPLv2
aa5196
# JDK library code is licensed under GPLv2 with the Classpath exception
aa5196
# The Apache license is used in code taken from Apache projects (primarily xalan & xerces)
aa5196
# DOM levels 2 & 3 and the XML digital signature schemas are licensed under the W3C Software License
aa5196
# The JSR166 concurrency code is in the public domain
aa5196
# The BSD and MIT licenses are used for a number of third-party libraries (see ADDITIONAL_LICENSE_INFO)
aa5196
# The OpenJDK source tree includes:
aa5196
# - JPEG library (IJG), zlib & libpng (zlib), giflib (MIT), harfbuzz (ISC),
aa5196
# - freetype (FTL), jline (BSD) and LCMS (MIT)
aa5196
# - jquery (MIT), jdk.crypto.cryptoki PKCS 11 wrapper (RSA)
aa5196
# - public_suffix_list.dat from publicsuffix.org (MPLv2.0)
aa5196
# The test code includes copies of NSS under the Mozilla Public License v2.0
aa5196
# The PCSClite headers are under a BSD with advertising license
aa5196
# The elliptic curve cryptography (ECC) source code is licensed under the LGPLv2.1 or any later version
aa5196
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 and ISC and FTL and RSA
aa5196
URL:      http://openjdk.java.net/
aa5196
aa5196
aa5196
# to regenerate source0 (jdk) run update_package.sh
aa5196
# update_package.sh contains hard-coded repos, revisions, tags, and projects to regenerate the source archives
aa5196
Source0: openjdk-jdk%{featurever}u-%{vcstag}-4curve.tar.xz
aa5196
aa5196
# Use 'icedtea_sync.sh' to update the following
aa5196
# They are based on code contained in the IcedTea project (6.x).
aa5196
# Systemtap tapsets. Zipped up to keep it small.
aa5196
# Disabled in portables
aa5196
#Source8: tapsets-icedtea-%%{icedteaver}.tar.xz
aa5196
aa5196
# Desktop files. Adapted from IcedTea
aa5196
# Disabled in portables
aa5196
#Source9: jconsole.desktop.in
aa5196
aa5196
# Release notes
aa5196
Source10: NEWS
aa5196
aa5196
# nss configuration file
aa5196
Source11: nss.cfg.in
aa5196
aa5196
# Removed libraries that we link instead
aa5196
Source12: remove-intree-libraries.sh
aa5196
aa5196
# Ensure we aren't using the limited crypto policy
aa5196
Source13: TestCryptoLevel.java
aa5196
aa5196
# Ensure ECDSA is working
aa5196
Source14: TestECDSA.java
aa5196
aa5196
# Verify system crypto (policy) can be disabled via a property
aa5196
Source15: TestSecurityProperties.java
aa5196
aa5196
# Ensure vendor settings are correct
aa5196
Source16: CheckVendor.java
aa5196
aa5196
# nss fips configuration file
aa5196
Source17: nss.fips.cfg.in
aa5196
aa5196
# Ensure translations are available for new timezones
aa5196
Source18: TestTranslations.java
aa5196
aa5196
############################################
aa5196
#
aa5196
# RPM/distribution specific patches
aa5196
#
aa5196
############################################
aa5196
aa5196
# Ignore AWTError when assistive technologies are loaded
aa5196
Patch1:    rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch
aa5196
# NSS via SunPKCS11 Provider (disabled due to memory leak).
aa5196
Patch1000: rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch
aa5196
# RH1750419: enable build of speculative store bypass hardened alt-java (CVE-2018-3639)
aa5196
Patch600: rh1750419-redhat_alt_java.patch
aa5196
# RH1582504: Use RSA as default for keytool, as DSA is disabled in all crypto policies except LEGACY
aa5196
Patch1003: rh1842572-rsa_default_for_keytool.patch
aa5196
aa5196
# Crypto policy and FIPS support patches
aa5196
# Patch is generated from the fips tree at https://github.com/rh-openjdk/jdk11u/tree/fips
aa5196
# as follows: git diff %%{vcstag} src make test > fips-11u-$(git show -s --format=%h HEAD).patch
aa5196
# Diff is limited to src and make subdirectories to exclude .github changes
aa5196
# Fixes currently included:
aa5196
# PR3694, RH1340845: Add security.useSystemPropertiesFile option to java.security to use system crypto policy
aa5196
# PR3695: Allow use of system crypto policy to be disabled by the user
aa5196
# RH1655466: Support RHEL FIPS mode using SunPKCS11 provider
aa5196
# RH1818909: No ciphersuites availale for SSLSocket in FIPS mode
aa5196
# RH1860986: Disable TLSv1.3 with the NSS-FIPS provider until PKCS#11 v3.0 support is available
aa5196
# RH1915071: Always initialise JavaSecuritySystemConfiguratorAccess
aa5196
# RH1929465: Improve system FIPS detection
aa5196
# RH1996182: Login to the NSS software token in FIPS mode
aa5196
# RH1991003: Allow plain key import unless com.redhat.fips.plainKeySupport is set to false
aa5196
# RH2021263: Make sure java.security.Security is initialised when retrieving JavaSecuritySystemConfiguratorAccess instance
aa5196
# RH2021263: Return in C code after having generated Java exception
aa5196
# RH2052819: Improve Security initialisation, now FIPS support no longer relies on crypto policy support
aa5196
# RH2051605: Detect NSS at Runtime for FIPS detection
aa5196
# RH2052819: Fix FIPS reliance on crypto policies
aa5196
# RH2036462: sun.security.pkcs11.wrapper.PKCS11.getInstance breakage
aa5196
# RH2090378: Revert to disabling system security properties and FIPS mode support together
aa5196
Patch1001: fips-11u-%{fipsver}.patch
aa5196
aa5196
#############################################
aa5196
#
aa5196
# Shenandoah specific patches
aa5196
#
aa5196
#############################################
aa5196
aa5196
# Currently empty
aa5196
aa5196
#############################################
aa5196
#
aa5196
# Upstreamable patches
aa5196
#
aa5196
# This section includes patches which need to
aa5196
# be reviewed & pushed to the current development
aa5196
# tree of OpenJDK.
aa5196
#############################################
aa5196
Patch3:    rh649512-remove_uses_of_far_in_jpeg_libjpeg_turbo_1_4_compat_for_jdk10_and_up.patch
aa5196
aa5196
#############################################
aa5196
#
aa5196
# Backportable patches
aa5196
#
aa5196
# This section includes patches which are
aa5196
# present in the current development tree, but
aa5196
# need to be reviewed & pushed to the appropriate
aa5196
# updates tree of OpenJDK.
aa5196
#############################################
aa5196
Patch2001: jdk8242332-rh2108712-sha3-sunpkcs11.patch
aa5196
aa5196
#############################################
aa5196
#
aa5196
# Patches appearing in 11.0.20
aa5196
#
aa5196
# This section includes patches which are present
aa5196
# in the listed OpenJDK 11u release and should be
aa5196
# able to be removed once that release is out
aa5196
# and used by this RPM.
aa5196
#############################################
aa5196
# JDK-8274864: Remove Amman/Cairo hacks in ZoneInfoFile
aa5196
Patch2002: jdk8274864-remove_amman_cairo_hacks.patch
aa5196
# JDK-8305113: (tz) Update Timezone Data to 2023c
aa5196
Patch2003: jdk8305113-tzdata2023c.patch
aa5196
aa5196
#############################################
aa5196
#
aa5196
# Portable build specific patches
aa5196
#
aa5196
#############################################
aa5196
aa5196
BuildRequires: autoconf
aa5196
BuildRequires: automake
aa5196
BuildRequires: alsa-lib-devel
aa5196
BuildRequires: binutils
aa5196
BuildRequires: cups-devel
aa5196
BuildRequires: desktop-file-utils
aa5196
# elfutils only are OK for build without AOT
aa5196
BuildRequires: elfutils-devel
aa5196
BuildRequires: file
aa5196
BuildRequires: fontconfig-devel
aa5196
BuildRequires: gcc-c++
aa5196
BuildRequires: gdb
aa5196
BuildRequires: libxslt
aa5196
BuildRequires: libX11-devel
aa5196
BuildRequires: libXi-devel
aa5196
BuildRequires: libXinerama-devel
aa5196
BuildRequires: libXrandr-devel
aa5196
BuildRequires: libXrender-devel
aa5196
BuildRequires: libXt-devel
aa5196
BuildRequires: libXtst-devel
aa5196
# Requirement for setting up nss.cfg and nss.fips.cfg
aa5196
BuildRequires: nss-devel
aa5196
# Requirement for system security property test
aa5196
# N/A for portable. RHEL7 doesn't provide them
aa5196
# and policy support is turned off
aa5196
#BuildRequires: crypto-policies
aa5196
BuildRequires: pkgconfig
aa5196
BuildRequires: xorg-x11-proto-devel
aa5196
BuildRequires: zip
aa5196
# to pack portable tarballs
aa5196
BuildRequires: tar
aa5196
BuildRequires: unzip
aa5196
# No javapackages-filesystem on el7,nor is needed for portables
aa5196
# BuildRequires: javapackages-filesystem
aa5196
BuildRequires: java-%{buildjdkver}-openjdk-devel
aa5196
# Zero-assembler build requirement
aa5196
%ifarch %{zero_arches}
aa5196
BuildRequires: libffi-devel
aa5196
%endif
aa5196
# 2023c required as of JDK-8305113
aa5196
#BuildRequires: tzdata-java >= 2023c
aa5196
# Temporarily lowering requirement until https://errata.devel.redhat.com/advisory/112353 ships
aa5196
BuildRequires: tzdata-java >= 2022g
aa5196
# cacerts build requirement in portable mode
aa5196
BuildRequires: ca-certificates
aa5196
# Earlier versions have a bug in tree vectorization on PPC
aa5196
BuildRequires: gcc >= 4.8.3-8
aa5196
aa5196
%if %{with_systemtap}
aa5196
BuildRequires: systemtap-sdt-devel
aa5196
%endif
aa5196
BuildRequires: make
aa5196
aa5196
%if %{system_libs}
aa5196
BuildRequires: freetype-devel
aa5196
BuildRequires: giflib-devel
aa5196
BuildRequires: harfbuzz-devel
aa5196
BuildRequires: lcms2-devel
aa5196
BuildRequires: libjpeg-devel
aa5196
BuildRequires: libpng-devel
aa5196
%else
aa5196
# Version in src/java.desktop/share/native/libfreetype/include/freetype/freetype.h
aa5196
Provides: bundled(freetype) = 2.12.1
aa5196
# Version in src/java.desktop/share/native/libsplashscreen/giflib/gif_lib.h
aa5196
Provides: bundled(giflib) = 5.2.1
aa5196
# Version in src/java.desktop/share/native/libharfbuzz/hb-version.h
aa5196
Provides: bundled(harfbuzz) = 4.4.1
aa5196
# Version in src/java.desktop/share/native/liblcms/lcms2.h
aa5196
Provides: bundled(lcms2) = 2.12.0
aa5196
# Version in src/java.desktop/share/native/libjavajpeg/jpeglib.h
aa5196
Provides: bundled(libjpeg) = 6b
aa5196
# Version in src/java.desktop/share/native/libsplashscreen/libpng/png.h
aa5196
Provides: bundled(libpng) = 1.6.37
aa5196
# We link statically against libstdc++ to increase portability
aa5196
BuildRequires: libstdc++-static
aa5196
%endif
aa5196
aa5196
# this is always built, also during debug-only build
aa5196
# when it is built in debug-only this package is just placeholder
aa5196
%{java_rpo %{nil}}
aa5196
aa5196
%description
aa5196
The %{origin_nice} %{featurever} runtime environment - portable edition.
aa5196
aa5196
%if %{include_debug_build}
aa5196
%package slowdebug
aa5196
Summary: %{origin_nice} %{featurever} Runtime Environment portable edition %{debug_on}
aa5196
%if 0%{?rhel} <= 8
aa5196
Group:   Development/Languages
aa5196
%endif
aa5196
aa5196
%{java_rpo -- %{debug_suffix_unquoted}}
aa5196
%description slowdebug
aa5196
The %{origin_nice} %{featurever} runtime environment - portable edition.
aa5196
%{debug_warning}
aa5196
%endif
aa5196
aa5196
%if %{include_fastdebug_build}
aa5196
%package fastdebug
aa5196
Summary: %{origin_nice} %{featurever} Runtime Environment portable edition %{fastdebug_on}
aa5196
%if 0%{?rhel} <= 8
aa5196
Group:   Development/Languages
aa5196
%endif
aa5196
aa5196
%{java_rpo -- %{fastdebug_suffix_unquoted}}
aa5196
%description fastdebug
aa5196
The %{origin_nice} %{featurever} runtime environment - portable edition.
aa5196
%{fastdebug_warning}
aa5196
%endif
aa5196
aa5196
%if %{include_normal_build}
aa5196
%package devel
aa5196
Summary: %{origin_nice} %{featurever} Development Environment portable edition
aa5196
%if 0%{?rhel} <= 8
aa5196
Group:   Development/Languages
aa5196
%endif
aa5196
aa5196
%{java_devel_rpo %{nil}}
aa5196
aa5196
%description devel
aa5196
The %{origin_nice} %{featurever} development tools - portable edition.
aa5196
%endif
aa5196
aa5196
%if %{include_debug_build}
aa5196
%package devel-slowdebug
aa5196
Summary: %{origin_nice} %{featurever} Runtime and Development Environment portable edition %{debug_on}
aa5196
%if 0%{?rhel} <= 8
aa5196
Group:   Development/Languages
aa5196
%endif
aa5196
aa5196
%{java_devel_rpo -- %{debug_suffix_unquoted}}
aa5196
aa5196
%description devel-slowdebug
aa5196
The %{origin_nice} %{featurever} development tools - portable edition.
aa5196
%{debug_warning}
aa5196
%endif
aa5196
aa5196
%if %{include_fastdebug_build}
aa5196
%package devel-fastdebug
aa5196
Summary: %{origin_nice} %{featurever} Runtime and Development Environment portable edition %{fastdebug_on}
aa5196
Group:   Development/Tools
aa5196
aa5196
%{java_devel_rpo -- %{fastdebug_suffix_unquoted}}
aa5196
aa5196
%description devel-fastdebug
aa5196
The %{origin_nice} %{featurever} runtime environment and development tools - portable edition
aa5196
%{fastdebug_warning}
aa5196
%endif
aa5196
aa5196
%if %{include_staticlibs}
aa5196
aa5196
%if %{include_normal_build}
aa5196
%package static-libs
aa5196
Summary: %{origin_nice} %{featurever} libraries for static linking - portable edition
aa5196
aa5196
%{java_static_libs_rpo %{nil}}
aa5196
aa5196
%description static-libs
aa5196
The %{origin_nice} %{featurever} libraries for static linking - portable edition.
aa5196
%endif
aa5196
aa5196
%if %{include_debug_build}
aa5196
%package static-libs-slowdebug
aa5196
Summary: %{origin_nice} %{featurever} libraries for static linking - portable edition %{debug_on}
aa5196
aa5196
%{java_static_libs_rpo -- %{debug_suffix_unquoted}}
aa5196
aa5196
%description static-libs-slowdebug
aa5196
The %{origin_nice} %{featurever} libraries for static linking - portable edition
aa5196
%{debug_warning}
aa5196
%endif
aa5196
aa5196
%if %{include_fastdebug_build}
aa5196
%package static-libs-fastdebug
aa5196
Summary: %{origin_nice} %{featurever} libraries for static linking - portable edition %{fastdebug_on}
aa5196
aa5196
%{java_static_libs_rpo -- %{fastdebug_suffix_unquoted}}
aa5196
aa5196
%description static-libs-fastdebug
aa5196
The %{origin_nice} %{featurever} libraries for static linking - portable edition
aa5196
%{fastdebug_warning}
aa5196
%endif
aa5196
aa5196
# staticlibs
aa5196
%endif
aa5196
aa5196
%if %{include_normal_build}
aa5196
%package unstripped
aa5196
Summary: The %{origin_nice} %{featurever} runtime environment.
aa5196
aa5196
%{java_unstripped_rpo %{nil}}
aa5196
aa5196
%description unstripped
aa5196
The %{origin_nice} %{featurever} runtime environment.
aa5196
aa5196
%endif
aa5196
aa5196
%package docs
aa5196
Summary: %{origin_nice} %{featurever} API documentation
aa5196
aa5196
%{java_docs_rpo %{nil}}
aa5196
aa5196
%description docs
aa5196
The %{origin_nice} %{featurever} API documentation.
aa5196
aa5196
%package misc
aa5196
Summary: %{origin_nice} %{featurever} miscellany
aa5196
aa5196
%{java_misc_rpo %{nil}}
aa5196
aa5196
%description misc
aa5196
The %{origin_nice} %{featurever} miscellany.
aa5196
aa5196
%prep
aa5196
aa5196
echo "Preparing %{oj_vendor_version}"
aa5196
aa5196
# Using the echo macro breaks rpmdev-bumpspec, as it parses the first line of stdout :-(
aa5196
%if 0%{?stapinstall:1}
aa5196
  echo "CPU: %{_target_cpu}, arch install directory: %{archinstall}, SystemTap install directory: %{stapinstall}"
aa5196
%else
aa5196
  %{error:Unrecognised architecture %{_target_cpu}}
aa5196
%endif
aa5196
aa5196
if [ %{include_normal_build} -eq 0 -o  %{include_normal_build} -eq 1 ] ; then
aa5196
  echo "include_normal_build is %{include_normal_build}"
aa5196
else
aa5196
  echo "include_normal_build is %{include_normal_build}, that is invalid. Use 1 for yes or 0 for no"
aa5196
  exit 11
aa5196
fi
aa5196
if [ %{include_debug_build} -eq 0 -o  %{include_debug_build} -eq 1 ] ; then
aa5196
  echo "include_debug_build is %{include_debug_build}"
aa5196
else
aa5196
  echo "include_debug_build is %{include_debug_build}, that is invalid. Use 1 for yes or 0 for no"
aa5196
  exit 12
aa5196
fi
aa5196
if [ %{include_fastdebug_build} -eq 0 -o  %{include_fastdebug_build} -eq 1 ] ; then
aa5196
  echo "include_fastdebug_build is %{include_fastdebug_build}"
aa5196
else
aa5196
  echo "include_fastdebug_build is %{include_fastdebug_build}, that is invalid. Use 1 for yes or 0 for no"
aa5196
  exit 13
aa5196
fi
aa5196
if [ %{include_debug_build} -eq 0 -a  %{include_normal_build} -eq 0 -a  %{include_fastdebug_build} -eq 0 ] ; then
aa5196
  echo "You have disabled all builds (normal,fastdebug,slowdebug). That is a no go."
aa5196
  exit 14
aa5196
fi
aa5196
%setup -q -c -n %{uniquesuffix ""} -T -a 0
aa5196
# https://bugzilla.redhat.com/show_bug.cgi?id=1189084
aa5196
prioritylength=`expr length %{priority}`
aa5196
if [ $prioritylength -ne 8 ] ; then
aa5196
 echo "priority must be 8 digits in total, violated"
aa5196
 exit 14
aa5196
fi
aa5196
aa5196
# OpenJDK patches
aa5196
%if %{system_libs}
aa5196
# Remove libraries that are linked by both static and dynamic builds
aa5196
sh %{SOURCE12} %{top_level_dir_name}
aa5196
%endif
aa5196
aa5196
# Patch the JDK
aa5196
pushd %{top_level_dir_name}
aa5196
%patch1 -p1
aa5196
%patch3 -p1
aa5196
# Add crypto policy and FIPS support
aa5196
%patch1001 -p1
aa5196
# nss.cfg PKCS11 support; must come last as it also alters java.security
aa5196
%patch1000 -p1
aa5196
# PKCS11 SHA3 backport
aa5196
%patch2001 -p1
aa5196
# tzdata update
aa5196
%patch2002 -p1
aa5196
%patch2003 -p1
aa5196
popd # openjdk
aa5196
aa5196
%patch600
aa5196
%patch1003
aa5196
aa5196
# Extract systemtap tapsets
aa5196
%if %{with_systemtap}
aa5196
tar --strip-components=1 -x -I xz -f %{SOURCE8}
aa5196
%if %{include_debug_build}
aa5196
cp -r tapset tapset%{debug_suffix}
aa5196
%endif
aa5196
%if %{include_fastdebug_build}
aa5196
cp -r tapset tapset%{fastdebug_suffix}
aa5196
%endif
aa5196
aa5196
for suffix in %{build_loop} ; do
aa5196
  for file in "tapset"$suffix/*.in; do
aa5196
    OUTPUT_FILE=`echo $file | sed -e "s:\.stp\.in$:-%{version}-%{release}.%{_arch}.stp:g"`
aa5196
    sed -e "s:@ABS_SERVER_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/lib/server/libjvm.so:g" $file > $file.1
aa5196
    sed -e "s:@JAVA_SPEC_VER@:%{javaver}:g" $file.1 > $file.2
aa5196
# TODO find out which architectures other than i686 have a client vm
aa5196
%ifarch %{ix86}
aa5196
    sed -e "s:@ABS_CLIENT_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/lib/client/libjvm.so:g" $file.2 > $OUTPUT_FILE
aa5196
%else
aa5196
    sed -e "/@ABS_CLIENT_LIBJVM_SO@/d" $file.2 > $OUTPUT_FILE
aa5196
%endif
aa5196
    sed -i -e "s:@ABS_JAVA_HOME_DIR@:%{_jvmdir}/%{sdkdir -- $suffix}:g" $OUTPUT_FILE
aa5196
    sed -i -e "s:@INSTALL_ARCH_DIR@:%{archinstall}:g" $OUTPUT_FILE
aa5196
    sed -i -e "s:@prefix@:%{_jvmdir}/%{sdkdir -- $suffix}/:g" $OUTPUT_FILE
aa5196
  done
aa5196
done
aa5196
# systemtap tapsets ends
aa5196
%endif
aa5196
aa5196
# Prepare desktop files
aa5196
# Portables do not have desktop integration
aa5196
aa5196
# Setup nss.cfg
aa5196
sed -e "s:@NSS_LIBDIR@:%{NSS_LIBDIR}:g" %{SOURCE11} > nss.cfg
aa5196
aa5196
# Setup nss.fips.cfg
aa5196
sed -e "s:@NSS_LIBDIR@:%{NSS_LIBDIR}:g" %{SOURCE17} > nss.fips.cfg
aa5196
aa5196
%build
aa5196
# How many CPU's do we have?
aa5196
export NUM_PROC=%(/usr/bin/getconf _NPROCESSORS_ONLN 2> /dev/null || :)
aa5196
export NUM_PROC=${NUM_PROC:-1}
aa5196
%if 0%{?_smp_ncpus_max}
aa5196
# Honor %%_smp_ncpus_max
aa5196
[ ${NUM_PROC} -gt %{?_smp_ncpus_max} ] && export NUM_PROC=%{?_smp_ncpus_max}
aa5196
%endif
aa5196
aa5196
%ifarch s390x sparc64 alpha %{power64} %{aarch64}
aa5196
export ARCH_DATA_MODEL=64
aa5196
%endif
aa5196
%ifarch alpha
aa5196
export CFLAGS="$CFLAGS -mieee"
aa5196
%endif
aa5196
aa5196
# We use ourcppflags because the OpenJDK build seems to
aa5196
# pass EXTRA_CFLAGS to the HotSpot C++ compiler...
aa5196
EXTRA_CFLAGS="%ourcppflags -Wno-error"
aa5196
EXTRA_CPP_FLAGS="%ourcppflags"
aa5196
aa5196
%ifarch %{power64} ppc
aa5196
# fix rpmlint warnings
aa5196
EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
aa5196
%endif
aa5196
%ifarch %{ix86}
aa5196
# Align stack boundary on x86_32
aa5196
EXTRA_CFLAGS="$(echo ${EXTRA_CFLAGS} | sed -e 's|-mstackrealign|-mincoming-stack-boundary=2 -mpreferred-stack-boundary=4|')"
aa5196
EXTRA_CPP_FLAGS="$(echo ${EXTRA_CPP_FLAGS} | sed -e 's|-mstackrealign|-mincoming-stack-boundary=2 -mpreferred-stack-boundary=4|')"
aa5196
%endif
aa5196
# Fixes annocheck warnings in assembler files due to missing build notes
aa5196
EXTRA_ASFLAGS="${EXTRA_CFLAGS} -Wa,--generate-missing-build-notes=yes"
aa5196
export EXTRA_CFLAGS EXTRA_CPP_FLAGS EXTRA_ASFLAGS
aa5196
aa5196
function buildjdk() {
aa5196
    local outputdir=${1}
aa5196
    local buildjdk=${2}
aa5196
    local maketargets="${3}"
aa5196
    local debuglevel=${4}
aa5196
    local link_opt=${5}
aa5196
    local debug_symbols=${6}
aa5196
aa5196
    local top_dir_abs_src_path=$(pwd)/%{top_level_dir_name}
aa5196
    local top_dir_abs_build_path=$(pwd)/${outputdir}
aa5196
aa5196
    # This must be set using the global, so that the
aa5196
    # static libraries still use a dynamic stdc++lib
aa5196
    if [ "x%{link_type}" = "xbundled" ] ; then
aa5196
        libc_link_opt="static";
aa5196
    else
aa5196
        libc_link_opt="dynamic";
aa5196
    fi
aa5196
aa5196
    echo "Using output directory: ${outputdir}";
aa5196
    echo "Checking build JDK ${buildjdk} is operational..."
aa5196
    ${buildjdk}/bin/java -version
aa5196
    echo "Using make targets: ${maketargets}"
aa5196
    echo "Using debuglevel: ${debuglevel}"
aa5196
    echo "Using link_opt: ${link_opt}"
aa5196
    echo "Using debug_symbols: ${debug_symbols}"
aa5196
    echo "Building %{newjavaver}-%{buildver}, pre=%{ea_designator}, opt=%{lts_designator}"
aa5196
aa5196
    mkdir -p ${outputdir}
aa5196
    pushd ${outputdir}
aa5196
aa5196
    # Note: zlib and freetype use %{link_type}
aa5196
    # rather than ${link_opt} as the system versions
aa5196
    # are always used in a system_libs build, even
aa5196
    # for the static library build
aa5196
    bash ${top_dir_abs_src_path}/configure \
aa5196
%ifarch %{zero_arches}
aa5196
    --with-jvm-variants=zero \
aa5196
%endif
aa5196
%ifarch %{ppc64le}
aa5196
    --with-jobs=1 \
aa5196
%endif
aa5196
    --with-cacerts-file=`readlink -f %{_sysconfdir}/pki/java/cacerts`  \
aa5196
    --with-version-build=%{buildver} \
aa5196
    --with-version-pre="%{ea_designator}" \
aa5196
    --with-version-opt="%{lts_designator}" \
aa5196
    --with-vendor-version-string="%{oj_vendor_version}" \
aa5196
    --with-vendor-name="%{oj_vendor}" \
aa5196
    --with-vendor-url="%{oj_vendor_url}" \
aa5196
    --with-vendor-bug-url="%{oj_vendor_bug_url}" \
aa5196
    --with-vendor-vm-bug-url="%{oj_vendor_bug_url}" \
aa5196
    --with-boot-jdk=${buildjdk} \
aa5196
    --with-debug-level=${debuglevel} \
aa5196
    --with-native-debug-symbols="${debug_symbols}" \
aa5196
    --disable-sysconf-nss \
aa5196
    --enable-unlimited-crypto \
aa5196
    --with-zlib=%{link_type} \
aa5196
    --with-freetype=%{link_type} \
aa5196
    --with-libjpeg=${link_opt} \
aa5196
    --with-giflib=${link_opt} \
aa5196
    --with-libpng=${link_opt} \
aa5196
    --with-lcms=${link_opt} \
aa5196
    --with-harfbuzz=${link_opt} \
aa5196
    --with-stdc++lib=${libc_link_opt} \
aa5196
    --with-extra-cxxflags="$EXTRA_CPP_FLAGS" \
aa5196
    --with-extra-cflags="$EXTRA_CFLAGS" \
aa5196
    --with-extra-asflags="$EXTRA_ASFLAGS" \
aa5196
    --with-extra-ldflags="%{ourldflags}" \
aa5196
    --with-num-cores="$NUM_PROC" \
aa5196
    --disable-javac-server \
aa5196
    --with-jvm-features="%{shenandoah_feature},%{zgc_feature}" \
aa5196
    --disable-warnings-as-errors
aa5196
aa5196
    cat spec.gmk
aa5196
aa5196
    make JAVAC_FLAGS=-g LOG=trace $maketargets || \
aa5196
	( pwd; find ${top_dir_abs_src_path} ${top_dir_abs_build_path} -name "hs_err_pid*.log" | xargs cat && false )
aa5196
aa5196
    popd
aa5196
}
aa5196
aa5196
function installjdk() {
aa5196
    local outputdir=${1}
aa5196
    local installdir=${2}
aa5196
    local jdkimagepath=${installdir}/images/%{jdkimage}
aa5196
    local jreimagepath=${installdir}/images/%{jreimage}
aa5196
aa5196
    echo "Installing build from ${outputdir} to ${installdir}..."
aa5196
    mkdir -p ${installdir}
aa5196
    echo "Installing images..."
aa5196
    mv ${outputdir}/images ${installdir}
aa5196
    if [ -d ${outputdir}/bundles ] ; then
aa5196
        echo "Installing bundles...";
aa5196
        mv ${outputdir}/bundles ${installdir} ;
aa5196
    fi
aa5196
aa5196
%if !%{with artifacts}
aa5196
    echo "Removing output directory...";
aa5196
    rm -rf ${outputdir}
aa5196
%endif
aa5196
aa5196
    for imagepath in ${jdkimagepath} ${jreimagepath} ; do
aa5196
aa5196
        if [ -d ${imagepath} ] ; then
aa5196
            # the build (erroneously) removes read permissions from some jars
aa5196
            # this is a regression in OpenJDK 7 (our compiler):
aa5196
            # http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1437
aa5196
            find ${imagepath} -iname '*.jar' -exec chmod ugo+r {} \;
aa5196
aa5196
            # Build screws up permissions on binaries
aa5196
            # https://bugs.openjdk.java.net/browse/JDK-8173610
aa5196
            find ${imagepath} -iname '*.so' -exec chmod +x {} \;
aa5196
            find ${imagepath}/bin/ -exec chmod +x {} \;
aa5196
aa5196
            # Install local files which are distributed with the JDK
aa5196
            install -m 644 %{SOURCE10} ${imagepath}
aa5196
            install -m 644 nss.cfg ${imagepath}/conf/security/
aa5196
            install -m 644 nss.fips.cfg ${imagepath}/conf/security/
aa5196
aa5196
            # Create fake alt-java as a placeholder for future alt-java
aa5196
            pushd ${imagepath}
aa5196
            # add alt-java man page
aa5196
            echo "Hardened java binary recommended for launching untrusted code from the Web e.g. javaws" > man/man1/%{alt_java_name}.1
aa5196
            cat man/man1/java.1 >> man/man1/%{alt_java_name}.1
aa5196
            popd
aa5196
aa5196
            # Print release information
aa5196
            cat ${imagepath}/release
aa5196
        fi
aa5196
    done
aa5196
}
aa5196
aa5196
function genchecksum() {
aa5196
    local checkedfile=${1}
aa5196
aa5196
    checkdir=$(dirname ${1})
aa5196
    checkfile=$(basename ${1})
aa5196
aa5196
    echo "Generating checksum for ${checkfile} in ${checkdir}..."
aa5196
    pushd ${checkdir}
aa5196
    sha256sum ${checkfile} > ${checkfile}.sha256sum
aa5196
    sha256sum --check ${checkfile}.sha256sum
aa5196
    popd
aa5196
}
aa5196
aa5196
function packagejdk() {
aa5196
    local imagesdir=$(pwd)/${1}/images
aa5196
    local docdir=$(pwd)/${1}/images/docs
aa5196
    local bundledir=$(pwd)/${1}/bundles
aa5196
    local packagesdir=$(pwd)/${2}
aa5196
    local srcdir=$(pwd)/%{top_level_dir_name}
aa5196
aa5196
    echo "Packaging build from ${imagesdir} to ${packagesdir}..."
aa5196
    mkdir -p ${packagesdir}
aa5196
    pushd ${imagesdir}
aa5196
aa5196
    if [ "x$suffix" = "x" ] ; then
aa5196
        nameSuffix=""
aa5196
    else
aa5196
        nameSuffix=`echo "$suffix"| sed s/-/./`
aa5196
    fi
aa5196
aa5196
    jdkname=%{jdkportablename -- "$nameSuffix"}
aa5196
    jdkarchive=${packagesdir}/%{jdkportablearchive -- "$nameSuffix"}
aa5196
    jrename=%{jreportablename -- "$nameSuffix"}
aa5196
    jrearchive=${packagesdir}/%{jreportablearchive -- "$nameSuffix"}
aa5196
    staticname=%{staticlibsportablename -- "$nameSuffix"}
aa5196
    staticarchive=${packagesdir}/%{staticlibsportablearchive -- "$nameSuffix"}
aa5196
    debugarchive=${packagesdir}/%{jdkportablearchive -- "${nameSuffix}.debuginfo"}
aa5196
    unstrippedarchive=${packagesdir}/%{jdkportablearchive -- "${nameSuffix}.unstripped"}
aa5196
    # We only use docs for the release build
aa5196
    docname=%{docportablename}
aa5196
    docarchive=${packagesdir}/%{docportablearchive}
aa5196
    built_doc_archive=jdk-%{filever}%{ea_designator_zip}+%{buildver}%{lts_designator_zip}-docs.zip
aa5196
    # These are from the source tree so no debug variants
aa5196
    miscname=%{miscportablename}
aa5196
    miscarchive=${packagesdir}/%{miscportablearchive}
aa5196
aa5196
    # Rename directories for packaging
aa5196
    mv %{jdkimage} ${jdkname}
aa5196
    mv %{jreimage} ${jrename}
aa5196
aa5196
    # Release images have external debug symbols
aa5196
    if [ "x$suffix" = "x" ] ; then
aa5196
        # Keep the unstripped version for consumption by RHEL RPMs
aa5196
        tar -cJf ${unstrippedarchive} ${jdkname}
aa5196
        genchecksum ${unstrippedarchive}
aa5196
aa5196
        # Strip the files
aa5196
        for file in $(find ${jdkname} ${jrename} -type f) ; do
aa5196
            if file ${file} | grep -q 'ELF'; then
aa5196
                noextfile=${file/.so/};
aa5196
                objcopy --only-keep-debug ${file} ${noextfile}.debuginfo;
aa5196
                objcopy --add-gnu-debuglink=${noextfile}.debuginfo ${file};
aa5196
                strip -g ${file};
aa5196
            fi
aa5196
        done
aa5196
aa5196
        tar -cJf ${debugarchive} $(find ${jdkname} -name \*.debuginfo)
aa5196
        genchecksum ${debugarchive}
aa5196
aa5196
	mkdir ${docname}
aa5196
	mv ${docdir} ${docname}
aa5196
	mv ${bundledir}/${built_doc_archive} ${docname}
aa5196
	tar -cJf ${docarchive} ${docname}
aa5196
	genchecksum ${docarchive}
aa5196
aa5196
	mkdir ${miscname}
aa5196
	for s in 16 24 32 48 ; do
aa5196
	    cp -av ${srcdir}/src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png ${miscname}
aa5196
	done
aa5196
	cp -a ${srcdir}/src/sample ${miscname}
aa5196
	tar -cJf ${miscarchive} ${miscname}
aa5196
	genchecksum ${miscarchive}
aa5196
    fi
aa5196
aa5196
    tar -cJf ${jdkarchive} --exclude='**.debuginfo' ${jdkname}
aa5196
    genchecksum ${jdkarchive}
aa5196
aa5196
    tar -cJf ${jrearchive}  --exclude='**.debuginfo' ${jrename}
aa5196
    genchecksum ${jrearchive}
aa5196
aa5196
%if %{include_staticlibs}
aa5196
    # Static libraries (needed for building graal vm with native image)
aa5196
    # Tar as overlay. Transform to the JDK name, since we just want to "add"
aa5196
    # static libraries to that folder
aa5196
    tar -cJf ${staticarchive} \
aa5196
        --transform "s|^%{static_libs_image}/lib/*|${staticname}/lib/static/linux-%{archinstall}/glibc/|" "%{static_libs_image}/lib"
aa5196
    genchecksum ${staticarchive}
aa5196
%endif
aa5196
aa5196
    # Revert directory renaming so testing will run
aa5196
    # TODO: testing should run on the packaged JDK
aa5196
    mv ${jdkname} %{jdkimage}
aa5196
    mv ${jrename} %{jreimage}
aa5196
aa5196
    popd #images
aa5196
aa5196
}
aa5196
aa5196
%if %{build_hotspot_first}
aa5196
  # Build a fresh libjvm.so first and use it to bootstrap
aa5196
  cp -LR --preserve=mode,timestamps %{bootjdk} newboot
aa5196
  systemjdk=$(pwd)/newboot
aa5196
  buildjdk build/newboot ${systemjdk} %{hotspot_target} "release" "bundled" "internal"
aa5196
  mv build/newboot/jdk/lib/server/libjvm.so newboot/lib/server
aa5196
%else
aa5196
  systemjdk=%{bootjdk}
aa5196
%endif
aa5196
aa5196
for suffix in %{build_loop} ; do
aa5196
aa5196
  if [ "x$suffix" = "x" ] ; then
aa5196
      debugbuild=release
aa5196
  else
aa5196
      # change --something to something
aa5196
      debugbuild=`echo $suffix  | sed "s/-//g"`
aa5196
  fi
aa5196
  # We build with internal debug symbols and do
aa5196
  # our own stripping for one version of the
aa5196
  # release build
aa5196
  debug_symbols=internal
aa5196
aa5196
  builddir=%{buildoutputdir -- ${suffix}}
aa5196
  bootbuilddir=boot${builddir}
aa5196
  installdir=%{installoutputdir -- ${suffix}}
aa5196
  bootinstalldir=boot${installdir}
aa5196
  packagesdir=%{packageoutputdir -- ${suffix}}
aa5196
aa5196
  link_opt="%{link_type}"
aa5196
%if %{system_libs}
aa5196
  # Copy the source tree so we can remove all in-tree libraries
aa5196
  cp -a %{top_level_dir_name} %{top_level_dir_name_backup}
aa5196
  # Remove all libraries that are linked
aa5196
  sh %{SOURCE12} %{top_level_dir_name} full
aa5196
%endif
aa5196
  # Debug builds don't need same targets as release for
aa5196
  # build speed-up. We also avoid bootstrapping these
aa5196
  # slower builds.
aa5196
  if echo $debugbuild | grep -q "debug" ; then
aa5196
      maketargets="%{debug_targets}"
aa5196
      run_bootstrap=false
aa5196
  else
aa5196
      maketargets="%{release_targets}"
aa5196
      run_bootstrap=%{bootstrap_build}
aa5196
  fi
aa5196
  if ${run_bootstrap} ; then
aa5196
      buildjdk ${bootbuilddir} ${systemjdk} "%{bootstrap_targets}" ${debugbuild} ${link_opt} ${debug_symbols}
aa5196
      installjdk ${bootbuilddir} ${bootinstalldir}
aa5196
      buildjdk ${builddir} $(pwd)/${bootinstalldir}/images/%{jdkimage} "${maketargets}" ${debugbuild} ${link_opt} ${debug_symbols}
aa5196
      installjdk ${builddir} ${installdir}
aa5196
      %{!?with_artifacts:rm -rf ${bootinstalldir}}
aa5196
  else
aa5196
      buildjdk ${builddir} ${systemjdk} "${maketargets}" ${debugbuild} ${link_opt} ${debug_symbols}
aa5196
      installjdk ${builddir} ${installdir}
aa5196
  fi
aa5196
  packagejdk ${installdir} ${packagesdir}
aa5196
aa5196
%if %{system_libs}
aa5196
  # Restore original source tree we modified by removing full in-tree sources
aa5196
  rm -rf %{top_level_dir_name}
aa5196
  mv %{top_level_dir_name_backup} %{top_level_dir_name}
aa5196
%endif
aa5196
aa5196
# build cycles
aa5196
done # end of release / debug cycle loop
aa5196
aa5196
%check
aa5196
aa5196
# We test debug first as it will give better diagnostics on a crash
aa5196
for suffix in %{build_loop} ; do
aa5196
aa5196
# portable builds have static_libs embedded, thus top_dir_abs_main_build_path is same as  top_dir_abs_staticlibs_build_path
aa5196
top_dir_abs_main_build_path=$(pwd)/%{installoutputdir -- ${suffix}}
aa5196
%if %{include_staticlibs}
aa5196
top_dir_abs_staticlibs_build_path=${top_dir_abs_main_build_path}
aa5196
%endif
aa5196
aa5196
export JAVA_HOME=${top_dir_abs_main_build_path}/images/%{jdkimage}
aa5196
aa5196
#check Shenandoah is enabled
aa5196
%if %{use_shenandoah_hotspot}
aa5196
$JAVA_HOME//bin/java -XX:+UseShenandoahGC -version
aa5196
%endif
aa5196
aa5196
# Check unlimited policy has been used
aa5196
$JAVA_HOME/bin/javac -d . %{SOURCE13}
aa5196
$JAVA_HOME/bin/java --add-opens java.base/javax.crypto=ALL-UNNAMED TestCryptoLevel
aa5196
aa5196
# Check ECC is working
aa5196
$JAVA_HOME/bin/javac -d . %{SOURCE14}
aa5196
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE14})|sed "s|\.java||")
aa5196
aa5196
# Check system crypto (policy) is active and can be disabled
aa5196
# Test takes a single argument - true or false - to state whether system
aa5196
# security properties are enabled or not.
aa5196
$JAVA_HOME/bin/javac -d . %{SOURCE15}
aa5196
export PROG=$(echo $(basename %{SOURCE15})|sed "s|\.java||")
aa5196
export SEC_DEBUG="-Djava.security.debug=properties"
aa5196
#Portable specific: set false whereas its true for upstream
aa5196
$JAVA_HOME/bin/java ${SEC_DEBUG} ${PROG} false
aa5196
$JAVA_HOME/bin/java ${SEC_DEBUG} -Djava.security.disableSystemPropertiesFile=true ${PROG} false
aa5196
aa5196
# Check correct vendor values have been set
aa5196
$JAVA_HOME/bin/javac -d . %{SOURCE16}
aa5196
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE16})|sed "s|\.java||") "%{oj_vendor}" "%{oj_vendor_url}" "%{oj_vendor_bug_url}" "%{oj_vendor_version}"
aa5196
aa5196
# Check java launcher has no SSB mitigation
aa5196
if ! nm $JAVA_HOME/bin/java | grep set_speculation ; then true ; else false; fi
aa5196
aa5196
# Check alt-java launcher has SSB mitigation on supported architectures
aa5196
%ifarch %{ssbd_arches}
aa5196
nm $JAVA_HOME/bin/%{alt_java_name} | grep set_speculation
aa5196
%else
aa5196
if ! nm $JAVA_HOME/bin/%{alt_java_name} | grep set_speculation ; then true ; else false; fi
aa5196
%endif
aa5196
aa5196
# Check translations are available for new timezones
aa5196
$JAVA_HOME/bin/javac -d . %{SOURCE18}
aa5196
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE18})|sed "s|\.java||") JRE
aa5196
$JAVA_HOME/bin/java -Djava.locale.providers=CLDR $(echo $(basename %{SOURCE18})|sed "s|\.java||") CLDR
aa5196
aa5196
%if %{include_staticlibs}
aa5196
# Check debug symbols in static libraries (smoke test)
aa5196
export STATIC_LIBS_HOME=${top_dir_abs_staticlibs_build_path}/images/%{static_libs_image}
aa5196
readelf --debug-dump $STATIC_LIBS_HOME/lib/libfdlibm.a | grep w_remainder.c
aa5196
readelf --debug-dump $STATIC_LIBS_HOME/lib/libfdlibm.a | grep e_remainder.c
aa5196
%endif
aa5196
aa5196
# Release builds strip the debug symbols into external .debuginfo files
aa5196
if [ "x$suffix" = "x" ] ; then
aa5196
  so_suffix="debuginfo"
aa5196
else
aa5196
  so_suffix="so"
aa5196
fi
aa5196
# Check debug symbols are present and can identify code
aa5196
find "$JAVA_HOME" -iname "*.$so_suffix" -print0 | while read -d $'\0' lib
aa5196
do
aa5196
  if [ -f "$lib" ] ; then
aa5196
    echo "Testing $lib for debug symbols"
aa5196
    # All these tests rely on RPM failing the build if the exit code of any set
aa5196
    # of piped commands is non-zero.
aa5196
aa5196
    # Test for .debug_* sections in the shared object. This is the main test
aa5196
    # Stripped objects will not contain these
aa5196
    eu-readelf -S "$lib" | grep "] .debug_"
aa5196
    test $(eu-readelf -S "$lib" | grep -E "\]\ .debug_(info|abbrev)" | wc --lines) == 2
aa5196
aa5196
    # Test FILE symbols. These will most likely be removed by anything that
aa5196
    # manipulates symbol tables because it's generally useless. So a nice test
aa5196
    # that nothing has messed with symbols
aa5196
    old_IFS="$IFS"
aa5196
    IFS=$'\n'
aa5196
    for line in $(eu-readelf -s "$lib" | grep "00000000      0 FILE    LOCAL  DEFAULT")
aa5196
    do
aa5196
     # We expect to see .cpp files, except for architectures like aarch64 and
aa5196
     # s390 where we expect .o and .oS files
aa5196
      echo "$line" | grep -E "ABS ((.*/)?[-_a-zA-Z0-9]+\.(c|cc|cpp|cxx|o|oS))?$"
aa5196
    done
aa5196
    IFS="$old_IFS"
aa5196
aa5196
    # If this is the JVM, look for javaCalls.(cpp|o) in FILEs, for extra sanity checking
aa5196
    if [ "`basename $lib`" = "libjvm.so" ]; then
aa5196
      eu-readelf -s "$lib" | \
aa5196
        grep -E "00000000      0 FILE    LOCAL  DEFAULT      ABS javaCalls.(cpp|o)$"
aa5196
    fi
aa5196
aa5196
    # Test that there are no .gnu_debuglink sections pointing to another
aa5196
    # debuginfo file. There shouldn't be any debuginfo files, so the link makes
aa5196
    # no sense either
aa5196
    eu-readelf -S "$lib" | grep 'gnu'
aa5196
    if eu-readelf -S "$lib" | grep '] .gnu_debuglink' | grep PROGBITS; then
aa5196
      echo "bad .gnu_debuglink section."
aa5196
      eu-readelf -x .gnu_debuglink "$lib"
aa5196
      false
aa5196
    fi
aa5196
  fi
aa5196
done
aa5196
aa5196
# Make sure gdb can do a backtrace based on line numbers on libjvm.so
aa5196
# javaCalls.cpp:58 should map to:
aa5196
# http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/ff3b27e6bcc2/src/share/vm/runtime/javaCalls.cpp#l58
aa5196
# Using line number 1 might cause build problems. See:
aa5196
# https://bugzilla.redhat.com/show_bug.cgi?id=1539664
aa5196
# https://bugzilla.redhat.com/show_bug.cgi?id=1538767
aa5196
gdb -q "$JAVA_HOME/bin/java" <
aa5196
handle SIGSEGV pass nostop noprint
aa5196
handle SIGILL pass nostop noprint
aa5196
set breakpoint pending on
aa5196
break javaCalls.cpp:58
aa5196
commands 1
aa5196
backtrace
aa5196
quit
aa5196
end
aa5196
run -version
aa5196
EOF
aa5196
%ifarch %{gdb_arches}
aa5196
grep 'JavaCallWrapper::JavaCallWrapper' gdb.out
aa5196
%endif
aa5196
aa5196
# Check src.zip has all sources. See RHBZ#1130490
aa5196
$JAVA_HOME/bin/jar -tf $JAVA_HOME/lib/src.zip | grep 'sun.misc.Unsafe'
aa5196
aa5196
# Check class files include useful debugging information
aa5196
$JAVA_HOME/bin/javap -l java.lang.Object | grep "Compiled from"
aa5196
$JAVA_HOME/bin/javap -l java.lang.Object | grep LineNumberTable
aa5196
$JAVA_HOME/bin/javap -l java.lang.Object | grep LocalVariableTable
aa5196
aa5196
# Check generated class files include useful debugging information
aa5196
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep "Compiled from"
aa5196
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LineNumberTable
aa5196
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LocalVariableTable
aa5196
aa5196
# build cycles check
aa5196
done
aa5196
aa5196
%install
aa5196
aa5196
for suffix in %{build_loop} ; do
aa5196
aa5196
    packagesdir=%{packageoutputdir -- ${suffix}}
aa5196
aa5196
    if [ "x$suffix" == "x" ] ; then
aa5196
        nameSuffix=""
aa5196
    else
aa5196
        nameSuffix=`echo "$suffix"| sed s/-/./`
aa5196
    fi
aa5196
aa5196
    # These definitions should match those in installjdk
aa5196
    jdkarchive=${packagesdir}/%{jdkportablearchive -- "$nameSuffix"}
aa5196
    jrearchive=${packagesdir}/%{jreportablearchive -- "$nameSuffix"}
aa5196
    staticarchive=${packagesdir}/%{staticlibsportablearchive -- "$nameSuffix"}
aa5196
    debugarchive=${packagesdir}/%{jdkportablearchive -- "${nameSuffix}.debuginfo"}
aa5196
    unstrippedarchive=${packagesdir}/%{jdkportablearchive -- "${nameSuffix}.unstripped"}
aa5196
aa5196
    mkdir -p $RPM_BUILD_ROOT%{_jvmdir}
aa5196
aa5196
    mv ${jdkarchive} $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
    mv ${jdkarchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
    mv ${jrearchive} $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
    mv ${jrearchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
aa5196
%if %{include_staticlibs}
aa5196
    mv ${staticarchive} $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
    mv ${staticarchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
%endif
aa5196
aa5196
    if [ "x$suffix" = "x" ] ; then
aa5196
        mv ${debugarchive} $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
        mv ${debugarchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
        mv ${unstrippedarchive} $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
        mv ${unstrippedarchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
    fi
aa5196
done
aa5196
aa5196
# These definitions should match those in installjdk
aa5196
# Install outside the loop as there are no debug variants
aa5196
docarchive=${packagesdir}/%{docportablearchive}
aa5196
miscarchive=${packagesdir}/%{miscportablearchive}
aa5196
aa5196
mv ${docarchive} $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
mv ${docarchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
mv ${miscarchive} $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
mv ${miscarchive}.sha256sum $RPM_BUILD_ROOT%{_jvmdir}/
aa5196
aa5196
# To show sha in the build log
aa5196
for file in `ls $RPM_BUILD_ROOT%{_jvmdir}/*.sha256sum` ; do
aa5196
    ls -l $file ;
aa5196
    cat $file ;
aa5196
done
aa5196
aa5196
%if %{include_normal_build}
aa5196
aa5196
%files
aa5196
# main package builds always
aa5196
%{_jvmdir}/%{jreportablearchive -- %%{nil}}
aa5196
%{_jvmdir}/%{jreportablearchive -- %%{nil}}.sha256sum
aa5196
%else
aa5196
%files
aa5196
# placeholder
aa5196
%endif
aa5196
aa5196
%files devel
aa5196
%{_jvmdir}/%{jdkportablearchive -- %%{nil}}
aa5196
%{_jvmdir}/%{jdkportablearchive -- .debuginfo}
aa5196
%{_jvmdir}/%{jdkportablearchive -- %%{nil}}.sha256sum
aa5196
%{_jvmdir}/%{jdkportablearchive -- .debuginfo}.sha256sum
aa5196
aa5196
%if %{include_staticlibs}
aa5196
%files static-libs
aa5196
%{_jvmdir}/%{staticlibsportablearchive -- %%{nil}}
aa5196
%{_jvmdir}/%{staticlibsportablearchive -- %%{nil}}.sha256sum
aa5196
%endif
aa5196
aa5196
%files unstripped
aa5196
%{_jvmdir}/%{jdkportablearchive -- .unstripped}
aa5196
%{_jvmdir}/%{jdkportablearchive -- .unstripped}.sha256sum
aa5196
aa5196
%if %{include_debug_build}
aa5196
aa5196
%files slowdebug
aa5196
%{_jvmdir}/%{jreportablearchive -- .slowdebug}
aa5196
%{_jvmdir}/%{jreportablearchive -- .slowdebug}.sha256sum
aa5196
aa5196
%files devel-slowdebug
aa5196
%{_jvmdir}/%{jdkportablearchive -- .slowdebug}
aa5196
%{_jvmdir}/%{jdkportablearchive -- .slowdebug}.sha256sum
aa5196
aa5196
%if %{include_staticlibs}
aa5196
%files static-libs-slowdebug
aa5196
%{_jvmdir}/%{staticlibsportablearchive -- .slowdebug}
aa5196
%{_jvmdir}/%{staticlibsportablearchive -- .slowdebug}.sha256sum
aa5196
%endif
aa5196
aa5196
%endif
aa5196
aa5196
%if %{include_fastdebug_build}
aa5196
aa5196
%files fastdebug
aa5196
%{_jvmdir}/%{jreportablearchive -- .fastdebug}
aa5196
%{_jvmdir}/%{jreportablearchive -- .fastdebug}.sha256sum
aa5196
aa5196
%files devel-fastdebug
aa5196
%{_jvmdir}/%{jdkportablearchive -- .fastdebug}
aa5196
%{_jvmdir}/%{jdkportablearchive -- .fastdebug}.sha256sum
aa5196
aa5196
%if %{include_staticlibs}
aa5196
%files static-libs-fastdebug
aa5196
%{_jvmdir}/%{staticlibsportablearchive -- .fastdebug}
aa5196
%{_jvmdir}/%{staticlibsportablearchive -- .fastdebug}.sha256sum
aa5196
%endif
aa5196
aa5196
%endif
aa5196
aa5196
%files docs
aa5196
%{_jvmdir}/%{docportablearchive}
aa5196
%{_jvmdir}/%{docportablearchive}.sha256sum
aa5196
aa5196
%files misc
aa5196
%{_jvmdir}/%{miscportablearchive}
aa5196
%{_jvmdir}/%{miscportablearchive}.sha256sum
aa5196
aa5196
%changelog
aa5196
* Mon Apr 24 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.19.0.7-2
aa5196
- Sync with existing RHEL 8 build, in order to start building portables on RHEL 8
aa5196
- Remove use of devtoolset (RHEL 8 native compilers should be sufficient)
aa5196
- Lower tzdata requirement as build root does not yet contain the 0day tzdata update
aa5196
aa5196
* Tue Apr 18 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.19.0.7-2
aa5196
- Add missing Swing release note
aa5196
aa5196
* Fri Apr 14 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.19.0.7-1
aa5196
- Update to jdk-11.0.19.0+7
aa5196
- Update release notes to 11.0.19.0+7
aa5196
- Require tzdata 2023c due to local inclusion of JDK-8274864 & JDK-8305113
aa5196
- Reintroduce generate_source_tarball.sh from RHEL 9
aa5196
- Update generate_tarball.sh to add support for passing a boot JDK to the configure run
aa5196
- Add POSIX-friendly error codes to generate_tarball.sh and fix whitespace
aa5196
- Remove .jcheck and GitHub support when generating tarballs, as done in upstream release tarballs
aa5196
- Rebase FIPS support against 11.0.19+6
aa5196
- Rebase RH1750419 alt-java patch against 11.0.19+6
aa5196
- ** This tarball is embargoed until 2023-04-18 @ 1pm PT. **
aa5196
- Resolves: rhbz#2185182
aa5196
aa5196
* Mon Feb 27 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.18.0.10-6
aa5196
- Backport SHA-3 support for PKCS11 provider
aa5196
- Resolves: rhbz#2108712
aa5196
aa5196
* Sun Feb 26 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.18.0.10-5
aa5196
- Add docs, icons and samples to the portable output
aa5196
- Make sure generated checksums work and don't include full path
aa5196
- The docs directory is a subdirectory of images, so remove confusing separate copying
aa5196
aa5196
* Sun Feb 26 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.18.0.10-4
aa5196
- Build with internal debuginfo as in RHEL and then create a stripped variant ourselves for the portable release build
aa5196
- Restore compiler flags to those used in RHEL
aa5196
- Drop no longer needed static library patch, as we always have internal debuginfo now
aa5196
aa5196
* Sun Feb 26 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.18.0.10-3
aa5196
- Separate JDK packaging into a separate function
aa5196
- Use variables to make it clearer what is going on
aa5196
- Use a package output directory as we do for building and installing
aa5196
aa5196
* Sat Feb 25 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.18.0.10-2
aa5196
- Adapt the portable build to use the same system library handling as RHEL builds
aa5196
aa5196
* Fri Jan 13 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.18.0.10-2
aa5196
- Add missing release note for JDK-8295687
aa5196
- Resolves: rhbz#2160111
aa5196
aa5196
* Wed Jan 11 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.18.0.10-1
aa5196
- Update to jdk-11.0.18+10 (GA)
aa5196
- Update release notes to 11.0.18+10
aa5196
- Drop local copies of JDK-8294357 & JDK-8295173 now upstream contains tzdata 2022e
aa5196
- Drop local copy of JDK-8275535 which is finally upstream
aa5196
- Drop local copy of JDK-8293834 now this is upstream
aa5196
- Require tzdata 2022g due to inclusion of JDK-8296108, JDK-8296715 & JDK-8297804
aa5196
- Update TestTranslations.java to test the new America/Ciudad_Juarez zone
aa5196
- ** This tarball is embargoed until 2023-01-17 @ 1pm PT. **
aa5196
- Resolves: rhbz#2160111
aa5196
aa5196
* Sat Oct 15 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.17.0.8-2
aa5196
- Update in-tree tzdata to 2022e with JDK-8294357 & JDK-8295173
aa5196
- Update CLDR data with Europe/Kyiv (JDK-8293834)
aa5196
- Drop JDK-8292223 patch which we found to be unnecessary
aa5196
- Update TestTranslations.java to use public API based on TimeZoneNamesTest upstream
aa5196
- Related: rhbz#2133695
aa5196
aa5196
* Wed Oct 12 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.17.0.8-1
aa5196
- Update to jdk-11.0.17+8 (GA)
aa5196
- Update release notes to 11.0.17+8
aa5196
- Bump HarfBuzz bundled version to 4.4.1 following JDK-8289853
aa5196
- Bump FreeType bundled version to 2.12.1 following JDK-8290334
aa5196
- Resolves: rhbz#2133695
aa5196
aa5196
* Fri Oct 07 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.16.1.1-3
aa5196
- Switch to using devtoolset-8 (as java-17-openjdk portable build does) as prep for building newer HarfBuzz
aa5196
- Escape quotes in configure and make arguments so they can be passed to scl
aa5196
- General cleanup of redundant build dependencies, comments and whitespace
aa5196
aa5196
* Tue Aug 30 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.16.1.1-2
aa5196
- Switch to static builds, reducing system dependencies and making build more portable
aa5196
- Resolves: rhbz#2121275
aa5196
aa5196
* Wed Aug 24 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.16.1.1-1
aa5196
- Update to jdk-11.0.16.1+1
aa5196
- Update release notes to 11.0.16.1+1
aa5196
- Add patch to provide translations for Europe/Kyiv added in tzdata2022b
aa5196
- Add test to ensure timezones can be translated
aa5196
- Resolves: rhbz#2119528
aa5196
aa5196
* Sun Jul 17 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.16.0.8-1
aa5196
- Update to shenandoah-jdk-11.0.16+8 (GA)
aa5196
- Switch to GA mode for final release.
aa5196
- Update release notes
aa5196
- This tarball is embargoed until 2022-07-19 @ 1pm PT.
aa5196
aa5196
* Sat Jul 16 2022 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.16.0.7-0.1.ea
aa5196
- Commented out crypto-policies BR as it was failing for portable
aa5196
- Tweaked line to print release information for portable
aa5196
aa5196
* Sat Jul 16 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.16.0.7-0.1.ea
aa5196
- Update to jdk-11.0.16+7
aa5196
- Update release notes to 11.0.16+7
aa5196
- Switch to EA mode for 11.0.16 pre-release builds.
aa5196
- Use same tarball naming style as java-17-openjdk and java-latest-openjdk
aa5196
- Drop JDK-8257794 patch now upstreamed
aa5196
- Print release file during build, which should now include a correct SOURCE value from .src-rev
aa5196
- Update tarball script with IcedTea GitHub URL and .src-rev generation
aa5196
- Use "git apply" with patches in the tarball script to allow binary diffs
aa5196
- Include script to generate bug list for release notes
aa5196
- Update tzdata requirement to 2022a to match JDK-8283350
aa5196
- Make use of the vendor version string to store our version & release rather than an upstream release date
aa5196
- Explicitly require crypto-policies during build and runtime for system security properties
aa5196
- Resolves: rhbz#2083325
aa5196
aa5196
* Fri Jul 08 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.15.0.10-6
aa5196
- System security properties are disabled by default on portable.
aa5196
- Commented out lines which are not applicable for portable.
aa5196
aa5196
* Fri Jul 08 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.15.0.10-6
aa5196
- Rebase FIPS patches from fips branch and simplify by using a single patch from that repository
aa5196
- * RH2036462: sun.security.pkcs11.wrapper.PKCS11.getInstance breakage
aa5196
- * RH2090378: Revert to disabling system security properties and FIPS mode support together
aa5196
- Rebase RH1648249 nss.cfg patch so it applies after the FIPS patch
aa5196
- Enable system security properties in the RPM (now disabled by default in the FIPS repo)
aa5196
- Improve security properties test to check both enabled and disabled behaviour
aa5196
- Run security properties test with property debugging on
aa5196
- Resolves: rhbz#2099839
aa5196
- Resolves: rhbz#2100676
aa5196
aa5196
* Thu Jun 30 2022 Francisco Ferrari Bihurriet <fferrari@redhat.com> - 1:11.0.15.0.10-5
aa5196
- RH2007331: SecretKey generate/import operations don't add the CKA_SIGN attribute in FIPS mode
aa5196
- Resolves: rhbz#2102434
aa5196
aa5196
* Thu Jun 30 2022 Stephan Bergmann <sbergman@redhat.com> - 1:11.0.15.0.10-4
aa5196
- Fix flatpak builds by exempting them from bootstrap
aa5196
- Resolves: rhbz#2067189
aa5196
aa5196
* Wed May 25 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.15.0.10-3
aa5196
- Exclude s390x from the gdb test on RHEL 7 where we see failures with the portable build
aa5196
aa5196
* Thu May 19 2022 Jiri Vanek <jvanek@redhat.com> - 1:11.0.15.0.10-2
aa5196
- to pass aqa:
aa5196
- removed copy system tzdb in favour of in-tree
aa5196
- removed Patch2: rh1648644-java_access_bridge_privileged_security.patch
aa5196
- This is not intended to release untill we decide proper steps
aa5196
aa5196
* Thu May 19 2022 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.15.0.10-2
aa5196
- Added cosmetic changes to bypass a failure for s390x
aa5196
aa5196
* Wed May 11 2022 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.15.0.10-1
aa5196
- Update tzdata from 2021a to 2021e as in upstream rhel spec
aa5196
aa5196
* Sun Apr 24 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.15.0.10-1
aa5196
- Update to jdk-11.0.15.0+10
aa5196
- Update release notes to 11.0.15.0+10
aa5196
- Remove JDK-8284920 fix for XPath regression now it's upstreamed
aa5196
- Related: rhbz#2073422
aa5196
- Resolves: rhbz#2073595
aa5196
aa5196
* Sat Apr 16 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.15.0.9-3
aa5196
- Add JDK-8284920 fix for XPath regression
aa5196
- Related: rhbz#2073422
aa5196
aa5196
* Fri Apr 15 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.15.0.9-2
aa5196
- Remove security items from release notes that were only in 17u and N/A for 11u
aa5196
- Related: rhbz#2073422
aa5196
aa5196
* Wed Apr 13 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.15.0.9-1
aa5196
- Update to jdk-11.0.15.0+9
aa5196
- Update release notes to 11.0.15.0+9
aa5196
- Rebase RH1996182 FIPS patch after JDK-8254410
aa5196
- ** This tarball is embargoed until 2022-04-19 @ 1pm PT. **
aa5196
- Related: rhbz#2073422
aa5196
- Resolves: rhbz#2073422
aa5196
aa5196
* Tue Apr 12 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.15.0.1-0.1.ea
aa5196
- Update to jdk-11.0.15.0+1
aa5196
- Update release notes to 11.0.15.0+1
aa5196
- Switch to EA mode for 11.0.15 pre-release builds.
aa5196
- Related: rhbz#2050458
aa5196
aa5196
* Mon Feb 28 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.1.1-6
aa5196
- Introduce tests/tests.yml, based on the one in RHEL 8
aa5196
- Correction to the previous changelog entry
aa5196
- Resolves: rhbz#2058489
aa5196
aa5196
* Mon Feb 28 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.1.1-5
aa5196
- Detect NSS at runtime for FIPS detection
aa5196
- Resolves: rhbz#2052827
aa5196
aa5196
* Wed Feb 23 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.1.1-4
aa5196
- Add JDK-8275535 patch to fix LDAP authentication issue.
aa5196
- Resolves: rhbz#2053523
aa5196
aa5196
* Thu Feb 17 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.1.1-3
aa5196
- Refactor build functions so we can build just HotSpot without any attempt at installation.
aa5196
- Sync gdb test with java-1.8.0-openjdk.
aa5196
- Improve architecture restrictions for the gdb test.
aa5196
- Replace -mstackrealign with -mincoming-stack-boundary=2 -mpreferred-stack-boundary=4 on x86_32 for stack alignment
aa5196
- Explicitly list JIT architectures rather than relying on those with slowdebug builds
aa5196
- Disable the serviceability agent on Zero architectures even when the architecture itself is supported
aa5196
- Add backport of JDK-8257794 to fix bogus assert on slowdebug x86-32 Zero builds
aa5196
- Related: rhbz#2052834
aa5196
aa5196
* Wed Feb 16 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.1.1-2
aa5196
- Fix buildjdk function to use local debuglevel and debug_symbols
aa5196
- Pass debug_symbols into buildjdk function as they need to differ between builds on portable
aa5196
- Move legacy-jre-image to join other targets and avoid building it for bootstrap
aa5196
aa5196
* Fri Feb 11 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.1.1-1
aa5196
- Update to jdk-11.0.14.1+1
aa5196
- Update release notes to 11.0.14.1+1
aa5196
- Resolves: rhbz#2052809
aa5196
aa5196
* Mon Jan 31 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.0.8-6
aa5196
- Turn off bootstrapping for slow debug builds, which are particularly slow on ppc64le.
aa5196
- Related: rhbz#2022821
aa5196
aa5196
* Fri Jan 28 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.0.9-5
aa5196
- Reduce disk footprint by removing build artifacts by default.
aa5196
- Related: rhbz#1999938
aa5196
aa5196
* Thu Jan 27 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.0.9-4
aa5196
- Restructure the build so a minimal initial build is then used for the final build (with docs)
aa5196
- This reduces pressure on the system JDK and ensures the JDK being built can do a full build
aa5196
- Related: rhbz#1999938
aa5196
aa5196
* Tue Jan 18 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.0.9-3
aa5196
- Separate crypto policy initialisation from FIPS initialisation, now they are no longer interdependent
aa5196
aa5196
* Tue Jan 18 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.0.9-2
aa5196
- Fix FIPS issues in native code and with initialisation of java.security.Security
aa5196
- Minor correction to an old changelog entry
aa5196
- Related: rhbz#2039366
aa5196
aa5196
* Mon Jan 17 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.0.9-1
aa5196
- Update to jdk-11.0.14.0+9
aa5196
- Update release notes to 11.0.14.0+9
aa5196
- Switch to GA mode for final release.
aa5196
- This tarball is embargoed until 2022-01-18 @ 1pm PT.
aa5196
- Resolves: rhbz#2039366
aa5196
aa5196
* Fri Jan 14 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.0.8-0.1.ea
aa5196
- Update to jdk-11.0.14.0+8
aa5196
- Update release notes to 11.0.14.0+8
aa5196
- Resolves: rhbz#2022821
aa5196
aa5196
* Fri Jan 14 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.14.0.1-0.1.ea
aa5196
- Update to jdk-11.0.14.0+1
aa5196
- Update release notes to 11.0.14.0+1
aa5196
- Switch to EA mode for 11.0.14 pre-release builds.
aa5196
- Rename blacklisted.certs to blocked.certs following JDK-8253866
aa5196
- Rebase RH1996182 login patch and drop redundant security policy extension after JDK-8269034
aa5196
- Related: rhbz#2022821
aa5196
aa5196
* Fri Jan 14 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.13.0.8-7
aa5196
- Remove explicit compiler flags which should be handled by the upstream build
aa5196
  (-std=gnu++98, -fno-delete-null-pointer-checks, -fno-lifetime-dse)
aa5196
- Resolves: rhbz#1966234
aa5196
aa5196
* Thu Dec 23 2021 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.13.0.8-6
aa5196
- Use 'sql:' prefix in nss.fips.cfg as F35+ no longer ship the legacy
aa5196
  secmod.db file as part of NSS
aa5196
- Resolves: rhbz#2023535
aa5196
aa5196
* Thu Dec 23 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.13.0.8-5
aa5196
- Replaced hardcoded 11 by featurever where appropriate
aa5196
- Fixed comment of `for slowdebug` to correct `any debug`
aa5196
- Related: rhbz#2022821
aa5196
aa5196
* Fri Dec 17 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.13.0.8-4
aa5196
- Added rh1991003-enable_fips_keys_import.patch
aa5196
aa5196
* Mon Nov 22 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.13.0.8-3
aa5196
- Fixed bogus date warnings.
aa5196
aa5196
* Mon Oct 25 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.13.0.8-2
aa5196
- cacerts symlink is resolved before passed to configure
aa5196
- https://issues.redhat.com/browse/OPENJDK-487
aa5196
aa5196
* Wed Oct 13 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.13.0.8-1
aa5196
- Update to jdk-11.0.13.0+8
aa5196
- Update release notes to 11.0.13.0+8
aa5196
- Switch to GA mode for final release.
aa5196
- This tarball is embargoed until 2021-10-19 @ 1pm PT.
aa5196
- Update release notes to 11.0.13.0+7
aa5196
- Remove non-Free test from source tarball.
aa5196
- Drop JDK-8269668 patch which is now applied upstream.
aa5196
- Related: rhbz#2011826
aa5196
- Resolves: rhbz#2012334
aa5196
aa5196
* Mon Oct 11 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.12.0.7-14
aa5196
- Disable FIPS mode detection using NSS in favour of using /proc/sys/crypto/fips_enabled for now, so we don't link against NSS
aa5196
- effectively disabled Patch1008: rh1929465-improve_system_FIPS_detection.patch by settng --enable-sysconf-nss to --disable-sysconf-nss
aa5196
- the enable-sysconf-nss was bringing in hard depndence on nss. Without nss, even in non fips, jvm had not even started
aa5196
aa5196
* Mon Oct 04 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.12.0.7-13
aa5196
- fixed bugzilla component. It was pointing to java-x-vendor-portable due to recent rename
aa5196
aa5196
* Thu Sep 30 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.12.0.7-12
aa5196
- added and enabled fips patches and nss.fips.cfg
aa5196
- source17: nss.fips.cfg.in,patch1001: rh1655466-global_crypto_and_fips.patch
aa5196
  patch1002: rh1818909-fips_default_keystore_type.patch patch1004: rh1860986-disable_tlsv1.3_in_fips_mode.patch
aa5196
  patch1007: rh1915071-always_initialise_configurator_access.patch patch1008: rh1929465-improve_system_FIPS_detection.patch
aa5196
  patch1009: rh1996182-login_to_nss_software_token.patch patch1010: rh1996182-extend_security_policy.patch
aa5196
aa5196
* Mon Sep 20 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.12.0.7-11
aa5196
- enable long time commented out patch1,patch2,patch4,patch7,patch1000
aa5196
aa5196
* Wed Sep 08 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.12.0.7-9
aa5196
- add and used patch8 jdk8269668-rh1977671-aarch64_lib_path_fix.patch
aa5196
- change STATIC_LIBS_HOME variable to expand correctly to fix build issues
aa5196
aa5196
* Wed Sep 08 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.12.0.7-8
aa5196
- Added and used source15 TestSecurityProperties.java
aa5196
aa5196
* Wed Sep 08 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.12.0.7-7
aa5196
- added dummy palceholder empty (with comment) files to keep track with rpms
aa5196
- added define _lto_cflags %%{nil}
aa5196
aa5196
* Wed Sep 08 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.12.0.7-6
aa5196
- cosmetic changes whcih may have small effect to code
aa5196
- added include_staticlibs switch
aa5196
- reversed build loop to debug first
aa5196
- reordered subpackages
aa5196
- used the dummy requires/provides
aa5196
aa5196
* Wed Sep 08 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.12.0.7-5
aa5196
- cosmetic changes without efect on code
aa5196
aa5196
* Mon Aug 16 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.12.0.7-4
aa5196
- renamed to java-11-openjdk-portable
aa5196
- adapted pacakges to not contain double portbale in name
aa5196
aa5196
* Mon Aug 02 2021 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.12.0.7-3
aa5196
- Update static-libs packaging to new layout
aa5196
aa5196
* Wed Jul 21 2021 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.12.0.7-2
aa5196
- Disable stripping of debug symbols for static libraries part of
aa5196
  the -static-libs sub-package.
aa5196
aa5196
* Tue Jul 20 2021 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.12.0.7-1
aa5196
- Build static-libs-image and package resulting files via -static-libs
aa5196
  sub-package.
aa5196
aa5196
* Tue Jul 13 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.12.0.7-0
aa5196
- Update to jdk-11.0.12.0+7
aa5196
- Update release notes to 11.0.12.0+7
aa5196
- Switch to GA mode for final release.
aa5196
- This tarball is embargoed until 2021-07-20 @ 1pm PT.
aa5196
- Resolves: rhbz#1972395
aa5196
aa5196
* Mon Jun 28 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.12.0.1-0.0.ea
aa5196
- Update to jdk-11.0.12.0+1
aa5196
- Update release notes to 11.0.12.0+1
aa5196
- Switch to EA mode for 11.0.12 pre-release builds.
aa5196
- Resolves: rhbz#1967374
aa5196
aa5196
* Mon Apr 12 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.11.0.9-0
aa5196
- Update to jdk-11.0.11.0+9
aa5196
- Update release notes to 11.0.11.0+9
aa5196
- Switch to GA mode for final release.
aa5196
- This tarball is embargoed until 2021-04-20 @ 1pm PT.
aa5196
- Resolves: rhbz#1940228
aa5196
aa5196
* Sun Apr 11 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.11.0.7-0.0.ea
aa5196
- Update to jdk-11.0.11.0+7
aa5196
- Update release notes to 11.0.11.0+7
aa5196
- Resolves: rhbz#1938082
aa5196
aa5196
* Fri Apr 09 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.11.0.6-0.0.ea
aa5196
- Update to jdk-11.0.11.0+6
aa5196
- Update release notes to 11.0.11.0+6
aa5196
- Resolves: rhbz#1938082
aa5196
aa5196
* Tue Apr 06 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.11.0.5-0.0.ea
aa5196
- Update to jdk-11.0.11.0+5
aa5196
- Update release notes to 11.0.11.0+5
aa5196
- Resolves: rhbz#1938082
aa5196
aa5196
* Mon Mar 29 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.11.0.4-0.0.ea
aa5196
- Update to jdk-11.0.11.0+4
aa5196
- Update release notes to 11.0.11.0+4
aa5196
- Resolves: rhbz#1938082
aa5196
aa5196
* Fri Mar 19 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.11.0.3-0.2.ea
aa5196
- Fix issue where CheckVendor.java test erroneously passes when it should fail.
aa5196
- Add proper quoting so '&' is not treated as a special character by the shell.
aa5196
aa5196
* Tue Mar 16 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.11.0.3-0.1.ea
aa5196
- Fix for debug symbols check.
aa5196
aa5196
* Mon Mar 08 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.11.0.3-0.0.ea
aa5196
- Update to jdk-11.0.11.0+3
aa5196
- Update release notes to 11.0.11.0+3
aa5196
aa5196
* Tue Mar 02 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.11.0.2-0.0.ea
aa5196
- Update to jdk-11.0.11.0+2
aa5196
- Update release notes to 11.0.11.0+2
aa5196
aa5196
* Sun Feb 21 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.11.0.1-0.0.ea
aa5196
- Add comment for tzdata-java
aa5196
aa5196
* Sun Feb 21 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.11.0.1-0.0.ea
aa5196
- Update to jdk-11.0.11.0+1
aa5196
- Update release notes to 11.0.11.0+1
aa5196
- Switch to EA mode for 11.0.11 pre-release builds
aa5196
aa5196
* Thu Feb 18 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.10.0.9-3
aa5196
- Changes to replace boot-jdk from embeded-java to java-unsafe
aa5196
- update tzdata-java from 2020b to 2021a
aa5196
aa5196
* Fri Feb 05 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.10.0.9-2
aa5196
- Changes to generate sha256sum for each linux-portable build artifacts inside RPM
aa5196
aa5196
* Mon Jan 25 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.10.0.9-1
aa5196
- Fix debug and fastdebug descriptions to emphasise the difference is optimisation or no optimisation.
aa5196
- Cleanup package descriptions and version number placement.
aa5196
- Resolves: rhbz#1908972
aa5196
aa5196
* Mon Jan 25 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.10.0.9-1
aa5196
- Removed lib-style provides for fastdebug_suffix_unquoted
aa5196
- Fixed missing condition for fastdebug packages being counted as debug ones
aa5196
- Fix typo in variable
aa5196
- Resolves: rhbz#1908972
aa5196
aa5196
* Fri Jan 15 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.10.0.9-0
aa5196
- Update to jdk-11.0.10.0+9
aa5196
- Update release notes to 11.0.10.0+9
aa5196
- Switch to GA mode for final release.
aa5196
- This tarball is embargoed until 2021-01-19 @ 1pm PT.
aa5196
- Resolves: rhbz#1908970
aa5196
aa5196
* Fri Jan 15 2021 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.10.0.8-0.0.ea
aa5196
- Drop JDK-8222527 as applied upstream at the time of jdk-11.0.10.0+5
aa5196
aa5196
* Fri Jan 15 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.10.0.8-0.0.ea
aa5196
- Update to jdk-11.0.10.0+8
aa5196
- Update release notes to 11.0.10.0+8.
aa5196
- Update tarball generation script to use PR3818 which handles JDK-8171279 changes
aa5196
- Drop JDK-8250861 as applied upstream.
aa5196
- Resolves: rhbz#1903908
aa5196
aa5196
* Fri Jan 15 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.10.0.1-0.1.ea
aa5196
- Update release notes for 11.0.9.1 release.
aa5196
- Resolves: rhbz#1895274
aa5196
aa5196
* Thu Jan 14 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.10.0.1-0.0.ea
aa5196
- Completely revert hacks from previous release, using buildver in configure and tzdata 2020b
aa5196
- Resolves: rhbz#1903907
aa5196
aa5196
* Thu Jan 14 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.10.0.1-0.0.ea
aa5196
- Add new Harfbuzz library to package listing and _privatelibs
aa5196
- Resolves: rhbz#1903907
aa5196
aa5196
* Thu Jan 14 2021 Andrew John Hughes <gnu.andrew@redhat.com> - 1:11.0.10.0.1-0.0.ea
aa5196
- Update to jdk-11.0.10.0+1
aa5196
- Update release notes to 11.0.10.0+1
aa5196
- Use JEP-322 Time-Based Versioning so we can handle a future 11.0.9.1-like release correctly.
aa5196
- Still use 11.0.x rather than 11.0.x.0 for file naming, as the trailing zero is omitted from tags.
aa5196
- Switch to EA mode for 11.0.10 pre-release builds.
aa5196
- Drop JDK-8222286 & JDK-8254177 as applied upstream
aa5196
- Explicitly request bundled Harfbuzz (too risky to change this so late in the RHEL 7 lifecycle)
aa5196
- Resolves: rhbz#1903907
aa5196
aa5196
* Wed Jan 13 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.11-7
aa5196
- Introduced ssbd_arches to denote architectures with SSBD mitigation (currently only x86_64)
aa5196
- Introduced nm-based check to verify alt-java on ssbd_arches is patched, and no other alt-java or java binaries are patched
aa5196
- RH1750419 patch amended to emit a warning on architectures where alt-java is the same as java
aa5196
- Resolves: rhbz#1901695
aa5196
aa5196
* Wed Jan 13 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.9.11-7
aa5196
- Redefined linux -> __linux__ and __x86_64 -> __x86_64__ in RH1750419 patch
aa5196
- Resolves: rhbz#1901695
aa5196
aa5196
* Mon Jan 11 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.9.11-6
aa5196
- Removed patch6: rh1566890-CVE_2018_3639-speculative_store_bypass.patch, surpassed by new patch
aa5196
- Added patch600: rh1750419-redhat_alt_java.patch, surpassing removed patch
aa5196
- No longer copy java->alt-java as it is created by patch600
aa5196
- Resolves: rhbz#1901695
aa5196
aa5196
* Mon Jan 11 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.11-5
aa5196
- Add backport of JDK-8222537 so the Host header is sent when using proxies.
aa5196
- Resolves: rhbz#1869530
aa5196
aa5196
* Mon Dec 21 2020 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.9.11-4
aa5196
- Align fastdebug/slowdebug changes with upstream rhel-8.4.0 spec
aa5196
- Included patch to handle '--without fastdebug' option to mockbuild
aa5196
aa5196
* Tue Dec 01 2020 Jiri Vanek <jvanekf@redhat.com> - 1:11.0.9.11-3
aa5196
- added br of listdc++-static
aa5196
- removed patch1001 rhel6-build.patch
aa5196
- removed patch1002 zgc_jdk11_compiler_fixes.patch
aa5196
- initial on-el7 build (more tuning expected)
aa5196
aa5196
* Wed Nov 04 2020 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.9.11-2
aa5196
- Update to jdk-11.0.9.1+1
aa5196
- RPM version stays at 11.0.9.11 so as to not break upgrade path.
aa5196
- Adds a single patch for JDK-8250861.
aa5196
- Resolves: rhbz#1895274
aa5196
aa5196
* Tue Oct 20 2020 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.9.11-1
aa5196
- Added patch to apply tzdata 2020b
aa5196
aa5196
* Thu Oct 15 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.11-0
aa5196
- Update to jdk-11.0.9+11
aa5196
- Update release notes for 11.0.9 release.
aa5196
- Add backport of JDK-8254177 to update to tzdata 2020b
aa5196
- Require tzdata 2020b due to resource changes in JDK-8254177
aa5196
- Delay tzdata 2020b dependency until tzdata update has shipped.
aa5196
- This tarball is embargoed until 2020-10-20 @ 1pm PT.
aa5196
- Resolves: rhbz#1876665
aa5196
aa5196
* Thu Oct 15 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.10-0.3.ea
aa5196
- Improve quoting of vendor name
aa5196
- Resolves: rhbz#1883849
aa5196
aa5196
* Wed Oct 14 2020 Jiri Vanek <jvanek@redhat.com> - 1:11.0.9.10-0.2.ea
aa5196
- Set vendor property and vendor URLs
aa5196
- Made URLs to be preconfigured by OS
aa5196
- Moved vendor_version_string to a better place
aa5196
- Resolves: rhbz#1883849
aa5196
aa5196
* Tue Oct 13 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.10-0.1.ea
aa5196
- Update to jdk-11.0.9+10 (EA)
aa5196
- Resolves: rhbz#1876665
aa5196
aa5196
* Tue Oct 13 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.9-0.1.ea
aa5196
- Update to jdk-11.0.9+9 (EA)
aa5196
- Resolves: rhbz#1876665
aa5196
aa5196
* Tue Oct 13 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.8-0.1.ea
aa5196
- Update to jdk-11.0.9+8 (EA)
aa5196
- Remove JDK-8252258/RH1868406 now applied upstream.
aa5196
- Resolves: rhbz#1876665
aa5196
aa5196
* Tue Oct 13 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.7-0.1.ea
aa5196
- Update to jdk-11.0.9+7 (EA)
aa5196
- Resolves: rhbz#1876665
aa5196
aa5196
* Tue Sep 29 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.6-0.1.ea
aa5196
- Add JDK-8252258 to return default vendor to the original value of 'Oracle Corporation'
aa5196
- Include a test in the RPM to check the build has the correct vendor information.
aa5196
- Use 'oj_' prefix on new vendor globals to avoid a conflict with RPM's vendor value.
aa5196
- Resolves: rhbz#1876665
aa5196
aa5196
* Fri Sep 25 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.6-0.0.ea
aa5196
- Update to jdk-11.0.9+6 (EA)
aa5196
aa5196
* Thu Sep 24 2020 Jayashree Huttanagoudar <jhuttana@redhat.com> - 1:11.0.9.5-0.1.ea
aa5196
- Changing the spec file to have one single debuginfo bundle.
aa5196
- Because contents of these bundles are almost identical.
aa5196
aa5196
* Tue Sep 08 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.5-0.0.ea
aa5196
- Update to jdk-11.0.9+5 (EA)
aa5196
aa5196
* Thu Sep 03 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.4-0.0.ea
aa5196
- Update to jdk-11.0.9+4 (EA)
aa5196
aa5196
* Wed Aug 19 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.3-0.0.ea
aa5196
- Update to jdk-11.0.9+3 (EA)
aa5196
aa5196
* Wed Aug 12 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.2-0.1.ea
aa5196
- Following JDK-8005165, class data sharing can be enabled on all JIT architectures
aa5196
- Synchronise architecture group documentation with Fedora
aa5196
aa5196
* Tue Aug 11 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.2-0.0.ea
aa5196
- Update to jdk-11.0.9+2 (EA)
aa5196
- With Shenandoah now upstream in OpenJDK 11, we can use jdk-updates/jdk11 directly
aa5196
aa5196
* Tue Aug 11 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.1-0.2.ea
aa5196
- Cleanup architecture and JVM feature handling in preparation for using upstreamed Shenandoah.
aa5196
aa5196
* Fri Aug 07 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.9.1-0.1.ea
aa5196
- Update to shenandoah-jdk-11.0.9+1 (EA)
aa5196
- Switch to EA mode for 11.0.9 pre-release builds.
aa5196
- Drop JDK-8227269 & JDK-8241750 backports now applied upstream.
aa5196
aa5196
* Sat Jul 11 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.8.10-0
aa5196
- Update to shenandoah-jdk-11.0.8+10 (GA)
aa5196
- Switch to GA mode for final release.
aa5196
- Update release notes with last minute fix (JDK-8248505).
aa5196
- This tarball is embargoed until 2020-07-14 @ 1pm PT.
aa5196
- Resolves: rhbz#1838811
aa5196
aa5196
* Fri Jul 10 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.8.9-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.8+9 (EA)
aa5196
- Update release notes for 11.0.8 release.
aa5196
- This tarball is embargoed until 2020-07-14 @ 1pm PT.
aa5196
- Resolves: rhbz#1838811
aa5196
aa5196
* Thu Jul 09 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.8.8-0.1.ea
aa5196
- java-11-openjdk doesn't have a JRE tree, so don't try and copy alt-java there...
aa5196
- Resolves: rhbz#1838811
aa5196
aa5196
* Thu Jul 09 2020 Jiri Vanek <jvanek@redhat.com> - 1:11.0.8.8-0.0.ea
aa5196
- Create a copy of java as alt-java with alternatives and man pages
aa5196
- Resolves: rhbz#1838811
aa5196
aa5196
* Thu Jul 09 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.8.8-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.8+8 (EA)
aa5196
- Resolves: rhbz#1838811
aa5196
aa5196
* Thu Jul 09 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.8.7-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.8+7 (EA)
aa5196
- Resolves: rhbz#1838811
aa5196
aa5196
* Thu Jul 09 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.8.6-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.8+6 (EA)
aa5196
- Resolves: rhbz#1838811
aa5196
aa5196
* Thu Jul 09 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.8.5-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.8+5 (EA)
aa5196
- Resolves: rhbz#1838811
aa5196
aa5196
* Thu Jul 09 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.8.4-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.8+4 (EA)
aa5196
- Resolves: rhbz#1838811
aa5196
aa5196
* Thu Jul 09 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.8.3-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.8+3 (EA)
aa5196
- Resolves: rhbz#1838811
aa5196
aa5196
* Tue Jun 02 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.8.2-0.1.ea
aa5196
- Update to shenandoah-jdk-11.0.8+2 (EA)
aa5196
- Resolves: rhbz#1838811
aa5196
aa5196
* Mon May 25 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.8.1-0.1.ea
aa5196
- Update to shenandoah-jdk-11.0.8+1 (EA)
aa5196
- Switch to EA mode for 11.0.8 pre-release builds.
aa5196
- Drop JDK-8228407 backports now applied upstream.
aa5196
- Resolves: rhbz#1838811
aa5196
aa5196
* Sat May 23 2020 Andrew John Hughes <gnu.andrew@redhat.com> - 1:11.0.7.10-7
aa5196
- Add backports of JDK-8227269 & JDK-8241750 to resolve slow class loading with JDWP enabled.
aa5196
- Resolves: rhbz#1826915
aa5196
aa5196
* Wed Apr 15 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.10-1
aa5196
- Add JDK-8228407 backport to resolve crashes during verification.
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Tue Apr 14 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.10-1
aa5196
- Amend release notes, removing issue actually fixed in 11.0.6.
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Tue Apr 14 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.10-1
aa5196
- Re-apply --with-extra-asflags as crash was not due to this.
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Mon Apr 13 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.10-1
aa5196
- Add release notes.
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Tue Mar 31 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.10-0
aa5196
- Update to shenandoah-jdk-11.0.7+10 (GA)
aa5196
- Switch to GA mode for final release.
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Sat Mar 28 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.9-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.7+9 (EA)
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Sat Mar 28 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.8-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.7+8 (EA)
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Sat Mar 28 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.7-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.7+7 (EA)
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Mon Mar 16 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.6-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.7+6 (EA)
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Sun Mar 15 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.5-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.7+5 (EA)
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Fri Feb 28 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.4-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.7+4 (EA)
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Tue Feb 18 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.3-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.7+3 (EA)
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Sun Feb 16 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.2-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.7+2 (EA)
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Sun Feb 16 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.7.1-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.7+1 (EA)
aa5196
- Switch to EA mode for 11.0.7 pre-release builds.
aa5196
- Drop JDK-8236039 backport now applied upstream.
aa5196
- Resolves: rhbz#1810557
aa5196
aa5196
* Sat Feb 15 2020 Jiri Vanek <jvanek@redhat.com> - 1:11.0.6.10-2
aa5196
- get rid of openjdkportable in favour of el
aa5196
aa5196
* Sat Feb 15 2020 Jiri Vanek <jvanek@redhat.com> - 1:11.0.6.10-1
aa5196
- renamed static to more accurate portable
aa5196
aa5196
* Sat Feb 15 2020 Jiri Vanek <jvanek@redhat.com> - 1:11.0.6.10-1
aa5196
- added support for jre via legacy-jre-image
aa5196
aa5196
* Tue Oct 15 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.6.10-0
aa5196
- Update to shenandoah-jdk-11.0.5+10 (GA)
aa5196
- Switch to GA mode for final release.
aa5196
- Remove PR1834/RH1022017 which is now handled by JDK-8228825 upstream.
aa5196
- Drop JDK-8223482 which is included upstream in 11.0.5+1.
aa5196
aa5196
* Mon Oct 07 2019 Jiri Vanek <jvanek@redhat.com> - 1:11.0.5.2-0.0.ea
aa5196
- Update to shenandoah-jdk-11.0.5+2 (EA)
aa5196
aa5196
* Wed Jul 31 2019 Jiri Vanek <jvanek@redhat.com> - 1:11.0.4.11-5
aa5196
- for release, build debugsymbols to special archive
aa5196
aa5196
* Tue Jul 23 2019 Jiri Vanek <jvanek@redhat.com> - 1:11.0.4.11-4
aa5196
- filtered out -g from extra flags
aa5196
aa5196
* Fri Jul 19 2019 Jiri Vanek <jvanek@redhat.com> - 1:11.0.4.11-3
aa5196
- Moved to with-stdcpplib=static
aa5196
aa5196
* Tue Jul 09 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.4.11-2
aa5196
- Drop NSS runtime dependencies and patches to link against it.
aa5196
- Resolves: rhbz#1678554
aa5196
aa5196
* Tue Jul 09 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.4.11-1
aa5196
- Update to shenandoah-jdk-11.0.4+11 (GA)
aa5196
- Switch to GA mode for final release.
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Mon Jul 08 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.4.10-0.1.ea
aa5196
- Update to shenandoah-jdk-11.0.4+10 (EA)
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Mon Jul 08 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.4.9-0.1.ea
aa5196
- Update to shenandoah-jdk-11.0.4+9 (EA)
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Mon Jul 08 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.4.8-0.1.ea
aa5196
- Update to shenandoah-jdk-11.0.4+8 (EA)
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Sun Jul 07 2019 Andrew John Hughes <gnu.andrew@redhat.com> - 1:11.0.4.7-0.2.ea
aa5196
- fontconfig build requirement should be fontconfig-devel, previously masked by Gtk3+ dependency
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Sun Jul 07 2019 Andrew John Hughes <gnu.andrew@redhat.com> - 1:11.0.4.7-0.2.ea
aa5196
- Add missing build requirement for libXrandr-devel, previously masked by Gtk3+ dependency
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Sun Jul 07 2019 Andrew John Hughes <gnu.andrew@redhat.com> - 1:11.0.4.7-0.2.ea
aa5196
- Add missing build requirement for libXrender-devel, previously masked by Gtk3+ dependency
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Sun Jul 07 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.4.7-0.1.ea
aa5196
- Update to shenandoah-jdk-11.0.4+7 (EA)
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Wed Jul 03 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.4.6-0.1.ea
aa5196
- Obsolete javadoc-debug and javadoc-debug-zip packages via javadoc and javadoc-zip respectively.
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Wed Jul 03 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.4.6-0.1.ea
aa5196
- Update to shenandoah-jdk-11.0.4+6 (EA)
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Wed Jul 03 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.4.5-0.1.ea
aa5196
- Update to shenandoah-jdk-11.0.4+5 (EA)
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Tue Jul 02 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.4.4-0.1.ea
aa5196
- Update to shenandoah-jdk-11.0.4+4 (EA)
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Mon Jul 01 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.4.3-0.1.ea
aa5196
- Update to shenandoah-jdk-11.0.4+3 (EA)
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Sun Jun 30 2019 Andrew John Hughes <gnu.andrew@redhat.com> - 1:11.0.4.2-0.1.ea
aa5196
- Update to shenandoah-jdk-11.0.4+2 (EA)
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Fri Jun 21 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.4.2-0.1.ea
aa5196
- Package jspawnhelper (see JDK-8220360).
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Fri Jun 21 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.3.7-5
aa5196
- Include 'ea' designator in Release when appropriate.
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Wed May 22 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.3.7-5
aa5196
- Handle milestone as variables so we can alter it easily and set the docs zip filename appropriately.
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Thu Apr 25 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.3.7-4
aa5196
- Don't build the test images needlessly.
aa5196
- Don't produce javadoc/javadoc-zip sub packages for the debug variant build.
aa5196
- Don't perform a bootcycle build for the debug variant build.
aa5196
- Resolves: rhbz#1724452
aa5196
aa5196
* Wed Apr 24 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.3.7-3
aa5196
- Do not generate lib-style requires for -slowdebug subpackages.
aa5196
- Resolves: rhbz#1693468
aa5196
aa5196
* Sun Apr 07 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.3.7-0
aa5196
- Update to shenandoah-jdk-11.0.3+7 (April 2019 GA)
aa5196
- Resolves: rhbz#1693468
aa5196
aa5196
* Sat Apr 06 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.3.6-0
aa5196
- Update to shenandoah-jdk-11.0.3+6 (April 2019 EA)
aa5196
- Drop JDK-8210416/RH1632174 applied upstream.
aa5196
- Drop JDK-8210425/RH1632174 applied upstream.
aa5196
- Drop JDK-8210647/RH1632174 applied upstream.
aa5196
- Drop JDK-8210761/RH1632174 applied upstream.
aa5196
- Drop JDK-8210703/RH1632174 applied upstream.
aa5196
- Add cast to resolve s390 ambiguity in call to log2_intptr
aa5196
- Resolves: rhbz#1693468
aa5196
aa5196
* Thu Mar 21 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.2.7-3
aa5196
- Add patch for RH1566890
aa5196
- Resolves: rhbz#1693468
aa5196
aa5196
* Tue Mar 12 2019 Jiri Vanek <jvanek@redhat.com> - 1:11.0.2.7-2
aa5196
- name adapted to current tag
aa5196
aa5196
* Tue Feb 26 2019 Jiri Vanek <jvanek@redhat.com> - 1:11.0.2.7-2
aa5196
- cripled rpms original specto roduce only portable build
aa5196
- Resolves: rhbz#1661577