Don't produce unnecessary things for the debug variant
This speeds up the build as no bootcycle image build is being performed for the slowdebug variant. Also don't produce a javadoc or javadoc-zip package for the slowdebug variant as that is pointless.
This commit is contained in:
parent
1f6e6f78cf
commit
9e4956444e
@ -121,10 +121,12 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{bootstrap_build}
|
%if %{bootstrap_build}
|
||||||
%global targets bootcycle-images docs
|
%global release_targets bootcycle-images docs-zip
|
||||||
%else
|
%else
|
||||||
%global targets images docs
|
%global release_targets images docs-zip
|
||||||
%endif
|
%endif
|
||||||
|
# No docs nor bootcycle for debug builds
|
||||||
|
%global debug_targets images
|
||||||
|
|
||||||
|
|
||||||
# Filter out flags from the optflags macro that cause problems with the OpenJDK build
|
# Filter out flags from the optflags macro that cause problems with the OpenJDK build
|
||||||
@ -1241,29 +1243,6 @@ Requires: javapackages-filesystem
|
|||||||
The %{origin_nice} %{majorver} API documentation compressed in single archive.
|
The %{origin_nice} %{majorver} API documentation compressed in single archive.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{include_debug_build}
|
|
||||||
%package javadoc-slowdebug
|
|
||||||
Summary: %{origin_nice} %{majorver} API documentation %{for_debug}
|
|
||||||
Requires: javapackages-filesystem
|
|
||||||
|
|
||||||
%{java_javadoc_rpo -- %{debug_suffix_unquoted}}
|
|
||||||
|
|
||||||
%description javadoc-slowdebug
|
|
||||||
The %{origin_nice} %{majorver} API documentation %{for_debug}.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{include_debug_build}
|
|
||||||
%package javadoc-zip-slowdebug
|
|
||||||
Summary: %{origin_nice} %{majorver} API documentation compressed in single archive %{for_debug}
|
|
||||||
Requires: javapackages-filesystem
|
|
||||||
|
|
||||||
%{java_javadoc_rpo -- %{debug_suffix_unquoted}}
|
|
||||||
|
|
||||||
%description javadoc-zip-slowdebug
|
|
||||||
The %{origin_nice} %{majorver} API documentation compressed in single archive %{for_debug}.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
if [ %{include_normal_build} -eq 0 -o %{include_normal_build} -eq 1 ] ; then
|
if [ %{include_normal_build} -eq 0 -o %{include_normal_build} -eq 1 ] ; then
|
||||||
echo "include_normal_build is %{include_normal_build}"
|
echo "include_normal_build is %{include_normal_build}"
|
||||||
@ -1423,16 +1402,18 @@ bash ../configure \
|
|||||||
%endif
|
%endif
|
||||||
--disable-warnings-as-errors
|
--disable-warnings-as-errors
|
||||||
|
|
||||||
# use --no-print-directory as workaround for build failure
|
# Debug builds don't need same targets as release for
|
||||||
# https://bugs.openjdk.java.net/browse/JDK-8215213
|
# build speed-up
|
||||||
make --no-print-directory \
|
maketargets="%{release_targets}"
|
||||||
|
if echo $debugbuild | grep -q "debug" ; then
|
||||||
|
maketargets="%{debug_targets}"
|
||||||
|
fi
|
||||||
|
make \
|
||||||
JAVAC_FLAGS=-g \
|
JAVAC_FLAGS=-g \
|
||||||
LOG=trace \
|
LOG=trace \
|
||||||
WARNINGS_ARE_ERRORS="-Wno-error" \
|
WARNINGS_ARE_ERRORS="-Wno-error" \
|
||||||
CFLAGS_WARNINGS_ARE_ERRORS="-Wno-error" \
|
CFLAGS_WARNINGS_ARE_ERRORS="-Wno-error" \
|
||||||
%{targets} || ( pwd; find $top_dir_abs_path -name "hs_err_pid*.log" | xargs cat && false )
|
$maketargets || ( pwd; find $top_dir_abs_path -name "hs_err_pid*.log" | xargs cat && false )
|
||||||
|
|
||||||
make docs-zip
|
|
||||||
|
|
||||||
# the build (erroneously) removes read permissions from some jars
|
# the build (erroneously) removes read permissions from some jars
|
||||||
# this is a regression in OpenJDK 7 (our compiler):
|
# this is a regression in OpenJDK 7 (our compiler):
|
||||||
@ -1618,11 +1599,12 @@ pushd %{buildoutputdir $suffix}/images/%{jdkimage}
|
|||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
if ! echo $suffix | grep -q "debug" ; then
|
||||||
# Install Javadoc documentation
|
# Install Javadoc documentation
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}
|
||||||
cp -a %{buildoutputdir -- $suffix}/images/docs $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}
|
cp -a %{buildoutputdir -- $suffix}/images/docs $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}
|
||||||
cp -a %{buildoutputdir -- $suffix}/bundles/jdk-%{majorver}%{ea_designator_zip}+%{buildver}%{lts_designator_zip}-docs.zip $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}.zip
|
cp -a %{buildoutputdir -- $suffix}/bundles/jdk-%{majorver}%{ea_designator_zip}+%{buildver}%{lts_designator_zip}-docs.zip $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}.zip
|
||||||
|
fi
|
||||||
|
|
||||||
# Install icons and menu entries
|
# Install icons and menu entries
|
||||||
for s in 16 24 32 48 ; do
|
for s in 16 24 32 48 ; do
|
||||||
@ -1771,18 +1753,6 @@ require "copy_jdk_configs.lua"
|
|||||||
|
|
||||||
%posttrans devel-slowdebug
|
%posttrans devel-slowdebug
|
||||||
%{posttrans_devel -- %{debug_suffix_unquoted}}
|
%{posttrans_devel -- %{debug_suffix_unquoted}}
|
||||||
|
|
||||||
%post javadoc-slowdebug
|
|
||||||
%{post_javadoc -- %{debug_suffix_unquoted}}
|
|
||||||
|
|
||||||
%postun javadoc-slowdebug
|
|
||||||
%{postun_javadoc -- %{debug_suffix_unquoted}}
|
|
||||||
|
|
||||||
%post javadoc-zip-slowdebug
|
|
||||||
%{post_javadoc_zip -- %{debug_suffix_unquoted}}
|
|
||||||
|
|
||||||
%postun javadoc-zip-slowdebug
|
|
||||||
%{postun_javadoc_zip -- %{debug_suffix_unquoted}}
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{include_normal_build}
|
%if %{include_normal_build}
|
||||||
@ -1842,16 +1812,15 @@ require "copy_jdk_configs.lua"
|
|||||||
|
|
||||||
%files src-slowdebug
|
%files src-slowdebug
|
||||||
%{files_src -- %{debug_suffix_unquoted}}
|
%{files_src -- %{debug_suffix_unquoted}}
|
||||||
|
|
||||||
%files javadoc-slowdebug
|
|
||||||
%{files_javadoc -- %{debug_suffix_unquoted}}
|
|
||||||
|
|
||||||
%files javadoc-zip-slowdebug
|
|
||||||
%{files_javadoc_zip -- %{debug_suffix_unquoted}}
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 01 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:13.0.0.33-2.rolling
|
||||||
|
- Don't produce javadoc/javadoc-zip sub packages for the
|
||||||
|
debug variant build.
|
||||||
|
- Don't perform a bootcycle build for the debug variant build.
|
||||||
|
|
||||||
* Mon Sep 30 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:13.0.0.33-2.rolling
|
* Mon Sep 30 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:13.0.0.33-2.rolling
|
||||||
- Fix vendor version as JDK 13 has been GA'ed September 2019: 19.3 => 19.9
|
- Fix vendor version as JDK 13 has been GA'ed September 2019: 19.3 => 19.9
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user