Eliminate devel "failed to link ... exists and it is not a symlink" warning

- Eliminate devel "failed to link [/usr/lib/jvm/java-21-openjdk] exists and it is not a symlink" warning
- Related: RHEL-68848
This commit is contained in:
Thomas Fitzsimmons 2024-11-26 16:54:36 -05:00
parent 979772ebf9
commit 66ba625ecf

View File

@ -626,7 +626,6 @@ alternatives --install %{_bindir}/javac javac %{sdkbindir -- %{?1}}/javac %{prio
%{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1.gz
alternatives --install %{_jvmdir}/java-%{origin} java_sdk_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}} %{priority_for -- %{?1}}
alternatives --install %{_jvmdir}/java-%{javaver} java_sdk_%{javaver} %{_jvmdir}/%{sdkdir -- %{?1}} %{priority_for -- %{?1}}
alternatives --install %{_jvmdir}/java-%{javaver}-%{origin} java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}} %{priority_for -- %{?1}}
}
%define post_devel() %{expand:
@ -646,7 +645,6 @@ then
alternatives --remove javac %{sdkbindir -- %{?1}}/javac
alternatives --remove java_sdk_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}
alternatives --remove java_sdk_%{javaver} %{_jvmdir}/%{sdkdir -- %{?1}}
alternatives --remove java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}
fi
}
@ -2376,6 +2374,7 @@ done
- Remove full version from uniquejavadocdir
- Remove full version from uniquesuffix
- Fix classes.jsa and classes_nocoops.jsa file-listed-twice warnings
- Eliminate devel "failed to link [/usr/lib/jvm/java-21-openjdk] exists and it is not a symlink" warning
- Resolves: RHEL-71920
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1:21.0.5.0.11-2.1