import java-11-openjdk-11.0.12.0.7-3.el9
This commit is contained in:
parent
b2f5381678
commit
561b9cc3f9
@ -12,10 +12,7 @@
|
|||||||
#
|
#
|
||||||
# Only produce a release build on x86_64:
|
# Only produce a release build on x86_64:
|
||||||
# $ fedpkg mockbuild --without slowdebug --without fastdebug
|
# $ fedpkg mockbuild --without slowdebug --without fastdebug
|
||||||
#
|
|
||||||
# Only produce a debug build on x86_64:
|
|
||||||
# $ fedpkg local --without release
|
|
||||||
#
|
|
||||||
# Enable fastdebug builds by default on relevant arches.
|
# Enable fastdebug builds by default on relevant arches.
|
||||||
%bcond_without fastdebug
|
%bcond_without fastdebug
|
||||||
# Enable slowdebug builds by default on relevant arches.
|
# Enable slowdebug builds by default on relevant arches.
|
||||||
@ -55,11 +52,11 @@
|
|||||||
%global staticlibs_suffix "%{staticlibs_suffix_unquoted}"
|
%global staticlibs_suffix "%{staticlibs_suffix_unquoted}"
|
||||||
|
|
||||||
%global debug_warning This package is unoptimised with full debugging. Install only as needed and remove ASAP.
|
%global debug_warning This package is unoptimised with full debugging. Install only as needed and remove ASAP.
|
||||||
%global debug_on with full debugging on
|
|
||||||
%global fastdebug_on with minimal debugging on
|
|
||||||
%global fastdebug_warning This package is optimised with full debugging. Install only as needed and remove ASAP.
|
%global fastdebug_warning This package is optimised with full debugging. Install only as needed and remove ASAP.
|
||||||
%global for_fastdebug for packages with minimal debugging on
|
%global debug_on unoptimised with full debugging on
|
||||||
%global for_debug for packages with debugging on
|
%global fastdebug_on optimised with full debugging on
|
||||||
|
%global for_fastdebug for packages with debugging on and optimisation
|
||||||
|
%global for_debug for packages with debugging on and no optimisation
|
||||||
|
|
||||||
%if %{with release}
|
%if %{with release}
|
||||||
%global include_normal_build 1
|
%global include_normal_build 1
|
||||||
@ -177,7 +174,7 @@
|
|||||||
|
|
||||||
# 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}
|
||||||
|
|
||||||
%if %{include_staticlibs}
|
%if %{include_staticlibs}
|
||||||
%global staticlibs_loop %{staticlibs_suffix}
|
%global staticlibs_loop %{staticlibs_suffix}
|
||||||
@ -191,6 +188,17 @@
|
|||||||
%global bootstrap_build 1
|
%global bootstrap_build 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{include_staticlibs}
|
||||||
|
# Extra target for producing the static-libraries. Separate from
|
||||||
|
# other targets since this target is configured to use in-tree
|
||||||
|
# AWT dependencies: lcms, libjpeg, libpng, libharfbuzz, giflib
|
||||||
|
# and possibly others
|
||||||
|
%global static_libs_target static-libs-image
|
||||||
|
%else
|
||||||
|
%global static_libs_target %{nil}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# unlike portables,the rpms have to use static_libs_target very dynamically
|
||||||
%if %{bootstrap_build}
|
%if %{bootstrap_build}
|
||||||
%global release_targets bootcycle-images docs-zip
|
%global release_targets bootcycle-images docs-zip
|
||||||
%else
|
%else
|
||||||
@ -199,14 +207,6 @@
|
|||||||
# No docs nor bootcycle for debug builds
|
# No docs nor bootcycle for debug builds
|
||||||
%global debug_targets images
|
%global debug_targets images
|
||||||
|
|
||||||
%if %{include_staticlibs}
|
|
||||||
# Extra target for producing the static-libraries. Separate from
|
|
||||||
# other targets since this target is configured to use in-tree
|
|
||||||
# AWT dependencies: lcms, libjpeg, libpng, libharfbuzz, giflib
|
|
||||||
# and possibly others
|
|
||||||
%global static_libs_target static-libs-image
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Disable LTO as this causes build failures at the moment.
|
# Disable LTO as this causes build failures at the moment.
|
||||||
# See RHBZ#1861401
|
# See RHBZ#1861401
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
@ -343,8 +343,8 @@
|
|||||||
%global top_level_dir_name %{origin}
|
%global top_level_dir_name %{origin}
|
||||||
%global top_level_dir_name_backup %{top_level_dir_name}-backup
|
%global top_level_dir_name_backup %{top_level_dir_name}-backup
|
||||||
%global buildver 7
|
%global buildver 7
|
||||||
%global rpmrelease 2
|
%global rpmrelease 3
|
||||||
#%%global tagsuffix ""
|
#%%global tagsuffix %%{nil}
|
||||||
# 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
|
# 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
|
||||||
%if %is_system_jdk
|
%if %is_system_jdk
|
||||||
# Using 10 digits may overflow the int used for priority, so we combine the patch and build versions
|
# Using 10 digits may overflow the int used for priority, so we combine the patch and build versions
|
||||||
@ -357,7 +357,7 @@
|
|||||||
# for techpreview, using 1, so slowdebugs can have 0
|
# for techpreview, using 1, so slowdebugs can have 0
|
||||||
%global priority %( printf '%08d' 1 )
|
%global priority %( printf '%08d' 1 )
|
||||||
%endif
|
%endif
|
||||||
%global newjavaver %{featurever}.%{interimver}.%{updatever}.%{patchver}
|
%global newjavaver %{featurever}.%{interimver}.%{updatever}.%{patchver}
|
||||||
|
|
||||||
# Omit trailing 0 in filenames when the patch version is 0
|
# Omit trailing 0 in filenames when the patch version is 0
|
||||||
%if 0%{?patchver} > 0
|
%if 0%{?patchver} > 0
|
||||||
@ -620,7 +620,7 @@ alternatives \\
|
|||||||
--slave %{_mandir}/man1/rmic.1$ext rmic.1$ext \\
|
--slave %{_mandir}/man1/rmic.1$ext rmic.1$ext \\
|
||||||
%{_mandir}/man1/rmic-%{uniquesuffix -- %{?1}}.1$ext \\
|
%{_mandir}/man1/rmic-%{uniquesuffix -- %{?1}}.1$ext \\
|
||||||
--slave %{_mandir}/man1/serialver.1$ext serialver.1$ext \\
|
--slave %{_mandir}/man1/serialver.1$ext serialver.1$ext \\
|
||||||
%{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1$ext
|
%{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1$ext \\
|
||||||
|
|
||||||
for X in %{origin} %{javaver} ; do
|
for X in %{origin} %{javaver} ; do
|
||||||
alternatives \\
|
alternatives \\
|
||||||
@ -806,8 +806,8 @@ exit 0
|
|||||||
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/nss.cfg
|
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/nss.cfg
|
||||||
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/nss.fips.cfg
|
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/nss.fips.cfg
|
||||||
%config(noreplace) %{etcjavadir -- %{?1}}/conf/management/jmxremote.access
|
%config(noreplace) %{etcjavadir -- %{?1}}/conf/management/jmxremote.access
|
||||||
# these are config templates, thus not config-noreplace
|
# This is a configuration template and thus not config-noreplace
|
||||||
%config %{etcjavadir -- %{?1}}/conf/management/jmxremote.password.template
|
%config %{etcjavadir -- %{?1}}/conf/management/jmxremote.password.template
|
||||||
%config(noreplace) %{etcjavadir -- %{?1}}/conf/management/management.properties
|
%config(noreplace) %{etcjavadir -- %{?1}}/conf/management/management.properties
|
||||||
%config(noreplace) %{etcjavadir -- %{?1}}/conf/net.properties
|
%config(noreplace) %{etcjavadir -- %{?1}}/conf/net.properties
|
||||||
%config(noreplace) %{etcjavadir -- %{?1}}/conf/sound.properties
|
%config(noreplace) %{etcjavadir -- %{?1}}/conf/sound.properties
|
||||||
@ -830,6 +830,10 @@ exit 0
|
|||||||
%ghost %{_jvmdir}/jre-%{javaver}-%{origin}
|
%ghost %{_jvmdir}/jre-%{javaver}-%{origin}
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1820172
|
||||||
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/
|
||||||
|
%ghost %{_jvmdir}/%{sdkdir -- %{?1}}/conf.rpmmoved
|
||||||
|
%ghost %{_jvmdir}/%{sdkdir -- %{?1}}/lib/security.rpmmoved
|
||||||
}
|
}
|
||||||
|
|
||||||
%define files_devel() %{expand:
|
%define files_devel() %{expand:
|
||||||
@ -984,7 +988,9 @@ Requires: libXcomposite%{?_isa}
|
|||||||
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
|
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
# for java-X-openjdk package's desktop binding
|
# for java-X-openjdk package's desktop binding
|
||||||
|
%if 0%{?rhel} >= 8
|
||||||
Recommends: gtk3%{?_isa}
|
Recommends: gtk3%{?_isa}
|
||||||
|
%endif
|
||||||
|
|
||||||
Provides: java-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
|
Provides: java-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
@ -1025,7 +1031,9 @@ Requires(post): %{alternatives_requires}
|
|||||||
# Postun requires alternatives to uninstall tool alternatives
|
# Postun requires alternatives to uninstall tool alternatives
|
||||||
Requires(postun): %{alternatives_requires}
|
Requires(postun): %{alternatives_requires}
|
||||||
# for optional support of kernel stream control, card reader and printing bindings
|
# for optional support of kernel stream control, card reader and printing bindings
|
||||||
|
%if 0%{?rhel} >= 8
|
||||||
Suggests: lksctp-tools%{?_isa}, pcsc-lite-devel%{?_isa}
|
Suggests: lksctp-tools%{?_isa}, pcsc-lite-devel%{?_isa}
|
||||||
|
%endif
|
||||||
|
|
||||||
# Standard JPackage base provides
|
# Standard JPackage base provides
|
||||||
Provides: jre-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
|
Provides: jre-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
|
||||||
@ -1055,9 +1063,9 @@ Provides: java-sdk-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
|
|||||||
Provides: java-%{javaver}-devel%{?1} = %{epoch}:%{version}-%{release}
|
Provides: java-%{javaver}-devel%{?1} = %{epoch}:%{version}-%{release}
|
||||||
Provides: java-%{javaver}-%{origin}-devel%{?1} = %{epoch}:%{version}-%{release}
|
Provides: java-%{javaver}-%{origin}-devel%{?1} = %{epoch}:%{version}-%{release}
|
||||||
%if %is_system_jdk
|
%if %is_system_jdk
|
||||||
|
Provides: java-devel-%{origin}%{?1} = %{epoch}:%{version}-%{release}
|
||||||
Provides: java-sdk-%{origin}%{?1} = %{epoch}:%{version}-%{release}
|
Provides: java-sdk-%{origin}%{?1} = %{epoch}:%{version}-%{release}
|
||||||
Provides: java-devel%{?1} = %{epoch}:%{version}-%{release}
|
Provides: java-devel%{?1} = %{epoch}:%{version}-%{release}
|
||||||
Provides: java-%{origin}-devel%{?1} = %{epoch}:%{version}-%{release}
|
|
||||||
Provides: java-sdk%{?1} = %{epoch}:%{version}-%{release}
|
Provides: java-sdk%{?1} = %{epoch}:%{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
}
|
}
|
||||||
@ -1137,6 +1145,9 @@ Release: %{?eaprefix}%{rpmrelease}%{?extraver}%{?dist}
|
|||||||
|
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: %{origin_nice} %{featurever} Runtime Environment
|
Summary: %{origin_nice} %{featurever} Runtime Environment
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
|
Group: Development/Languages
|
||||||
|
%endif
|
||||||
|
|
||||||
# HotSpot code is licensed under GPLv2
|
# HotSpot code is licensed under GPLv2
|
||||||
# JDK library code is licensed under GPLv2 with the Classpath exception
|
# JDK library code is licensed under GPLv2 with the Classpath exception
|
||||||
@ -1204,7 +1215,7 @@ Patch1: rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch
|
|||||||
Patch2: rh1648644-java_access_bridge_privileged_security.patch
|
Patch2: rh1648644-java_access_bridge_privileged_security.patch
|
||||||
# NSS via SunPKCS11 Provider (disabled due to memory leak).
|
# NSS via SunPKCS11 Provider (disabled due to memory leak).
|
||||||
Patch1000: rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch
|
Patch1000: rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch
|
||||||
# enable build of speculative store bypass hardened alt-java
|
# RH1750419: enable build of speculative store bypass hardened alt-java (CVE-2018-3639)
|
||||||
Patch600: rh1750419-redhat_alt_java.patch
|
Patch600: rh1750419-redhat_alt_java.patch
|
||||||
# RH1582504: Use RSA as default for keytool, as DSA is disabled in all crypto policies except LEGACY
|
# RH1582504: Use RSA as default for keytool, as DSA is disabled in all crypto policies except LEGACY
|
||||||
Patch1003: rh1842572-rsa_default_for_keytool.patch
|
Patch1003: rh1842572-rsa_default_for_keytool.patch
|
||||||
@ -1316,6 +1327,9 @@ The %{origin_nice} %{featurever} runtime environment.
|
|||||||
%if %{include_debug_build}
|
%if %{include_debug_build}
|
||||||
%package slowdebug
|
%package slowdebug
|
||||||
Summary: %{origin_nice} %{featurever} Runtime Environment %{debug_on}
|
Summary: %{origin_nice} %{featurever} Runtime Environment %{debug_on}
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
|
Group: Development/Languages
|
||||||
|
%endif
|
||||||
|
|
||||||
%{java_rpo -- %{debug_suffix_unquoted}}
|
%{java_rpo -- %{debug_suffix_unquoted}}
|
||||||
%description slowdebug
|
%description slowdebug
|
||||||
@ -1326,7 +1340,9 @@ The %{origin_nice} %{featurever} runtime environment.
|
|||||||
%if %{include_fastdebug_build}
|
%if %{include_fastdebug_build}
|
||||||
%package fastdebug
|
%package fastdebug
|
||||||
Summary: %{origin_nice} %{featurever} Runtime Environment %{fastdebug_on}
|
Summary: %{origin_nice} %{featurever} Runtime Environment %{fastdebug_on}
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
|
%endif
|
||||||
|
|
||||||
%{java_rpo -- %{fastdebug_suffix_unquoted}}
|
%{java_rpo -- %{fastdebug_suffix_unquoted}}
|
||||||
%description fastdebug
|
%description fastdebug
|
||||||
@ -1337,6 +1353,9 @@ The %{origin_nice} %{featurever} runtime environment.
|
|||||||
%if %{include_normal_build}
|
%if %{include_normal_build}
|
||||||
%package headless
|
%package headless
|
||||||
Summary: %{origin_nice} %{featurever} Headless Runtime Environment
|
Summary: %{origin_nice} %{featurever} Headless Runtime Environment
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
|
Group: Development/Languages
|
||||||
|
%endif
|
||||||
|
|
||||||
%{java_headless_rpo %{nil}}
|
%{java_headless_rpo %{nil}}
|
||||||
|
|
||||||
@ -1347,6 +1366,7 @@ The %{origin_nice} %{featurever} runtime environment without audio and video sup
|
|||||||
%if %{include_debug_build}
|
%if %{include_debug_build}
|
||||||
%package headless-slowdebug
|
%package headless-slowdebug
|
||||||
Summary: %{origin_nice} %{featurever} Runtime Environment %{debug_on}
|
Summary: %{origin_nice} %{featurever} Runtime Environment %{debug_on}
|
||||||
|
Group: Development/Languages
|
||||||
|
|
||||||
%{java_headless_rpo -- %{debug_suffix_unquoted}}
|
%{java_headless_rpo -- %{debug_suffix_unquoted}}
|
||||||
|
|
||||||
@ -1370,6 +1390,9 @@ The %{origin_nice} %{featurever} runtime environment without audio and video sup
|
|||||||
%if %{include_normal_build}
|
%if %{include_normal_build}
|
||||||
%package devel
|
%package devel
|
||||||
Summary: %{origin_nice} %{featurever} Development Environment
|
Summary: %{origin_nice} %{featurever} Development Environment
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
|
Group: Development/Languages
|
||||||
|
%endif
|
||||||
|
|
||||||
%{java_devel_rpo %{nil}}
|
%{java_devel_rpo %{nil}}
|
||||||
|
|
||||||
@ -1380,6 +1403,9 @@ The %{origin_nice} %{featurever} development tools.
|
|||||||
%if %{include_debug_build}
|
%if %{include_debug_build}
|
||||||
%package devel-slowdebug
|
%package devel-slowdebug
|
||||||
Summary: %{origin_nice} %{featurever} Development Environment %{debug_on}
|
Summary: %{origin_nice} %{featurever} Development Environment %{debug_on}
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
|
Group: Development/Languages
|
||||||
|
%endif
|
||||||
|
|
||||||
%{java_devel_rpo -- %{debug_suffix_unquoted}}
|
%{java_devel_rpo -- %{debug_suffix_unquoted}}
|
||||||
|
|
||||||
@ -1440,6 +1466,9 @@ The %{origin_nice} %{featurever} libraries for static linking.
|
|||||||
%if %{include_normal_build}
|
%if %{include_normal_build}
|
||||||
%package jmods
|
%package jmods
|
||||||
Summary: JMods for %{origin_nice} %{featurever}
|
Summary: JMods for %{origin_nice} %{featurever}
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
|
Group: Development/Languages
|
||||||
|
%endif
|
||||||
|
|
||||||
%{java_jmods_rpo %{nil}}
|
%{java_jmods_rpo %{nil}}
|
||||||
|
|
||||||
@ -1450,6 +1479,9 @@ The JMods for %{origin_nice} %{featurever}.
|
|||||||
%if %{include_debug_build}
|
%if %{include_debug_build}
|
||||||
%package jmods-slowdebug
|
%package jmods-slowdebug
|
||||||
Summary: JMods for %{origin_nice} %{featurever} %{debug_on}
|
Summary: JMods for %{origin_nice} %{featurever} %{debug_on}
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
|
Group: Development/Languages
|
||||||
|
%endif
|
||||||
|
|
||||||
%{java_jmods_rpo -- %{debug_suffix_unquoted}}
|
%{java_jmods_rpo -- %{debug_suffix_unquoted}}
|
||||||
|
|
||||||
@ -1470,10 +1502,12 @@ The JMods for %{origin_nice} %{featurever}.
|
|||||||
%{fastdebug_warning}
|
%{fastdebug_warning}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %{include_normal_build}
|
%if %{include_normal_build}
|
||||||
%package demo
|
%package demo
|
||||||
Summary: %{origin_nice} %{featurever} Demos
|
Summary: %{origin_nice} %{featurever} Demos
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
|
Group: Development/Languages
|
||||||
|
%endif
|
||||||
|
|
||||||
%{java_demo_rpo %{nil}}
|
%{java_demo_rpo %{nil}}
|
||||||
|
|
||||||
@ -1484,6 +1518,9 @@ The %{origin_nice} %{featurever} demos.
|
|||||||
%if %{include_debug_build}
|
%if %{include_debug_build}
|
||||||
%package demo-slowdebug
|
%package demo-slowdebug
|
||||||
Summary: %{origin_nice} %{featurever} Demos %{debug_on}
|
Summary: %{origin_nice} %{featurever} Demos %{debug_on}
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
|
Group: Development/Languages
|
||||||
|
%endif
|
||||||
|
|
||||||
%{java_demo_rpo -- %{debug_suffix_unquoted}}
|
%{java_demo_rpo -- %{debug_suffix_unquoted}}
|
||||||
|
|
||||||
@ -1507,6 +1544,9 @@ The %{origin_nice} %{featurever} demos.
|
|||||||
%if %{include_normal_build}
|
%if %{include_normal_build}
|
||||||
%package src
|
%package src
|
||||||
Summary: %{origin_nice} %{featurever} Source Bundle
|
Summary: %{origin_nice} %{featurever} Source Bundle
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
|
Group: Development/Languages
|
||||||
|
%endif
|
||||||
|
|
||||||
%{java_src_rpo %{nil}}
|
%{java_src_rpo %{nil}}
|
||||||
|
|
||||||
@ -1518,6 +1558,9 @@ class library source code for use by IDE indexers and debuggers.
|
|||||||
%if %{include_debug_build}
|
%if %{include_debug_build}
|
||||||
%package src-slowdebug
|
%package src-slowdebug
|
||||||
Summary: %{origin_nice} %{featurever} Source Bundle %{for_debug}
|
Summary: %{origin_nice} %{featurever} Source Bundle %{for_debug}
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
|
Group: Development/Languages
|
||||||
|
%endif
|
||||||
|
|
||||||
%{java_src_rpo -- %{debug_suffix_unquoted}}
|
%{java_src_rpo -- %{debug_suffix_unquoted}}
|
||||||
|
|
||||||
@ -1538,10 +1581,12 @@ The %{compatiblename}-src-fastdebug sub-package contains the complete %{origin_n
|
|||||||
class library source code for use by IDE indexers and debuggers, %{for_fastdebug}.
|
class library source code for use by IDE indexers and debuggers, %{for_fastdebug}.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %{include_normal_build}
|
%if %{include_normal_build}
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: %{origin_nice} %{featurever} API documentation
|
Summary: %{origin_nice} %{featurever} API documentation
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
|
Group: Documentation
|
||||||
|
%endif
|
||||||
Requires: javapackages-filesystem
|
Requires: javapackages-filesystem
|
||||||
Obsoletes: javadoc-slowdebug < 1:11.0.3.7-4
|
Obsoletes: javadoc-slowdebug < 1:11.0.3.7-4
|
||||||
|
|
||||||
@ -1552,6 +1597,9 @@ The %{origin_nice} %{featurever} API documentation.
|
|||||||
|
|
||||||
%package javadoc-zip
|
%package javadoc-zip
|
||||||
Summary: %{origin_nice} %{featurever} API documentation compressed in a single archive
|
Summary: %{origin_nice} %{featurever} API documentation compressed in a single archive
|
||||||
|
%if 0%{?rhel} <= 8
|
||||||
|
Group: Documentation
|
||||||
|
%endif
|
||||||
Requires: javapackages-filesystem
|
Requires: javapackages-filesystem
|
||||||
Obsoletes: javadoc-zip-slowdebug < 1:11.0.3.7-4
|
Obsoletes: javadoc-zip-slowdebug < 1:11.0.3.7-4
|
||||||
|
|
||||||
@ -1635,7 +1683,6 @@ cp -r tapset tapset%{debug_suffix}
|
|||||||
cp -r tapset tapset%{fastdebug_suffix}
|
cp -r tapset tapset%{fastdebug_suffix}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
for suffix in %{build_loop} ; do
|
for suffix in %{build_loop} ; do
|
||||||
for file in "tapset"$suffix/*.in; do
|
for file in "tapset"$suffix/*.in; do
|
||||||
OUTPUT_FILE=`echo $file | sed -e "s:\.stp\.in$:-%{version}-%{release}.%{_arch}.stp:g"`
|
OUTPUT_FILE=`echo $file | sed -e "s:\.stp\.in$:-%{version}-%{release}.%{_arch}.stp:g"`
|
||||||
@ -1711,9 +1758,11 @@ export EXTRA_CFLAGS EXTRA_ASFLAGS
|
|||||||
for suffix in %{build_loop} ; do
|
for suffix in %{build_loop} ; do
|
||||||
if [ "x$suffix" = "x" ] ; then
|
if [ "x$suffix" = "x" ] ; then
|
||||||
debugbuild=release
|
debugbuild=release
|
||||||
|
debug_symbols=internal
|
||||||
else
|
else
|
||||||
# change --something to something
|
# change --something to something
|
||||||
debugbuild=`echo $suffix | sed "s/-//g"`
|
debugbuild=`echo $suffix | sed "s/-//g"`
|
||||||
|
debug_symbols=internal
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for loop in %{main_suffix} %{staticlibs_loop} ; do
|
for loop in %{main_suffix} %{staticlibs_loop} ; do
|
||||||
@ -1760,7 +1809,7 @@ bash ${top_dir_abs_src_path}/configure \
|
|||||||
--with-vendor-vm-bug-url="%{oj_vendor_bug_url}" \
|
--with-vendor-vm-bug-url="%{oj_vendor_bug_url}" \
|
||||||
--with-boot-jdk=/usr/lib/jvm/java-%{buildjdkver}-openjdk \
|
--with-boot-jdk=/usr/lib/jvm/java-%{buildjdkver}-openjdk \
|
||||||
--with-debug-level=$debugbuild \
|
--with-debug-level=$debugbuild \
|
||||||
--with-native-debug-symbols=internal \
|
--with-native-debug-symbols=$debug_symbols \
|
||||||
--enable-sysconf-nss \
|
--enable-sysconf-nss \
|
||||||
--enable-unlimited-crypto \
|
--enable-unlimited-crypto \
|
||||||
--with-zlib=system \
|
--with-zlib=system \
|
||||||
@ -1786,7 +1835,7 @@ make \
|
|||||||
CFLAGS_WARNINGS_ARE_ERRORS="-Wno-error" \
|
CFLAGS_WARNINGS_ARE_ERRORS="-Wno-error" \
|
||||||
$maketargets || ( pwd; find ${top_dir_abs_src_path} ${top_dir_abs_build_path} -name "hs_err_pid*.log" | xargs cat && false )
|
$maketargets || ( pwd; find ${top_dir_abs_src_path} ${top_dir_abs_build_path} -name "hs_err_pid*.log" | xargs cat && false )
|
||||||
|
|
||||||
popd >& /dev/null
|
popd
|
||||||
|
|
||||||
# Restore original source tree if we modified it by removing full in-tree sources
|
# Restore original source tree if we modified it by removing full in-tree sources
|
||||||
if [ -d %{top_level_dir_name_backup} ] ; then
|
if [ -d %{top_level_dir_name_backup} ] ; then
|
||||||
@ -1881,8 +1930,9 @@ readelf --debug-dump $STATIC_LIBS_HOME/lib/libfdlibm.a | grep w_remainder.c
|
|||||||
readelf --debug-dump $STATIC_LIBS_HOME/lib/libfdlibm.a | grep e_remainder.c
|
readelf --debug-dump $STATIC_LIBS_HOME/lib/libfdlibm.a | grep e_remainder.c
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
so_suffix="so"
|
||||||
# Check debug symbols are present and can identify code
|
# Check debug symbols are present and can identify code
|
||||||
find "$JAVA_HOME" -iname '*.so' -print0 | while read -d $'\0' lib
|
find "$JAVA_HOME" -iname "*.$so_suffix" -print0 | while read -d $'\0' lib
|
||||||
do
|
do
|
||||||
if [ -f "$lib" ] ; then
|
if [ -f "$lib" ] ; then
|
||||||
echo "Testing $lib for debug symbols"
|
echo "Testing $lib for debug symbols"
|
||||||
@ -1942,15 +1992,16 @@ quit
|
|||||||
end
|
end
|
||||||
run -version
|
run -version
|
||||||
EOF
|
EOF
|
||||||
|
%if 0%{?fedora} > 0
|
||||||
# This fails on s390x for some reason. Disable for now. See:
|
# This fails on s390x for some reason. Disable for now. See:
|
||||||
# https://koji.fedoraproject.org/koji/taskinfo?taskID=41499227
|
# https://koji.fedoraproject.org/koji/taskinfo?taskID=41499227
|
||||||
%ifnarch s390x
|
%ifnarch s390x
|
||||||
grep 'JavaCallWrapper::JavaCallWrapper' gdb.out
|
grep 'JavaCallWrapper::JavaCallWrapper' gdb.out
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
# Check src.zip has all sources. See RHBZ#1130490
|
# Check src.zip has all sources. See RHBZ#1130490
|
||||||
jar -tf $JAVA_HOME/lib/src.zip | grep 'sun.misc.Unsafe'
|
$JAVA_HOME/bin/jar -tf $JAVA_HOME/lib/src.zip | grep 'sun.misc.Unsafe'
|
||||||
|
|
||||||
# Check class files include useful debugging information
|
# Check class files include useful debugging information
|
||||||
$JAVA_HOME/bin/javap -l java.lang.Object | grep "Compiled from"
|
$JAVA_HOME/bin/javap -l java.lang.Object | grep "Compiled from"
|
||||||
@ -2315,6 +2366,10 @@ require "copy_jdk_configs.lua"
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 02 2021 Jiri Vanek <jvanek@redhat.com> - 1:11.0.12.0.7-3
|
||||||
|
- Minor cosmetic improvements to make spec more comparable between variants
|
||||||
|
- Related: rhbz#1999940
|
||||||
|
|
||||||
* Mon Aug 30 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.12.0.7-2
|
* Mon Aug 30 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:11.0.12.0.7-2
|
||||||
- Extend the default security policy to accomodate PKCS11 accessing jdk.internal.misc.
|
- Extend the default security policy to accomodate PKCS11 accessing jdk.internal.misc.
|
||||||
- Resolves: rhbz#1997360
|
- Resolves: rhbz#1997360
|
||||||
|
Loading…
Reference in New Issue
Block a user