Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 3 product line. The current stable release is 3.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 129875

Summary: bad packages reorder during errase
Product: Red Hat Enterprise Linux 3 Reporter: Alex Lyashkov <shadow>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED DEFERRED QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: nobody+pnasrat
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-13 17:54:28 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
uninstall packages list.
none
install packages list for step 2. none

Description Alex Lyashkov 2004-08-13 17:21:16 UTC
Description of problem:
errors at reorder packages during uninstall.

Version-Release number of selected component (if applicable):
# rpm -qa rpm
rpm-4.2.2-0.14

How reproducible:
always

Steps to Reproduce:
1. install setup + filesystem rpm to dir (rpm -i --root /dir1 ...)
2. install large packages set to same dir (rpm -i --root /dir1 `cat
fileset`)
3. uninstall large packages set from this dir. (rpm -e --root /dir1
`cat fileset`)
  
Actual results:
/sbin/install-info: error while loading shared libraries: libz.so.1:
cannot open shared object file: No such file or directory
оÑибка: %preun(sed-4.0.7-3) оÑибка вÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÑÑенаÑиÑ, код возвÑаÑа 127
/var/tmp/rpm-tmp.28347: line 3: /usr/sbin/userdel: No such file or
directory
/var/tmp/rpm-tmp.28347: line 4: /usr/sbin/groupdel: No such file or
directory
/sbin/install-info: error while loading shared libraries: libz.so.1:
cannot open shared object file: No such file or directory
оÑибка: %preun(krb5-workstation-1.2.7-19) оÑибка вÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÑÑенаÑиÑ,
код возвÑаÑа 127
/bin/sh: error while loading shared libraries: libtermcap.so.2: cannot
open shared object file: No such file or directory

Expected results:
works ok.

Additional info:

Comment 1 Alex Lyashkov 2004-08-13 17:23:55 UTC
Created attachment 102707 [details]
uninstall packages list.

list packages name for uninstall at step 3.

Comment 2 Alex Lyashkov 2004-08-13 17:33:28 UTC
Created attachment 102708 [details]
install packages list for step 2.

Comment 3 Jeff Johnson 2004-08-13 17:54:28 UTC
From the CLI, rpm orders erasures by reversing the partial order
of the install. That is not an unreasonable choice, nor is it
clear that there is a better algorithm.

There has never been any attempt to insure that massive
erasures "work" correctly. Defferred until somewhen ...

Comment 4 Alex Lyashkov 2004-08-13 18:22:01 UTC
How i see rpm not add any reference from programs called from scripts
to packages who have it. Without it reference me have bad order to errase.