Add bundled libffi.so to _privatelibs
- Remove libffi.so copying workaround now the portable build installs it in lib - Remove libffi.so copy if we are building on the same platform as the portable Related: RHEL-74302
This commit is contained in:
parent
0bc677ea26
commit
01776c626e
@ -364,10 +364,11 @@
|
|||||||
%global portablerelease 1
|
%global portablerelease 1
|
||||||
# Portable suffix differs between RHEL and CentOS
|
# Portable suffix differs between RHEL and CentOS
|
||||||
%if 0%{?centos} == 0
|
%if 0%{?centos} == 0
|
||||||
%global portablesuffix el8
|
%global portablerhel 8
|
||||||
%else
|
%else
|
||||||
%global portablesuffix el9
|
%global portablerhel 9
|
||||||
%endif
|
%endif
|
||||||
|
%global portablesuffix el%{portablerhel}
|
||||||
%global portablebuilddir /builddir/build/BUILD
|
%global portablebuilddir /builddir/build/BUILD
|
||||||
|
|
||||||
# Define milestone (EA for pre-releases, GA ("fcs") for releases)
|
# Define milestone (EA for pre-releases, GA ("fcs") for releases)
|
||||||
@ -413,7 +414,7 @@
|
|||||||
# fix for https://bugzilla.redhat.com/show_bug.cgi?id=1111349
|
# fix for https://bugzilla.redhat.com/show_bug.cgi?id=1111349
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1590796#c14
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1590796#c14
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1655938
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1655938
|
||||||
%global _privatelibs libattach[.]so.*|libawt_headless[.]so.*|libawt[.]so.*|libawt_xawt[.]so.*|libdt_socket[.]so.*|libfontmanager[.]so.*|libhprof[.]so.*|libinstrument[.]so.*|libj2gss[.]so.*|libj2pcsc[.]so.*|libj2pkcs11[.]so.*|libjaas_unix[.]so.*|libjava_crw_demo[.]so.*|libjdwp[.]so.*|libjli[.]so.*|libjsdt[.]so.*|libjsoundalsa[.]so.*|libjsound[.]so.*|liblcms[.]so.*|libmanagement[.]so.*|libmlib_image[.]so.*|libnet[.]so.*|libnio[.]so.*|libnpt[.]so.*|libsaproc[.]so.*|libsctp[.]so.*|libsplashscreen[.]so.*|libsunec[.]so.*|libsystemconf[.]so.*|libunpack[.]so.*|libzip[.]so.*|lib[.]so\\(SUNWprivate_.*%{jpeg_lib}
|
%global _privatelibs libattach[.]so.*|libawt_headless[.]so.*|libawt[.]so.*|libawt_xawt[.]so.*|libdt_socket[.]so.*|libffi[.]so.*|libfontmanager[.]so.*|libhprof[.]so.*|libinstrument[.]so.*|libj2gss[.]so.*|libj2pcsc[.]so.*|libj2pkcs11[.]so.*|libjaas_unix[.]so.*|libjava_crw_demo[.]so.*|libjdwp[.]so.*|libjli[.]so.*|libjsdt[.]so.*|libjsoundalsa[.]so.*|libjsound[.]so.*|liblcms[.]so.*|libmanagement[.]so.*|libmlib_image[.]so.*|libnet[.]so.*|libnio[.]so.*|libnpt[.]so.*|libsaproc[.]so.*|libsctp[.]so.*|libsplashscreen[.]so.*|libsunec[.]so.*|libsystemconf[.]so.*|libunpack[.]so.*|libzip[.]so.*|lib[.]so\\(SUNWprivate_.*%{jpeg_lib}
|
||||||
%global _publiclibs libjawt[.]so.*|libjava[.]so.*|libjvm[.]so.*|libverify[.]so.*|libjsig[.]so.*
|
%global _publiclibs libjawt[.]so.*|libjava[.]so.*|libjvm[.]so.*|libverify[.]so.*|libjsig[.]so.*
|
||||||
%if %is_system_jdk
|
%if %is_system_jdk
|
||||||
%global __provides_exclude ^(%{_privatelibs})$
|
%global __provides_exclude ^(%{_privatelibs})$
|
||||||
@ -932,8 +933,10 @@ exit 0
|
|||||||
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libawt_headless.so
|
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libawt_headless.so
|
||||||
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libdt_socket.so
|
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libdt_socket.so
|
||||||
%ifarch %{zero_arches}
|
%ifarch %{zero_arches}
|
||||||
|
%if 0%{?rhel} != %{portablerhel}
|
||||||
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libffi.so.*
|
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libffi.so.*
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libfontmanager.so
|
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libfontmanager.so
|
||||||
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libhprof.so
|
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libhprof.so
|
||||||
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libinstrument.so
|
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libinstrument.so
|
||||||
@ -1098,8 +1101,10 @@ exit 0
|
|||||||
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/%{archinstall}
|
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/%{archinstall}
|
||||||
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/%{archinstall}/jli
|
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/%{archinstall}/jli
|
||||||
%ifarch %{zero_arches}
|
%ifarch %{zero_arches}
|
||||||
|
%if 0%{?rhel} != %{portablerhel}
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/%{archinstall}/libffi.so.*
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/%{archinstall}/libffi.so.*
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/%{archinstall}/libjawt.so
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/%{archinstall}/libjawt.so
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/%{archinstall}/jli/libjli.so
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/%{archinstall}/jli/libjli.so
|
||||||
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/ct.sym
|
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/ct.sym
|
||||||
@ -2348,8 +2353,10 @@ for suffix in %{build_loop} ; do
|
|||||||
tar -xJf ${jdkzip}
|
tar -xJf ${jdkzip}
|
||||||
mv %{name}* ${installdir}
|
mv %{name}* ${installdir}
|
||||||
%ifarch %{zero_arches}
|
%ifarch %{zero_arches}
|
||||||
# FIXME: Workaround libffi only being in jre/lib not lib
|
# We do not need the local copy of libffi.so if we are building on the same platform as the portable
|
||||||
cp -av ${installdir}/jre/lib/%{archinstall}/libffi.* ${installdir}/lib/%{archinstall}
|
%if 0%{?rhel} == %{portablerhel}
|
||||||
|
rm -vf ${installdir}/{,jre/}lib/%{archinstall}/libffi.*
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
# Fix build paths in ELF files so it looks like we built them
|
# Fix build paths in ELF files so it looks like we built them
|
||||||
portablenvr="%{name}-portable-%{pversion}-%{prelease}.%{portablesuffix}.%{_arch}"
|
portablenvr="%{name}-portable-%{pversion}-%{prelease}.%{portablesuffix}.%{_arch}"
|
||||||
@ -2965,6 +2972,9 @@ cjc.mainProgram(args)
|
|||||||
- Switch to GA mode for final release
|
- Switch to GA mode for final release
|
||||||
- Revise JDK-8141590 backport to install libffi.so* in lib as well as jre/lib
|
- Revise JDK-8141590 backport to install libffi.so* in lib as well as jre/lib
|
||||||
- Sync the copy of the portable specfile with the latest update
|
- Sync the copy of the portable specfile with the latest update
|
||||||
|
- Remove libffi.so copying workaround now the portable build installs it in lib
|
||||||
|
- Add bundled libffi.so to _privatelibs
|
||||||
|
- Remove libffi.so copy if we are building on the same platform as the portable
|
||||||
- Resolves: RHEL-73554
|
- Resolves: RHEL-73554
|
||||||
- Related: RHEL-74302
|
- Related: RHEL-74302
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user