Bug 30927 - java-17-openjdk has invalid requires on /usr/sbin/alternatives
Summary: java-17-openjdk has invalid requires on /usr/sbin/alternatives
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: release_blocker normal
Target Milestone: ---
Assignee: Java Stack Maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
: 30958 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-10-02 18:07 CEST by Martin Whitaker
Modified: 2022-10-23 19:45 CEST (History)
2 users (show)

See Also:
Source RPM: java-17-openjdk
CVE:
Status comment:


Attachments
install report plasma only desktop (206.06 KB, application/x-xz)
2022-10-21 01:57 CEST, Ben McMonagle
Details

Description Martin Whitaker 2022-10-02 18:07:53 CEST
This has previously been fixed for the other Java versions, although not in a consistent way :-)

% grep -r "global alternatives_requires"
java-11-openjdk/current/SPECS/java-11-openjdk.spec:%global alternatives_requires alternatives
java-11-openjdk/current/SPECS/java-11-openjdk.spec:%global alternatives_requires %{_sbindir}/update-alternatives
java-latest-openjdk/current/SPECS/java-latest-openjdk.spec:%global alternatives_requires /usr/sbin/alternatives
java-latest-openjdk/current/SPECS/java-latest-openjdk.spec:%global alternatives_requires alternatives
java-1.8.0-openjdk/current/SPECS/java-1.8.0-openjdk.spec:%global alternatives_requires /usr/sbin/alternatives
java-1.8.0-openjdk/current/SPECS/java-1.8.0-openjdk.spec:%global alternatives_requires update-alternatives
java-17-openjdk/current/SPECS/java-17-openjdk.spec:%global alternatives_requires /usr/sbin/alternatives
java-17-openjdk/current/SPECS/java-17-openjdk.spec:%global alternatives_requires %{_sbindir}/alternatives

(it's the second line in each .spec file that's actually used in our packages).

The chkconfig package provides all the options except "/usr/sbin/alternatives":

% urpmq --provides chkconfig
/sbin/chkconfig
/sbin/update-alternatives
/usr/sbin/chkconfig
/usr/sbin/update-alternatives
alternatives[== 1.19-2.mga9]
chkconfig[== 1.19-2.mga9]
chkconfig(x86-64)[== 1.19-2.mga9]
update-alternatives[== 1.18.1-1]
Comment 1 Lewis Smith 2022-10-03 21:39:28 CEST
Thank you for the very helpful report.
Assigning to the Java maintainers.

Assignee: bugsquad => java
Source RPM: (none) => java-17-openjdk

Comment 2 Martin Whitaker 2022-10-05 09:51:12 CEST
Marking as a release blocker, as we know from bug 29624 that this can cause the installer to fail.

Priority: Normal => release_blocker

Comment 3 Martin Whitaker 2022-10-12 09:29:11 CEST
*** Bug 30958 has been marked as a duplicate of this bug. ***

CC: (none) => westel

Comment 4 Nicolas Lécureuil 2022-10-19 16:24:35 CEST
Please tell if new java 17 fixes this for you.

CC: (none) => mageia

Comment 5 Ben McMonagle 2022-10-21 01:56:38 CEST
libre-office installed in a new netinstall of Plasma install.
Comment 6 Ben McMonagle 2022-10-21 01:57:25 CEST
Created attachment 13430 [details]
install report plasma only desktop
Comment 7 Martin Whitaker 2022-10-23 19:45:37 CEST
Fix confirmed. Thanks Nicolas.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.