Add a compatibility symlink from bin/jcmd to jre/bin/jcmd

Related: RHEL-13607
This commit is contained in:
Andrew Hughes 2023-10-16 16:08:26 +01:00
parent d95cfc8fd6
commit 7594974606

View File

@ -343,7 +343,7 @@
%global updatever %(VERSION=%{whole_update}; echo ${VERSION##*u}) %global updatever %(VERSION=%{whole_update}; echo ${VERSION##*u})
# eg jdk8u60-b27 -> b27 # eg jdk8u60-b27 -> b27
%global buildver %(VERSION=%{version_tag}; echo ${VERSION##*-}) %global buildver %(VERSION=%{version_tag}; echo ${VERSION##*-})
%global rpmrelease 2 %global rpmrelease 3
# Settings used by the portable build # Settings used by the portable build
%global portablerelease 1 %global portablerelease 1
%global portablesuffix el8 %global portablesuffix el8
@ -998,6 +998,7 @@ exit 0
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javah %{_jvmdir}/%{sdkdir -- %{?1}}/bin/javah
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javap %{_jvmdir}/%{sdkdir -- %{?1}}/bin/javap
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/java-rmi.cgi %{_jvmdir}/%{sdkdir -- %{?1}}/bin/java-rmi.cgi
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jcmd
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jconsole %{_jvmdir}/%{sdkdir -- %{?1}}/bin/jconsole
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdb %{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdb
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeps %{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeps
@ -1992,6 +1993,7 @@ function customisejdk() {
# Move jcmd into the jre image (RHEL-12344) # Move jcmd into the jre image (RHEL-12344)
mv ${imagepath}/bin/jcmd ${imagepath}/jre/bin mv ${imagepath}/bin/jcmd ${imagepath}/jre/bin
ln -sv ../jre/bin/jcmd ${imagepath}/bin
fi fi
} }
@ -2639,7 +2641,11 @@ cjc.mainProgram(args)
%endif %endif
%changelog %changelog
* Tue Oct 10 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.392.b08-1 * Mon Oct 16 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.392.b08-3
- Add a compatibility symlink from bin/jcmd to jre/bin/jcmd
- Related: RHEL-13607
* Tue Oct 10 2023 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.392.b08-2
- Update to shenandoah-jdk8u392-b08 (GA) - Update to shenandoah-jdk8u392-b08 (GA)
- Sync the copy of the portable specfile with the latest update - Sync the copy of the portable specfile with the latest update
- Update generate_tarball.sh to be closer to upstream vanilla script inc. no more ECC removal - Update generate_tarball.sh to be closer to upstream vanilla script inc. no more ECC removal