Bug 1859090 - alternatives of javaws.x86_64 is not properly reset
Summary: alternatives of javaws.x86_64 is not properly reset
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: icedtea-web
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: jiri vanek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-21 09:07 UTC by Robin Lee
Modified: 2021-05-20 15:31 UTC (History)
4 users (show)

Fixed In Version: icedtea-web-2.0.0-pre.0.3.alpha13.patched1.fc32.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-30 18:55:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Robin Lee 2020-07-21 09:07:36 UTC
Description of problem:
After update from icedtea-web-1.8.2-3.fc31.x86_64 to icedtea-web-2.0.0-pre.0.3.alpha13.patched1.fc32.x86_64, /usr/bin/javaws became a broken link which finally pointing to /usr/bin/javaws.itweb, which is removed in the new package.

$ sudo alternatives --display javaws.x86_64
javaws.x86_64 - status is auto.
 link currently points to /usr/bin/javaws.itweb
/usr/bin/javaws.itweb - family java-1.8.0-openjdk.x86_64 priority 18000
 slave ControlPanel: /usr/bin/itweb-settings.itweb
 slave itweb-settings: /usr/bin/itweb-settings.itweb
 slave policyeditor: /usr/bin/policyeditor.itweb
 slave ControlPanel.1.gz: /usr/share/man/man1/itweb-settings.1.gz
 slave javaws.1.gz: /usr/share/man/man1/javaws.itweb.1.gz
/usr/libexec/icedtea-web/javaws - family %{preffered_java}.x86_64 priority 18000
 slave ControlPanel: /usr/libexec/icedtea-web/itweb-settings
 slave itweb-settings: /usr/libexec/icedtea-web/itweb-settings
 slave policyeditor: /usr/libexec/icedtea-web/policyeditor
 slave ControlPanel.1.gz: /usr/share/man/man1/itweb-settings.1.gz
 slave javaws.1.gz: /usr/share/man/man1/javaws.itweb.1.gz
Current `best' version is /usr/bin/javaws.itweb.

Version-Release number of selected component (if applicable):
icedtea-web-2.0.0-pre.0.3.alpha13.patched1.fc32.x86_64

How reproducible:
(Not retried)

Steps to Reproduce:
1. install icedtea-web-1.8.2-3.fc31.x86_64
2. update to icedtea-web-2.0.0-pre.0.3.alpha13.patched1.fc32.x86_64
3.

Actual results:
/usr/bin/javaws is broken.

Expected results:
/usr/bin/javaws finally points to /usr/libexec/icedtea-web/javaws

Additional info:

Comment 1 jiri vanek 2020-07-21 11:59:08 UTC
Crap. I would swear I had verified that. Will elaborate.

Comment 2 jiri vanek 2020-07-21 12:01:16 UTC
I guess it is not reprodcuible in fresh install?

Comment 3 jiri vanek 2020-07-21 12:24:39 UTC
Hmm. I have not reprodcued it.
During update, i correctly lost javaws.itweb and gained javaws.

Comment 4 jiri vanek 2020-07-21 13:13:14 UTC
Ok. found it. It looks like the alternatives were wrongly cleared for years. There is removal of javaws  instead of javaws/arch

Comment 5 jiri vanek 2020-07-21 14:09:21 UTC
And another issue is nexpanded %{preffered_java} macro. Thanx for the report!

Comment 6 jiri vanek 2020-07-21 15:51:09 UTC
and last is the new target path not updating correctly... Update shoudl be in updates soon.

Comment 7 Fedora Update System 2020-07-21 16:00:48 UTC
FEDORA-2020-809419f597 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-809419f597

Comment 8 Fedora Update System 2020-07-22 01:16:32 UTC
FEDORA-2020-809419f597 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-809419f597`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-809419f597

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2020-07-30 18:55:22 UTC
FEDORA-2020-809419f597 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Mark Schlegel 2021-05-20 15:31:16 UTC
 %{preffered_java} macro

It would be nice to spell that correctly.  Maybe the macro is correctly spelled "preferred" in the macro but the scriptlet is using "preffered"


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