Bug 475183

Summary: yum erase cause problem when solving dependencies
Product: Red Hat Enterprise Linux 5 Reporter: Jan Ščotka <jscotka>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.3CC: james.antill
Target Milestone: rc   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-12-08 15:01:58 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:
Attachments:
Description Flags
yum erase zip - log
none
yum install tomcat5 - log
none
package-cleanup --problem - log none

Description Jan Ščotka 2008-12-08 12:19:54 UTC
Created attachment 326119 [details]
yum erase zip - log

Description of problem:
Problems appeared on various system, not only ia64, but there it had problems when install software back. When uninstalling program "zip" many bugs in uninstalling process.
It causes, that tomcat5 cannot be installed back.
It seems to be /usr/bin/rebuild-gcj-db (java-1.4.2-gcj-compat) missing, because gcj is uninstalled before should be uninstalled.

Problems are in dependencies solving erase process. It isn't problem only tomcat5 application suite, but various java applications.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. yum install tomcat5
2. yum remove zip
3. yum install tomcat5
 
then try package-cleanup --problem commnad and you shlould se unsolved dependencies for tomcat5. Tomcat is already installed.

 
Actual results:
>> logs in attachment

on i386 (without problems with install back)
Running Transaction
  Erasing        : libgcj                                          [ 1/40] 
warning: /usr/lib/security/classpath.security saved as /usr/lib/security/classpath.security.rpmsave
  Erasing        : tomcat5-common-lib                              [ 2/40] 
/usr/bin/rebuild-gcj-db: line 6: /usr/bin/gcj-dbtool: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.

mkdir: missing operand


Expected results:
without problems when erasing packages

Additional info:

Comment 1 Jan Ščotka 2008-12-08 12:21:27 UTC
Created attachment 326120 [details]
yum install tomcat5 - log

Comment 2 Jan Ščotka 2008-12-08 12:22:24 UTC
Created attachment 326121 [details]
package-cleanup --problem - log

Comment 3 James Antill 2008-12-08 14:30:48 UTC
So this bug is about the ordering of the erase transaction, yes?

What is getting erased, and what needs to be erased for dependencies ... is correct?

Reassigning to rpm, if I've screwed up what the problem is ... please assign back.

Comment 4 Jan Ščotka 2008-12-08 14:43:45 UTC
Yes, I thing, problem is, that yum do not resolve dependencies in right way.
java-1.4.2-gcj-compat should be erased at the end, not before uninstalling tomcat or other java libraries.

Comment 5 Panu Matilainen 2008-12-08 15:01:58 UTC

*** This bug has been marked as a duplicate of bug 448153 ***

Comment 6 James Antill 2008-12-08 15:18:02 UTC
 The packages looks right, it has:

Requires(post):         java-gcj-compat >= 1.0.31
Requires(postun):       java-gcj-compat >= 1.0.31

...which is provided by java-1.4.2-gcj-compat-1.4.2.0-40jpp.115, which provides /usr/bin/rebuild-gcj-db.