15.4 Install/Remove java-11-openjdk-javadoc leaves dangling symlinks??
All, Is this a bug that needs reporting? On 15.4 I installed (zypper in) and removed (zypper rm) java-11-openjdk-javadoc. After removal dangling links were left at: # l /etc/alternatives/javadocdir lrwxrwxrwx 1 root root 38 Jul 2 19:23 /etc/alternatives/javadocdir -> /usr/share/javadoc/java-11-openjdk/api and # l /usr/share/javadoc/java lrwxrwxrwx 1 root root 28 Jul 2 19:23 /usr/share/javadoc/java -> /etc/alternatives/javadocdir Is it a bug? I certainly think the links should have been unlinked on package removal. -- David C. Rankin, J.D.,P.E.
On 03.07.2022 03:38, David C. Rankin wrote:
All,
Is this a bug that needs reporting? On 15.4 I installed (zypper in) and removed (zypper rm) java-11-openjdk-javadoc. After removal dangling links were left at:
# l /etc/alternatives/javadocdir lrwxrwxrwx 1 root root 38 Jul 2 19:23 /etc/alternatives/javadocdir -> /usr/share/javadoc/java-11-openjdk/api
and
# l /usr/share/javadoc/java lrwxrwxrwx 1 root root 28 Jul 2 19:23 /usr/share/javadoc/java -> /etc/alternatives/javadocdir
%postun script checks for existence of directory previously removed during uninstallation of this package and so skips removing alternatives. This should be moved to %preun.
Is it a bug? I certainly think the links should have been unlinked on package removal.
Yes, it is a bug.
participants (2)
-
Andrei Borzenkov
-
David C. Rankin