Turn off bootstrapping for slow debug builds, which are particularly slow on ppc64le.
Related: rhbz#2022823
This commit is contained in:
parent
f459bf7287
commit
9fd7b086e5
@ -86,13 +86,18 @@
|
|||||||
%global ppc64be ppc64 ppc64p7
|
%global ppc64be ppc64 ppc64p7
|
||||||
# Set of architectures which support multiple ABIs
|
# Set of architectures which support multiple ABIs
|
||||||
%global multilib_arches %{power64} sparc64 x86_64
|
%global multilib_arches %{power64} sparc64 x86_64
|
||||||
# Set of architectures for which we build debug builds
|
# Set of architectures for which we build slowdebug builds
|
||||||
%global debug_arches %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64}
|
%global debug_arches %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64}
|
||||||
|
# Set of architectures for which we build fastdebug builds
|
||||||
|
%global fastdebug_arches x86_64 ppc64le aarch64
|
||||||
# Set of architectures with a Just-In-Time (JIT) compiler
|
# Set of architectures with a Just-In-Time (JIT) compiler
|
||||||
%global jit_arches %{debug_arches}
|
%global jit_arches %{debug_arches}
|
||||||
|
# Set of architectures which use the Zero assembler port (!jit_arches)
|
||||||
|
%global zero_arches %{arm} ppc s390 s390x
|
||||||
|
# Set of architectures which run a full bootstrap cycle
|
||||||
|
%global bootstrap_arches %{jit_arches} %{zero_arches}
|
||||||
# Set of architectures which support SystemTap tapsets
|
# Set of architectures which support SystemTap tapsets
|
||||||
%global systemtap_arches %{jit_arches}
|
%global systemtap_arches %{jit_arches}
|
||||||
%global fastdebug_arches x86_64 ppc64le aarch64
|
|
||||||
# Set of architectures which support the serviceability agent
|
# Set of architectures which support the serviceability agent
|
||||||
%global sa_arches %{ix86} x86_64 sparcv9 sparc64 %{aarch64}
|
%global sa_arches %{ix86} x86_64 sparcv9 sparc64 %{aarch64}
|
||||||
# Set of architectures which support class data sharing
|
# Set of architectures which support class data sharing
|
||||||
@ -137,12 +142,17 @@
|
|||||||
%else
|
%else
|
||||||
%global fastdebug_build %{nil}
|
%global fastdebug_build %{nil}
|
||||||
%endif
|
%endif
|
||||||
%global bootstrap_build 1
|
|
||||||
|
|
||||||
# If you disable both builds, then the build fails
|
# If you disable both builds, then the build fails
|
||||||
# Build and test slowdebug first as it provides the best diagnostics
|
# Build and test slowdebug first as it provides the best diagnostics
|
||||||
%global build_loop %{slowdebug_build} %{fastdebug_build} %{normal_build}
|
%global build_loop %{slowdebug_build} %{fastdebug_build} %{normal_build}
|
||||||
|
|
||||||
|
%ifarch %{bootstrap_arches}
|
||||||
|
%global bootstrap_build true
|
||||||
|
%else
|
||||||
|
%global bootstrap_build false
|
||||||
|
%endif
|
||||||
|
|
||||||
%global bootstrap_targets images
|
%global bootstrap_targets images
|
||||||
%global release_targets images docs-zip
|
%global release_targets images docs-zip
|
||||||
%global debug_targets images
|
%global debug_targets images
|
||||||
@ -291,7 +301,7 @@
|
|||||||
%global updatever %(VERSION=%{whole_update}; echo ${VERSION##*u})
|
%global updatever %(VERSION=%{whole_update}; echo ${VERSION##*u})
|
||||||
# eg jdk8u60-b27 -> b27
|
# eg jdk8u60-b27 -> b27
|
||||||
%global buildver %(VERSION=%{version_tag}; echo ${VERSION##*-})
|
%global buildver %(VERSION=%{version_tag}; echo ${VERSION##*-})
|
||||||
%global rpmrelease 2
|
%global rpmrelease 3
|
||||||
# Define milestone (EA for pre-releases, GA ("fcs") for releases)
|
# Define milestone (EA for pre-releases, GA ("fcs") for releases)
|
||||||
# Release will be (where N is usually a number starting at 1):
|
# Release will be (where N is usually a number starting at 1):
|
||||||
# - 0.N%%{?extraver}%%{?dist} for EA releases,
|
# - 0.N%%{?extraver}%%{?dist} for EA releases,
|
||||||
@ -1976,19 +1986,23 @@ installdir=%{installoutputdir -- $suffix}
|
|||||||
bootinstalldir=boot${installdir}
|
bootinstalldir=boot${installdir}
|
||||||
|
|
||||||
# Debug builds don't need same targets as release for
|
# Debug builds don't need same targets as release for
|
||||||
# build speed-up
|
# build speed-up. We also avoid bootstrapping these
|
||||||
maketargets="%{release_targets}"
|
# slower builds.
|
||||||
if echo $debugbuild | grep -q "debug" ; then
|
if echo $debugbuild | grep -q "debug" ; then
|
||||||
maketargets="%{debug_targets}"
|
maketargets="%{debug_targets}"
|
||||||
|
run_bootstrap=false
|
||||||
|
else
|
||||||
|
maketargets="%{release_targets}"
|
||||||
|
run_bootstrap=%{bootstrap_build}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%if %{bootstrap_build}
|
if ${run_bootstrap} ; then
|
||||||
buildjdk ${bootbuilddir} ${bootinstalldir} ${systemjdk} "%{bootstrap_targets}" ${debugbuild}
|
buildjdk ${bootbuilddir} ${bootinstalldir} ${systemjdk} "%{bootstrap_targets}" ${debugbuild}
|
||||||
buildjdk ${builddir} ${installdir} $(pwd)/${bootinstalldir}/images/%{jdkimage} "${maketargets}" ${debugbuild}
|
buildjdk ${builddir} ${installdir} $(pwd)/${bootinstalldir}/images/%{jdkimage} "${maketargets}" ${debugbuild}
|
||||||
%{!?with_artifacts:rm -rf ${bootinstalldir}}
|
%{!?with_artifacts:rm -rf ${bootinstalldir}}
|
||||||
%else
|
else
|
||||||
buildjdk ${builddir} ${installdir} ${systemjdk} "${maketargets}" ${debugbuild}
|
buildjdk ${builddir} ${installdir} ${systemjdk} "${maketargets}" ${debugbuild}
|
||||||
%endif
|
fi
|
||||||
|
|
||||||
# Install nss.cfg right away as we will be using the JRE above
|
# Install nss.cfg right away as we will be using the JRE above
|
||||||
export JAVA_HOME=$(pwd)/%{installoutputdir -- $suffix}/images/%{jdkimage}
|
export JAVA_HOME=$(pwd)/%{installoutputdir -- $suffix}/images/%{jdkimage}
|
||||||
@ -2495,6 +2509,10 @@ cjc.mainProgram(args)
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 06 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.312.b07-3
|
||||||
|
- Turn off bootstrapping for slow debug builds, which are particularly slow on ppc64le.
|
||||||
|
- Related: rhbz#2022823
|
||||||
|
|
||||||
* Sun Dec 05 2021 Severin Gehwolf <sgehwolf@redhat.com> - 1:1.8.0.312.b07-2
|
* Sun Dec 05 2021 Severin Gehwolf <sgehwolf@redhat.com> - 1:1.8.0.312.b07-2
|
||||||
- Use 'sql:' prefix in nss.fips.cfg as F35+ no longer ship the legacy
|
- Use 'sql:' prefix in nss.fips.cfg as F35+ no longer ship the legacy
|
||||||
secmod.db file as part of nss
|
secmod.db file as part of nss
|
||||||
|
Loading…
Reference in New Issue
Block a user