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
b84716ddd5
commit
6dbb5c99e8
@ -120,10 +120,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
|
||||||
@ -1258,29 +1260,6 @@ Requires: javapackages-tools
|
|||||||
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-debug
|
|
||||||
Summary: %{origin_nice} %{majorver} API documentation %{for_debug}
|
|
||||||
Group: Documentation
|
|
||||||
Requires: javapackages-tools
|
|
||||||
|
|
||||||
%{java_javadoc_rpo -- %{debug_suffix_unquoted}}
|
|
||||||
|
|
||||||
%description javadoc-debug
|
|
||||||
The %{origin_nice} %{majorver} API documentation %{for_debug}.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{include_debug_build}
|
|
||||||
%package javadoc-zip-debug
|
|
||||||
Summary: %{origin_nice} %{majorver} API documentation compressed in single archive %{for_debug}
|
|
||||||
Group: Documentation
|
|
||||||
Requires: javapackages-tools
|
|
||||||
|
|
||||||
%{java_javadoc_rpo -- %{debug_suffix_unquoted}}
|
|
||||||
|
|
||||||
%description javadoc-zip-debug
|
|
||||||
The %{origin_nice} %{majorver} API documentation compressed in single archive %{for_debug}.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -1442,16 +1421,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):
|
||||||
@ -1638,10 +1619,15 @@ pushd %{buildoutputdir $suffix}/images/%{jdkimage}
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
|
# Install Javadoc documentation
|
||||||
|
|
||||||
|
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
|
||||||
@ -1777,17 +1763,6 @@ require "copy_jdk_configs.lua"
|
|||||||
%posttrans devel-debug
|
%posttrans devel-debug
|
||||||
%{posttrans_devel -- %{debug_suffix_unquoted}}
|
%{posttrans_devel -- %{debug_suffix_unquoted}}
|
||||||
|
|
||||||
%post javadoc-debug
|
|
||||||
%{post_javadoc -- %{debug_suffix_unquoted}}
|
|
||||||
|
|
||||||
%postun javadoc-debug
|
|
||||||
%{postun_javadoc -- %{debug_suffix_unquoted}}
|
|
||||||
|
|
||||||
%post javadoc-zip-debug
|
|
||||||
%{post_javadoc_zip -- %{debug_suffix_unquoted}}
|
|
||||||
|
|
||||||
%postun javadoc-zip-debug
|
|
||||||
%{postun_javadoc_zip -- %{debug_suffix_unquoted}}
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{include_normal_build}
|
%if %{include_normal_build}
|
||||||
@ -1847,16 +1822,15 @@ require "copy_jdk_configs.lua"
|
|||||||
|
|
||||||
%files src-debug
|
%files src-debug
|
||||||
%{files_src -- %{debug_suffix_unquoted}}
|
%{files_src -- %{debug_suffix_unquoted}}
|
||||||
|
|
||||||
%files javadoc-debug
|
|
||||||
%{files_javadoc -- %{debug_suffix_unquoted}}
|
|
||||||
|
|
||||||
%files javadoc-zip-debug
|
|
||||||
%{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
|
||||||
- bumped buildjdk version to 13
|
- bumped buildjdk version to 13
|
||||||
|
Loading…
Reference in New Issue
Block a user