Bug 669716 - update-alternatives corrupt
Summary: update-alternatives corrupt
Status: RESOLVED FIXED
: 650354 666463 (view as bug list)
Alias: None
Product: openSUSE 11.3
Classification: openSUSE
Component: Java (show other bugs)
Version: Final
Hardware: Other Other
: P1 - Urgent : Normal (vote)
Target Milestone: ---
Deadline: 2011-02-23
Assignee: Michal Vyskocil
QA Contact: E-mail List
URL:
Whiteboard: maint:running:38718:important
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-04 22:36 UTC by Marcus Meissner
Modified: 2011-02-21 08:44 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
varlibrpmalternatives-java file (2.52 KB, text/plain)
2011-02-04 22:36 UTC, Marcus Meissner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Meissner 2011-02-04 22:36:14 UTC
during installing the java-1_6_0-openjdk update I get:

Installation von: java-1_6_0-openjdk-1.6.0.0_b20.1.9.5-1.2.1 [fertig]
Zusätzliche rpm-Ausgabe:
update-alternatives: internal error: /var/lib/rpm/alternatives/java corrupt: priority /usr/lib64/jvm/jre-1.6.0-sun /usr/share/man/man1/policytool-java-1_6_0-sun.1.gz
Comment 1 Marcus Meissner 2011-02-04 22:36:53 UTC
Created attachment 412389 [details]
varlibrpmalternatives-java file
Comment 2 Michal Vyskocil 2011-02-14 13:03:07 UTC
Seems like my fix for bnc#648260 left alternatives file broken in some scenarios. The problem is the number of slaves and slave links in file does not match, so some lines are wrongly recognized.
Comment 3 Michal Vyskocil 2011-02-14 15:07:38 UTC
The problem is there are 4 empty lines behind /usr/lib/jvm/jre-1.6.0-sun/bin/java - the pack/unpack removal code should run after update-alternatives --install, not before.

I prepared a fix in home:mvyskocil:branches:OBS_Maintained:update-alternatives - maintenance, can I get a SWAMPID for 11.2 and 11.3? Thanks.
Comment 4 Marcus Meissner 2011-02-14 16:52:22 UTC
critical enough.  will it unbreak existing breakage too?  +1
Comment 5 Michal Vyskocil 2011-02-15 09:08:51 UTC
Yes, it will fix the broken /var/lib/rpm/alternatives/java - and on next openjdk maintenance update I'll add the workaround call to %post for sure.
Comment 6 Michal Vyskocil 2011-02-15 09:09:48 UTC
*** Bug 650354 has been marked as a duplicate of this bug. ***
Comment 7 Michal Vyskocil 2011-02-15 09:10:31 UTC
*** Bug 666463 has been marked as a duplicate of this bug. ***
Comment 9 Michal Vyskocil 2011-02-16 09:23:48 UTC
Maintenance - ping!

The openjdk update was released yesterday - bnc#671714, so this update should be released first!
Comment 10 Swamp Workflow Management 2011-02-16 09:26:20 UTC
The SWAMPID for this issue is 38717.
This issue was rated as critical.
Please submit fixed packages until 2011-02-18.
Also create a patchinfo file using this link:
https://swamp.suse.de/webswamp/wf/38717
Comment 11 Marcus Meissner 2011-02-16 09:26:53 UTC
please go ahead
Comment 12 Swamp Workflow Management 2011-02-16 09:35:40 UTC
The SWAMPID for this issue is 38718.
This issue was rated as important.
Please submit fixed packages until 2011-02-23.
When done, please reassign the bug to security-team@suse.de.
Patchinfo will be handled by security team.
Comment 13 Michal Vyskocil 2011-02-17 08:31:43 UTC
Marcus, which one from those SWAMPIDs should be used?
Comment 14 Marcus Meissner 2011-02-17 09:01:58 UTC
https://swamp.suse.de/webswamp/wf/38717
Comment 15 Michal Vyskocil 2011-02-17 15:19:30 UTC
11.2: 61613, 11.3: 61613 and factory 61618

patchinfo already submitted
Comment 16 Swamp Workflow Management 2011-02-21 08:43:48 UTC
Update released for: update-alternatives
Products:
openSUSE 11.2 (i586)
openSUSE 11.3 (i586)