Bug 2210425

Summary: java-17-openjdk-headless appears to have created /etc/alternatives/alt-java.1.gz (broken symlink)
Product: [Fedora] Fedora Reporter: John Dodson <jwadodson>
Component: java-17-openjdk-portableAssignee: jiri vanek <jvanek>
Status: CLOSED EOL QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: ahughes, jandrlik, jerboaa, jvanek, pmikova, zzambers
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-22 11:12:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Dodson 2023-05-27 12:56:07 UTC
java-17-openjdk-headless appears to have created /etc/alternatives/alt-java.1.gz (broken symlink)

Broken symlinks are not appropriate

Reproducible: Always

Steps to Reproduce:
1.file /etc/alternatives/alt-java.1.gz
/etc/alternatives/alt-java.1.gz: broken symbolic link to /usr/share/man/man1/alt-java-java-17-openjdk-17.0.7.0.7-5.fc37.x86_64.1.gz
2.
3.
Actual Results:  
file /etc/alternatives/alt-java.1.gz
/etc/alternatives/alt-java.1.gz: broken symbolic link to /usr/share/man/man1/alt-java-java-17-openjdk-17.0.7.0.7-5.fc37.x86_64.1.gz

Expected Results:  
An unbroken symlink or a package that appropriately creates such links along with the target

Symlinks need to be appropriately managed by the package that requires them & should never be broken.

Comment 1 John Dodson 2023-05-27 12:57:01 UTC
Appear not to be able to select java-17-openjdk-headless as a component

Comment 2 John Dodson 2023-05-28 03:04:48 UTC
Note also that, this is broken...
lrwxrwxrwx. 1 root root 31 Dec 26 10:37 /usr/share/man/man1/alt-java.1.gz -> /etc/alternatives/alt-java.1.gz

Obviously related in that the creation script is likely using an incorrect target.

Comment 3 John Dodson 2023-08-13 14:18:55 UTC
still broken in FC38 & recent install of,

2023-08-13T01:00:38+1000 SUBDEBUG Upgraded: java-11-openjdk-headless-1:11.0.19.0.7-1.fc38.x86_64

Comment 4 John Dodson 2023-08-13 14:24:16 UTC
Now (FC38)
broken as,

/etc/alternatives/alt-java.1.gz -> /usr/share/man/man1/alt-java-java-17-openjdk-17.0.8.0.7-1.fc38.x86_64.1.gz

Comment 5 Aoife Moloney 2024-05-22 11:12:46 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.