!5 Support nss, systemtap and desktop
Merge pull request !5 from Noah/master
This commit is contained in:
commit
7ccf14013a
97
icedtea_sync.sh
Executable file
97
icedtea_sync.sh
Executable file
@ -0,0 +1,97 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Copyright (C) 2019 Red Hat, Inc.
|
||||||
|
# Written by Andrew John Hughes <gnu.andrew@redhat.com>.
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
ICEDTEA_VERSION=3.15.0
|
||||||
|
ICEDTEA_URL=https://icedtea.classpath.org/download/source
|
||||||
|
ICEDTEA_SIGNING_KEY=CFDA0F9B35964222
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if test "x${WGET}" = "x"; then
|
||||||
|
WGET=$(which wget);
|
||||||
|
if test "x${WGET}" = "x"; then
|
||||||
|
echo "wget not found";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x${CHECKSUM}" = "x"; then
|
||||||
|
CHECKSUM=$(which sha256sum)
|
||||||
|
if test "x${CHECKSUM}" = "x"; then
|
||||||
|
echo "sha256sum not found";
|
||||||
|
exit 2;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x${PGP}" = "x"; then
|
||||||
|
PGP=$(which gpg)
|
||||||
|
if test "x${PGP}" = "x"; then
|
||||||
|
echo "gpg not found";
|
||||||
|
exit 3;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x${TAR}" = "x"; then
|
||||||
|
TAR=$(which tar)
|
||||||
|
if test "x${TAR}" = "x"; then
|
||||||
|
echo "tar not found";
|
||||||
|
exit 4;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Dependencies:";
|
||||||
|
echo -e "\tWGET: ${WGET}";
|
||||||
|
echo -e "\tCHECKSUM: ${CHECKSUM}";
|
||||||
|
echo -e "\tPGP: ${PGP}\n";
|
||||||
|
echo -e "\tTAR: ${TAR}\n";
|
||||||
|
|
||||||
|
echo "Checking for IcedTea signing key ${ICEDTEA_SIGNING_KEY}...";
|
||||||
|
if ! gpg --list-keys ${ICEDTEA_SIGNING_KEY}; then
|
||||||
|
echo "IcedTea signing key ${ICEDTEA_SIGNING_KEY} not installed.";
|
||||||
|
exit 5;
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Downloading IcedTea release tarball...";
|
||||||
|
${WGET} -v ${ICEDTEA_URL}/icedtea-${ICEDTEA_VERSION}.tar.xz
|
||||||
|
echo "Downloading IcedTea tarball signature...";
|
||||||
|
${WGET} -v ${ICEDTEA_URL}/icedtea-${ICEDTEA_VERSION}.tar.xz.sig
|
||||||
|
echo "Downloading IcedTea tarball checksums...";
|
||||||
|
${WGET} -v ${ICEDTEA_URL}/icedtea-${ICEDTEA_VERSION}.sha256
|
||||||
|
|
||||||
|
echo "Verifying checksums...";
|
||||||
|
${CHECKSUM} --check --ignore-missing icedtea-${ICEDTEA_VERSION}.sha256
|
||||||
|
|
||||||
|
echo "Checking signature...";
|
||||||
|
${PGP} --verify icedtea-${ICEDTEA_VERSION}.tar.xz.sig
|
||||||
|
|
||||||
|
echo "Extracting files...";
|
||||||
|
${TAR} xJf icedtea-${ICEDTEA_VERSION}.tar.xz \
|
||||||
|
icedtea-${ICEDTEA_VERSION}/tapset \
|
||||||
|
icedtea-${ICEDTEA_VERSION}/jconsole.desktop.in
|
||||||
|
|
||||||
|
echo "Replacing desktop files...";
|
||||||
|
mv -v icedtea-${ICEDTEA_VERSION}/jconsole.desktop.in .
|
||||||
|
|
||||||
|
echo "Creating new tapset tarball...";
|
||||||
|
mv -v icedtea-${ICEDTEA_VERSION} openjdk
|
||||||
|
${TAR} cJf tapsets-icedtea-${ICEDTEA_VERSION}.tar.xz openjdk
|
||||||
|
|
||||||
|
rm -rvf openjdk
|
||||||
|
rm -vf icedtea-${ICEDTEA_VERSION}.tar.xz
|
||||||
|
rm -vf icedtea-${ICEDTEA_VERSION}.tar.xz.sig
|
||||||
|
rm -vf icedtea-${ICEDTEA_VERSION}.sha256
|
||||||
@ -22,7 +22,10 @@
|
|||||||
# Enable release builds by default on relevant arches.
|
# Enable release builds by default on relevant arches.
|
||||||
%bcond_without release
|
%bcond_without release
|
||||||
|
|
||||||
%define _unpackaged_files_terminate_build 0
|
# The -g flag says to use strip -g instead of full strip on DSOs or EXEs.
|
||||||
|
# This fixes detailed NMT and other tools which need minimal debug info.
|
||||||
|
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1520879
|
||||||
|
%global _find_debuginfo_opts -g
|
||||||
|
|
||||||
# note: parametrized macros are order-sensitive (unlike not-parametrized) even with normal macros
|
# note: parametrized macros are order-sensitive (unlike not-parametrized) even with normal macros
|
||||||
# also necessary when passing it as parameter to other macros. If not macro, then it is considered a switch
|
# also necessary when passing it as parameter to other macros. If not macro, then it is considered a switch
|
||||||
@ -50,28 +53,14 @@
|
|||||||
%global build_loop1 %{nil}
|
%global build_loop1 %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global aarch64 aarch64 arm64 armv8
|
%global aarch64 aarch64
|
||||||
# we need to distinguish between big and little endian PPC64
|
|
||||||
%global ppc64le ppc64le
|
|
||||||
%global ppc64be ppc64 ppc64p7
|
|
||||||
%global multilib_arches %{power64} sparc64 x86_64
|
|
||||||
%global jit_arches %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} %{arm} s390x
|
|
||||||
%global aot_arches x86_64 %{aarch64}
|
|
||||||
|
|
||||||
# By default, we build a debug build during main build on JIT architectures
|
# By default, we build a debug build during main build on JIT architectures
|
||||||
%if %{with slowdebug}
|
%if %{with slowdebug}
|
||||||
%ifarch %{jit_arches}
|
|
||||||
%ifnarch %{arm}
|
|
||||||
%global include_debug_build 1
|
%global include_debug_build 1
|
||||||
%else
|
%else
|
||||||
%global include_debug_build 0
|
%global include_debug_build 0
|
||||||
%endif
|
%endif
|
||||||
%else
|
|
||||||
%global include_debug_build 0
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%global include_debug_build 0
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{include_debug_build}
|
%if %{include_debug_build}
|
||||||
%global build_loop2 %{debug_suffix}
|
%global build_loop2 %{debug_suffix}
|
||||||
@ -85,18 +74,9 @@
|
|||||||
# is expected in one single case at the end of the build
|
# is expected in one single case at the end of the build
|
||||||
%global rev_build_loop %{build_loop2} %{build_loop1}
|
%global rev_build_loop %{build_loop2} %{build_loop1}
|
||||||
|
|
||||||
%ifarch %{jit_arches}
|
%global release_targets images docs-zip
|
||||||
%global bootstrap_build 1
|
# No docs nor bootcycle for debug builds
|
||||||
%else
|
%global debug_targets images
|
||||||
%global bootstrap_build 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{bootstrap_build}
|
|
||||||
%global targets bootcycle-images all docs
|
|
||||||
%else
|
|
||||||
%global targets all docs
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
# 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
|
||||||
# We filter out -O flags so that the optimization of HotSpot is not lowered from O3 to O2
|
# We filter out -O flags so that the optimization of HotSpot is not lowered from O3 to O2
|
||||||
@ -107,10 +87,11 @@
|
|||||||
%global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||')
|
%global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||')
|
||||||
%global ourldflags %{__global_ldflags}
|
%global ourldflags %{__global_ldflags}
|
||||||
|
|
||||||
%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.*|libunpack[.]so.*|libzip[.]so.*
|
# With disabled nss is NSS deactivated, so NSS_LIBDIR can contain the wrong path
|
||||||
|
# the initialization must be here. Later the pkg-config have buggy behavior
|
||||||
%global __provides_exclude ^(%{_privatelibs})$
|
# looks like openjdk RPM specific bug
|
||||||
%global __requires_exclude ^(%{_privatelibs})$
|
# Always set this so the nss.cfg file is not broken
|
||||||
|
%global NSS_LIBDIR %(pkg-config --variable=libdir nss)
|
||||||
|
|
||||||
# In some cases, the arch used by the JDK does
|
# In some cases, the arch used by the JDK does
|
||||||
# not match _arch.
|
# not match _arch.
|
||||||
@ -119,56 +100,18 @@
|
|||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%global archinstall amd64
|
%global archinstall amd64
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
|
||||||
%global archinstall ppc
|
|
||||||
%endif
|
|
||||||
%ifarch %{ppc64be}
|
|
||||||
%global archinstall ppc64
|
|
||||||
%endif
|
|
||||||
%ifarch %{ppc64le}
|
|
||||||
%global archinstall ppc64le
|
|
||||||
%endif
|
|
||||||
%ifarch %{ix86}
|
|
||||||
%global archinstall i686
|
|
||||||
%endif
|
|
||||||
%ifarch ia64
|
|
||||||
%global archinstall ia64
|
|
||||||
%endif
|
|
||||||
%ifarch s390
|
|
||||||
%global archinstall s390
|
|
||||||
%endif
|
|
||||||
%ifarch s390x
|
|
||||||
%global archinstall s390x
|
|
||||||
%endif
|
|
||||||
%ifarch %{arm}
|
|
||||||
%global archinstall arm
|
|
||||||
%endif
|
|
||||||
%ifarch %{aarch64}
|
%ifarch %{aarch64}
|
||||||
%global archinstall aarch64
|
%global archinstall aarch64
|
||||||
%endif
|
%endif
|
||||||
# 32 bit sparc, optimized for v9
|
|
||||||
%ifarch sparcv9
|
|
||||||
%global archinstall sparc
|
|
||||||
%endif
|
|
||||||
# 64 bit sparc
|
|
||||||
%ifarch sparc64
|
|
||||||
%global archinstall sparcv9
|
|
||||||
%endif
|
|
||||||
%ifnarch %{jit_arches}
|
|
||||||
%global archinstall %{_arch}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
%global with_systemtap 1
|
||||||
|
|
||||||
%ifarch %{jit_arches}
|
|
||||||
%global with_systemtap 0
|
|
||||||
%else
|
|
||||||
%global with_systemtap 0
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# New Version-String scheme-style defines
|
# New Version-String scheme-style defines
|
||||||
%global majorver 11
|
%global majorver 11
|
||||||
|
|
||||||
|
# Define IcedTea version used for SystemTap tapsets and desktop file
|
||||||
|
%global icedteaver 3.15.0
|
||||||
|
|
||||||
# Standard JPackage naming and versioning defines
|
# Standard JPackage naming and versioning defines
|
||||||
%global origin openjdk
|
%global origin openjdk
|
||||||
%global origin_nice OpenJDK
|
%global origin_nice OpenJDK
|
||||||
@ -207,7 +150,6 @@
|
|||||||
|
|
||||||
%global rpm_state_dir %{_localstatedir}/lib/rpm-state/
|
%global rpm_state_dir %{_localstatedir}/lib/rpm-state/
|
||||||
|
|
||||||
%if %{with_systemtap}
|
|
||||||
# Where to install systemtap tapset (links)
|
# Where to install systemtap tapset (links)
|
||||||
# We would like these to be in a package specific sub-dir,
|
# We would like these to be in a package specific sub-dir,
|
||||||
# but currently systemtap doesn't support that, so we have to
|
# but currently systemtap doesn't support that, so we have to
|
||||||
@ -219,7 +161,6 @@
|
|||||||
%global tapsetroot /usr/share/systemtap
|
%global tapsetroot /usr/share/systemtap
|
||||||
%global tapsetdirttapset %{tapsetroot}/tapset/
|
%global tapsetdirttapset %{tapsetroot}/tapset/
|
||||||
%global tapsetdir %{tapsetdirttapset}/%{_build_cpu}
|
%global tapsetdir %{tapsetdirttapset}/%{_build_cpu}
|
||||||
%endif
|
|
||||||
|
|
||||||
# not-duplicated scriptlets for normal/debug packages
|
# not-duplicated scriptlets for normal/debug packages
|
||||||
%global update_desktop_icons /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
%global update_desktop_icons /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
@ -233,12 +174,8 @@ exit 0
|
|||||||
|
|
||||||
|
|
||||||
%define post_headless() %{expand:
|
%define post_headless() %{expand:
|
||||||
%ifarch %{jit_arches}
|
|
||||||
# MetaspaceShared::generate_vtable_methods not implemented for PPC JIT
|
# MetaspaceShared::generate_vtable_methods not implemented for PPC JIT
|
||||||
%ifnarch %{ppc64le}
|
|
||||||
%{jrebindir -- %{?1}}/java -Xshare:dump >/dev/null 2>/dev/null
|
%{jrebindir -- %{?1}}/java -Xshare:dump >/dev/null 2>/dev/null
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
PRIORITY=%{priority}
|
PRIORITY=%{priority}
|
||||||
if [ "%{?1}" == %{debug_suffix} ]; then
|
if [ "%{?1}" == %{debug_suffix} ]; then
|
||||||
@ -323,9 +260,7 @@ ext=.gz
|
|||||||
alternatives \\
|
alternatives \\
|
||||||
--install %{_bindir}/javac javac %{sdkbindir -- %{?1}}/javac $PRIORITY --family %{name}.%{_arch} \\
|
--install %{_bindir}/javac javac %{sdkbindir -- %{?1}}/javac $PRIORITY --family %{name}.%{_arch} \\
|
||||||
--slave %{_jvmdir}/java java_sdk %{_jvmdir}/%{sdkdir -- %{?1}} \\
|
--slave %{_jvmdir}/java java_sdk %{_jvmdir}/%{sdkdir -- %{?1}} \\
|
||||||
%ifarch %{aot_arches}
|
|
||||||
--slave %{_bindir}/jaotc jaotc %{sdkbindir -- %{?1}}/jaotc \\
|
--slave %{_bindir}/jaotc jaotc %{sdkbindir -- %{?1}}/jaotc \\
|
||||||
%endif
|
|
||||||
--slave %{_bindir}/jlink jlink %{sdkbindir -- %{?1}}/jlink \\
|
--slave %{_bindir}/jlink jlink %{sdkbindir -- %{?1}}/jlink \\
|
||||||
--slave %{_bindir}/jmod jmod %{sdkbindir -- %{?1}}/jmod \\
|
--slave %{_bindir}/jmod jmod %{sdkbindir -- %{?1}}/jmod \\
|
||||||
--slave %{_bindir}/jhsdb jhsdb %{sdkbindir -- %{?1}}/jhsdb \\
|
--slave %{_bindir}/jhsdb jhsdb %{sdkbindir -- %{?1}}/jhsdb \\
|
||||||
@ -338,6 +273,7 @@ alternatives \\
|
|||||||
--slave %{_bindir}/jdb jdb %{sdkbindir -- %{?1}}/jdb \\
|
--slave %{_bindir}/jdb jdb %{sdkbindir -- %{?1}}/jdb \\
|
||||||
--slave %{_bindir}/jdeps jdeps %{sdkbindir -- %{?1}}/jdeps \\
|
--slave %{_bindir}/jdeps jdeps %{sdkbindir -- %{?1}}/jdeps \\
|
||||||
--slave %{_bindir}/jdeprscan jdeprscan %{sdkbindir -- %{?1}}/jdeprscan \\
|
--slave %{_bindir}/jdeprscan jdeprscan %{sdkbindir -- %{?1}}/jdeprscan \\
|
||||||
|
--slave %{_bindir}/jfr jfr %{sdkbindir -- %{?1}}/jfr \\
|
||||||
--slave %{_bindir}/jimage jimage %{sdkbindir -- %{?1}}/jimage \\
|
--slave %{_bindir}/jimage jimage %{sdkbindir -- %{?1}}/jimage \\
|
||||||
--slave %{_bindir}/jinfo jinfo %{sdkbindir -- %{?1}}/jinfo \\
|
--slave %{_bindir}/jinfo jinfo %{sdkbindir -- %{?1}}/jinfo \\
|
||||||
--slave %{_bindir}/jmap jmap %{sdkbindir -- %{?1}}/jmap \\
|
--slave %{_bindir}/jmap jmap %{sdkbindir -- %{?1}}/jmap \\
|
||||||
@ -478,10 +414,9 @@ exit 0
|
|||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmiregistry
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmiregistry
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/unpack200
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/unpack200
|
||||||
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib
|
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib
|
||||||
%ifarch %{jit_arches}
|
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/classlist
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/classlist
|
||||||
%endif
|
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jexec
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jexec
|
||||||
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jspawnhelper
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jrt-fs.jar
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jrt-fs.jar
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/modules
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/modules
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/psfont.properties.ja
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/psfont.properties.ja
|
||||||
@ -516,12 +451,7 @@ exit 0
|
|||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libnio.so
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libnio.so
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libprefs.so
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libprefs.so
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/librmi.so
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/librmi.so
|
||||||
# Zero and S390x don't have SA
|
|
||||||
%ifarch %{jit_arches}
|
|
||||||
%ifnarch s390x
|
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsaproc.so
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsaproc.so
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsctp.so
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsctp.so
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsunec.so
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsunec.so
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libunpack.so
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libunpack.so
|
||||||
@ -538,13 +468,8 @@ exit 0
|
|||||||
%{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1*
|
%{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1*
|
||||||
%{_mandir}/man1/unpack200-%{uniquesuffix -- %{?1}}.1*
|
%{_mandir}/man1/unpack200-%{uniquesuffix -- %{?1}}.1*
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/server/
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/server/
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/client/
|
|
||||||
%ifarch %{jit_arches}
|
|
||||||
%ifnarch %{power64}
|
|
||||||
%attr(444, root, root) %ghost %{_jvmdir}/%{sdkdir -- %{?1}}/lib/server/classes.jsa
|
%attr(444, root, root) %ghost %{_jvmdir}/%{sdkdir -- %{?1}}/lib/server/classes.jsa
|
||||||
%attr(444, root, root) %ghost %{_jvmdir}/%{sdkdir -- %{?1}}/lib/client/classes.jsa
|
%attr(444, root, root) %ghost %{_jvmdir}/%{sdkdir -- %{?1}}/lib/client/classes.jsa
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%dir %{etcjavasubdir}
|
%dir %{etcjavasubdir}
|
||||||
%dir %{etcjavadir -- %{?1}}
|
%dir %{etcjavadir -- %{?1}}
|
||||||
%dir %{etcjavadir -- %{?1}}/lib
|
%dir %{etcjavadir -- %{?1}}/lib
|
||||||
@ -568,6 +493,7 @@ exit 0
|
|||||||
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/java.policy
|
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/java.policy
|
||||||
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/java.security
|
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/java.security
|
||||||
%config(noreplace) %{etcjavadir -- %{?1}}/conf/logging.properties
|
%config(noreplace) %{etcjavadir -- %{?1}}/conf/logging.properties
|
||||||
|
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/nss.cfg
|
||||||
%config(noreplace) %{etcjavadir -- %{?1}}/conf/management/jmxremote.access
|
%config(noreplace) %{etcjavadir -- %{?1}}/conf/management/jmxremote.access
|
||||||
# this is conifg template, thus not config-noreplace
|
# this is conifg template, thus not config-noreplace
|
||||||
%config %{etcjavadir -- %{?1}}/conf/management/jmxremote.password.template
|
%config %{etcjavadir -- %{?1}}/conf/management/jmxremote.password.template
|
||||||
@ -590,13 +516,9 @@ exit 0
|
|||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdb
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdb
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeps
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeps
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeprscan
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeprscan
|
||||||
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jfr
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jimage
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jimage
|
||||||
# Zero and S390x don't have SA
|
|
||||||
%ifarch %{jit_arches}
|
|
||||||
%ifnarch s390x
|
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jhsdb
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jhsdb
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jinfo
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jinfo
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jlink
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jlink
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jmap
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jmap
|
||||||
@ -609,14 +531,11 @@ exit 0
|
|||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstatd
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstatd
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmic
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmic
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/serialver
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/serialver
|
||||||
%ifarch %{aot_arches}
|
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jaotc
|
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jaotc
|
||||||
%endif
|
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/include
|
%{_jvmdir}/%{sdkdir -- %{?1}}/include
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/ct.sym
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/ct.sym
|
||||||
%if %{with_systemtap}
|
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/tapset
|
%{_jvmdir}/%{sdkdir -- %{?1}}/tapset
|
||||||
%endif
|
%{_datadir}/applications/*jconsole%{?1}.desktop
|
||||||
%{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1*
|
%{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1*
|
||||||
%{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1*
|
%{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1*
|
||||||
%{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1*
|
%{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1*
|
||||||
@ -635,6 +554,10 @@ exit 0
|
|||||||
%{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1*
|
%{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1*
|
||||||
%{_mandir}/man1/rmic-%{uniquesuffix -- %{?1}}.1*
|
%{_mandir}/man1/rmic-%{uniquesuffix -- %{?1}}.1*
|
||||||
%{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1*
|
%{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1*
|
||||||
|
%dir %{tapsetroot}
|
||||||
|
%dir %{tapsetdirttapset}
|
||||||
|
%dir %{tapsetdir}
|
||||||
|
%{tapsetdir}/*%{_arch}%{?1}.stp
|
||||||
}
|
}
|
||||||
|
|
||||||
%define files_jmods() %{expand:
|
%define files_jmods() %{expand:
|
||||||
@ -796,12 +719,9 @@ Provides: java-%{javaver}-src%{?1} = %{epoch}:%{version}-%{release}
|
|||||||
Provides: java-%{javaver}-%{origin}-src%{?1} = %{epoch}:%{version}-%{release}
|
Provides: java-%{javaver}-%{origin}-src%{?1} = %{epoch}:%{version}-%{release}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Prevent brp-java-repack-jars from being run
|
|
||||||
%global __jar_repack 0
|
|
||||||
|
|
||||||
Name: java-%{javaver}-%{origin}
|
Name: java-%{javaver}-%{origin}
|
||||||
Version: %{fulljavaver}
|
Version: %{fulljavaver}
|
||||||
Release: 3
|
Release: 4
|
||||||
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons
|
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons
|
||||||
# and this change was brought into RHEL-4. java-1.5.0-ibm packages
|
# and this change was brought into RHEL-4. java-1.5.0-ibm packages
|
||||||
# also included the epoch in their virtual provides. This created a
|
# also included the epoch in their virtual provides. This created a
|
||||||
@ -836,11 +756,25 @@ URL: http://openjdk.java.net/
|
|||||||
|
|
||||||
Source0: openjdk-%{fulljavaver}-ga.tar.xz
|
Source0: openjdk-%{fulljavaver}-ga.tar.xz
|
||||||
|
|
||||||
|
# Use 'icedtea_sync.sh' to update the following
|
||||||
|
# They are based on code contained in the IcedTea project (3.x).
|
||||||
|
# Systemtap tapsets. Zipped up to keep it small.
|
||||||
|
Source8: tapsets-icedtea-%{icedteaver}.tar.xz
|
||||||
|
|
||||||
|
# Desktop files. Adapted from IcedTea
|
||||||
|
Source9: jconsole.desktop.in
|
||||||
|
|
||||||
|
# nss configuration file
|
||||||
|
Source11: nss.cfg.in
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
#
|
#
|
||||||
# RPM/distribution specific patches
|
# RPM/distribution specific patches
|
||||||
#
|
#
|
||||||
############################################
|
############################################
|
||||||
|
# NSS via SunPKCS11 Provider (disabled comment
|
||||||
|
# due to memory leak).
|
||||||
|
Patch1000: rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
#
|
#
|
||||||
@ -869,14 +803,12 @@ Patch25: 8212933-Thread-SMR-requesting-a-VM-operation-whilst-.patch
|
|||||||
Patch26: ZGC-aarch64-fix-system-call-number-of-memfd_create.patch
|
Patch26: ZGC-aarch64-fix-system-call-number-of-memfd_create.patch
|
||||||
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: alsa-lib-devel
|
BuildRequires: alsa-lib-devel
|
||||||
BuildRequires: binutils
|
BuildRequires: binutils
|
||||||
BuildRequires: cups-devel
|
BuildRequires: cups-devel
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
# elfutils only are OK for build without AOT
|
# elfutils only are OK for build without AOT
|
||||||
BuildRequires: elfutils-devel
|
BuildRequires: elfutils-devel
|
||||||
BuildRequires: fontconfig
|
|
||||||
BuildRequires: freetype-devel
|
BuildRequires: freetype-devel
|
||||||
BuildRequires: giflib-devel
|
BuildRequires: giflib-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -888,27 +820,21 @@ BuildRequires: libpng-devel
|
|||||||
BuildRequires: libxslt
|
BuildRequires: libxslt
|
||||||
BuildRequires: libX11-devel
|
BuildRequires: libX11-devel
|
||||||
BuildRequires: libXi-devel
|
BuildRequires: libXi-devel
|
||||||
BuildRequires: libXinerama-devel
|
|
||||||
BuildRequires: libXt-devel
|
BuildRequires: libXt-devel
|
||||||
BuildRequires: libXtst-devel
|
BuildRequires: libXtst-devel
|
||||||
|
# Requirements for setting up the nss.cfg
|
||||||
|
BuildRequires: nss-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: xorg-x11-proto-devel
|
BuildRequires: xorg-x11-proto-devel
|
||||||
BuildRequires: zip
|
BuildRequires: zip
|
||||||
BuildRequires: javapackages-filesystem
|
|
||||||
BuildRequires: java-11-openjdk-devel
|
BuildRequires: java-11-openjdk-devel
|
||||||
# Zero-assembler build requirement
|
|
||||||
%ifnarch %{jit_arches}
|
|
||||||
BuildRequires: libffi-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: tzdata-java >= 2015d
|
BuildRequires: tzdata-java >= 2015d
|
||||||
# Earlier versions have a bug in tree vectorization on PPC
|
# Earlier versions have a bug in tree vectorization on PPC
|
||||||
BuildRequires: gcc >= 4.8.3-8
|
BuildRequires: gcc >= 4.8.3-8
|
||||||
# Build requirements for SunEC system NSS support
|
# Build requirements for SunEC system NSS support
|
||||||
BuildRequires: nss-softokn-freebl-devel >= 3.16.1
|
BuildRequires: nss-softokn-freebl-devel >= 3.16.1
|
||||||
|
|
||||||
%if %{with_systemtap}
|
|
||||||
BuildRequires: systemtap-sdt-devel
|
BuildRequires: systemtap-sdt-devel
|
||||||
%endif
|
|
||||||
|
|
||||||
# this is always built, also during debug-only build
|
# this is always built, also during debug-only build
|
||||||
# when it is built in debug-only this package is just placeholder
|
# when it is built in debug-only this package is just placeholder
|
||||||
@ -1139,6 +1065,56 @@ pushd %{top_level_dir_name}
|
|||||||
%patch24 -p1
|
%patch24 -p1
|
||||||
%patch25 -p1
|
%patch25 -p1
|
||||||
%patch26 -p1
|
%patch26 -p1
|
||||||
|
popd # openjdk
|
||||||
|
|
||||||
|
%patch1000
|
||||||
|
|
||||||
|
# Extract systemtap tapsets
|
||||||
|
%if %{with_systemtap}
|
||||||
|
tar --strip-components=1 -x -I xz -f %{SOURCE8}
|
||||||
|
%if %{include_debug_build}
|
||||||
|
cp -r tapset tapset%{debug_suffix}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
for suffix in %{build_loop} ; do
|
||||||
|
for file in "tapset"$suffix/*.in; do
|
||||||
|
OUTPUT_FILE=`echo $file | sed -e "s:\.stp\.in$:-%{version}-%{release}.%{_arch}.stp:g"`
|
||||||
|
sed -e "s:@ABS_SERVER_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/lib/server/libjvm.so:g" $file > $file.1
|
||||||
|
# TODO find out which architectures other than i686 have a client vm
|
||||||
|
%ifarch %{ix86}
|
||||||
|
sed -e "s:@ABS_CLIENT_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/lib/client/libjvm.so:g" $file.1 > $OUTPUT_FILE
|
||||||
|
%else
|
||||||
|
sed -e "/@ABS_CLIENT_LIBJVM_SO@/d" $file.1 > $OUTPUT_FILE
|
||||||
|
%endif
|
||||||
|
sed -i -e "s:@ABS_JAVA_HOME_DIR@:%{_jvmdir}/%{sdkdir -- $suffix}:g" $OUTPUT_FILE
|
||||||
|
sed -i -e "s:@INSTALL_ARCH_DIR@:%{archinstall}:g" $OUTPUT_FILE
|
||||||
|
sed -i -e "s:@prefix@:%{_jvmdir}/%{sdkdir -- $suffix}/:g" $OUTPUT_FILE
|
||||||
|
done
|
||||||
|
done
|
||||||
|
# systemtap tapsets ends
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# Prepare desktop files
|
||||||
|
# The _X_ syntax indicates variables that are replaced by make upstream
|
||||||
|
# The @X@ syntax indicates variables that are replaced by configure upstream
|
||||||
|
for suffix in %{build_loop} ; do
|
||||||
|
for file in %{SOURCE9}; do
|
||||||
|
FILE=`basename $file | sed -e s:\.in$::g`
|
||||||
|
EXT="${FILE##*.}"
|
||||||
|
NAME="${FILE%.*}"
|
||||||
|
OUTPUT_FILE=$NAME$suffix.$EXT
|
||||||
|
sed -e "s:_SDKBINDIR_:%{sdkbindir -- $suffix}:g" $file > $OUTPUT_FILE
|
||||||
|
sed -i -e "s:@target_cpu@:%{_arch}:g" $OUTPUT_FILE
|
||||||
|
sed -i -e "s:@OPENJDK_VER@:%{version}-%{release}.%{_arch}$suffix:g" $OUTPUT_FILE
|
||||||
|
sed -i -e "s:@JAVA_VER@:%{javaver}:g" $OUTPUT_FILE
|
||||||
|
sed -i -e "s:@JAVA_VENDOR@:%{origin}:g" $OUTPUT_FILE
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
# Setup nss.cfg
|
||||||
|
sed -e "s:@NSS_LIBDIR@:%{NSS_LIBDIR}:g" %{SOURCE11} > nss.cfg
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# How many CPU's do we have?
|
# How many CPU's do we have?
|
||||||
@ -1149,12 +1125,9 @@ export NUM_PROC=${NUM_PROC:-1}
|
|||||||
[ ${NUM_PROC} -gt %{?_smp_ncpus_max} ] && export NUM_PROC=%{?_smp_ncpus_max}
|
[ ${NUM_PROC} -gt %{?_smp_ncpus_max} ] && export NUM_PROC=%{?_smp_ncpus_max}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch s390x sparc64 alpha %{power64} %{aarch64}
|
%ifarch %{aarch64}
|
||||||
export ARCH_DATA_MODEL=64
|
export ARCH_DATA_MODEL=64
|
||||||
%endif
|
%endif
|
||||||
%ifarch alpha
|
|
||||||
export CFLAGS="$CFLAGS -mieee"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# We use ourcppflags because the OpenJDK build seems to
|
# We use ourcppflags because the OpenJDK build seems to
|
||||||
# pass EXTRA_CFLAGS to the HotSpot C++ compiler...
|
# pass EXTRA_CFLAGS to the HotSpot C++ compiler...
|
||||||
@ -1162,10 +1135,6 @@ export CFLAGS="$CFLAGS -mieee"
|
|||||||
EXTRA_CFLAGS="%ourcppflags -Wno-error -fno-delete-null-pointer-checks -fno-lifetime-dse"
|
EXTRA_CFLAGS="%ourcppflags -Wno-error -fno-delete-null-pointer-checks -fno-lifetime-dse"
|
||||||
EXTRA_CPP_FLAGS="%ourcppflags -std=gnu++98 -Wno-error -fno-delete-null-pointer-checks -fno-lifetime-dse"
|
EXTRA_CPP_FLAGS="%ourcppflags -std=gnu++98 -Wno-error -fno-delete-null-pointer-checks -fno-lifetime-dse"
|
||||||
|
|
||||||
%ifarch %{power64} ppc
|
|
||||||
# fix rpmlint warnings
|
|
||||||
EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
|
|
||||||
%endif
|
|
||||||
export EXTRA_CFLAGS
|
export EXTRA_CFLAGS
|
||||||
|
|
||||||
for suffix in %{build_loop} ; do
|
for suffix in %{build_loop} ; do
|
||||||
@ -1183,12 +1152,6 @@ mkdir -p %{buildoutputdir -- $suffix}
|
|||||||
pushd %{buildoutputdir -- $suffix}
|
pushd %{buildoutputdir -- $suffix}
|
||||||
|
|
||||||
bash ../configure \
|
bash ../configure \
|
||||||
%ifnarch %{jit_arches}
|
|
||||||
--with-jvm-variants=zero \
|
|
||||||
%endif
|
|
||||||
%ifarch %{ppc64le}
|
|
||||||
--with-jobs=1 \
|
|
||||||
%endif
|
|
||||||
--with-version-pre="" \
|
--with-version-pre="" \
|
||||||
--with-version-opt="" \
|
--with-version-opt="" \
|
||||||
--with-version-build=%{buildver} \
|
--with-version-build=%{buildver} \
|
||||||
@ -1211,14 +1174,19 @@ bash ../configure \
|
|||||||
--disable-warnings-as-errors \
|
--disable-warnings-as-errors \
|
||||||
--with-boot-jdk-jvmargs=-XX:-UsePerfData
|
--with-boot-jdk-jvmargs=-XX:-UsePerfData
|
||||||
|
|
||||||
|
# Debug builds don't need same targets as release for
|
||||||
|
# build speed-up
|
||||||
|
maketargets="%{release_targets}"
|
||||||
|
if echo $debugbuild | grep -q "debug" ; then
|
||||||
|
maketargets="%{debug_targets}"
|
||||||
|
fi
|
||||||
|
|
||||||
make \
|
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):
|
||||||
@ -1234,6 +1202,9 @@ popd >& /dev/null
|
|||||||
# 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)/%{buildoutputdir -- $suffix}/images/%{jdkimage}
|
export JAVA_HOME=$(pwd)/%{buildoutputdir -- $suffix}/images/%{jdkimage}
|
||||||
|
|
||||||
|
# Install nss.cfg right away as we will be using the JRE above
|
||||||
|
install -m 644 nss.cfg $JAVA_HOME/conf/security/
|
||||||
|
|
||||||
# Use system-wide tzdata
|
# Use system-wide tzdata
|
||||||
rm $JAVA_HOME/lib/tzdb.dat
|
rm $JAVA_HOME/lib/tzdb.dat
|
||||||
ln -s %{_datadir}/javazi-1.8/tzdb.dat $JAVA_HOME/lib/tzdb.dat
|
ln -s %{_datadir}/javazi-1.8/tzdb.dat $JAVA_HOME/lib/tzdb.dat
|
||||||
@ -1335,14 +1306,8 @@ mkdir -p $RPM_BUILD_ROOT%{_jvmdir}
|
|||||||
cp -a %{buildoutputdir -- $suffix}/images/%{jdkimage} \
|
cp -a %{buildoutputdir -- $suffix}/images/%{jdkimage} \
|
||||||
$RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
|
$RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
|
||||||
|
|
||||||
# Install jsa directories so we can owe them
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/%{archinstall}/server/
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/%{archinstall}/client/
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/client/ || true ; # sometimes is here, sometimes not, ifout it or || true it out
|
|
||||||
|
|
||||||
pushd %{buildoutputdir $suffix}/images/%{jdkimage}
|
pushd %{buildoutputdir $suffix}/images/%{jdkimage}
|
||||||
|
|
||||||
%if %{with_systemtap}
|
|
||||||
# Install systemtap support files
|
# Install systemtap support files
|
||||||
install -dm 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset
|
install -dm 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset
|
||||||
# note, that uniquesuffix is in BUILD dir in this case
|
# note, that uniquesuffix is in BUILD dir in this case
|
||||||
@ -1355,7 +1320,6 @@ pushd %{buildoutputdir $suffix}/images/%{jdkimage}
|
|||||||
targetName=`echo $name | sed "s/.stp/$suffix.stp/"`
|
targetName=`echo $name | sed "s/.stp/$suffix.stp/"`
|
||||||
ln -sf %{_jvmdir}/%{sdkdir -- $suffix}/tapset/$name $RPM_BUILD_ROOT%{tapsetdir}/$targetName
|
ln -sf %{_jvmdir}/%{sdkdir -- $suffix}/tapset/$name $RPM_BUILD_ROOT%{tapsetdir}/$targetName
|
||||||
done
|
done
|
||||||
%endif
|
|
||||||
|
|
||||||
# Remove empty cacerts database
|
# Remove empty cacerts database
|
||||||
rm -f $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/security/cacerts
|
rm -f $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/security/cacerts
|
||||||
@ -1385,11 +1349,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}.0.%{updatever}+%{buildver}-docs.zip $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}.zip
|
cp -a %{buildoutputdir -- $suffix}/bundles/jdk-%{majorver}.0.%{updatever}+%{buildver}-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
|
||||||
@ -1398,6 +1363,13 @@ for s in 16 24 32 48 ; do
|
|||||||
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/java-%{javaver}-%{origin}.png
|
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/java-%{javaver}-%{origin}.png
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Install desktop files
|
||||||
|
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/{applications,pixmaps}
|
||||||
|
for e in jconsole$suffix ; do
|
||||||
|
desktop-file-install --vendor=%{uniquesuffix -- $suffix} --mode=644 \
|
||||||
|
--dir=$RPM_BUILD_ROOT%{_datadir}/applications $e.desktop
|
||||||
|
done
|
||||||
|
|
||||||
# Install /etc/.java/.systemPrefs/ directory
|
# Install /etc/.java/.systemPrefs/ directory
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/.java/.systemPrefs
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/.java/.systemPrefs
|
||||||
|
|
||||||
@ -1608,6 +1580,9 @@ require "copy_jdk_configs.lua"
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 25 2020 Noah <hedongbo@huawei.com> - 1:11.0.7.10-4
|
||||||
|
- Support nss, systemtap and desktop
|
||||||
|
|
||||||
* Thu May 21 2020 jdkboy <guoge1@huawei.com> - 1:11.0.7.10-3
|
* Thu May 21 2020 jdkboy <guoge1@huawei.com> - 1:11.0.7.10-3
|
||||||
- Update to 11.0.7+10 (GA)
|
- Update to 11.0.7+10 (GA)
|
||||||
|
|
||||||
|
|||||||
10
jconsole.desktop.in
Normal file
10
jconsole.desktop.in
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=OpenJDK @JAVA_VER@ for @target_cpu@ Monitoring & Management Console (@OPENJDK_VER@)
|
||||||
|
Comment=Monitor and manage OpenJDK applications
|
||||||
|
Exec=_SDKBINDIR_/jconsole
|
||||||
|
Icon=java-@JAVA_VER@-@JAVA_VENDOR@
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
StartupWMClass=sun-tools-jconsole-JConsole
|
||||||
|
Categories=Development;Profiling;Java;
|
||||||
|
Version=1.0
|
||||||
5
nss.cfg.in
Normal file
5
nss.cfg.in
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
name = NSS
|
||||||
|
nssLibraryDirectory = @NSS_LIBDIR@
|
||||||
|
nssDbMode = noDb
|
||||||
|
attributes = compatibility
|
||||||
|
handleStartupErrors = ignoreMultipleInitialisation
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
diff -r 5b86f66575b7 src/share/lib/security/java.security-linux
|
||||||
|
--- openjdk/src/java.base/share/conf/security/java.security Tue May 16 13:29:05 2017 -0700
|
||||||
|
+++ openjdk/src/java.base/share/conf/security/java.security Tue Jun 06 14:05:12 2017 +0200
|
||||||
|
@@ -83,6 +83,7 @@
|
||||||
|
#ifndef solaris
|
||||||
|
security.provider.tbd=SunPKCS11
|
||||||
|
#endif
|
||||||
|
+#security.provider.tbd=SunPKCS11 ${java.home}/lib/security/nss.cfg
|
||||||
|
|
||||||
|
#
|
||||||
|
# A list of preferred providers for specific algorithms. These providers will
|
||||||
BIN
tapsets-icedtea-3.15.0.tar.xz
Normal file
BIN
tapsets-icedtea-3.15.0.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user