Bug 134622

Summary: Anaconda buildinstall fails to include librpm-4.2.so
Product: Red Hat Enterprise Linux 3 Reporter: Roland Pope <rpope>
Component: anaconda-productAssignee: Jeremy Katz <katzj>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0   
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-10-05 14:43:09 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:

Description Roland Pope 2004-10-05 03:53:28 UTC
Description of problem:
I have been regularly rebuilding my install CD's to include a few 
extra RPMS. Since the last update, I have been unable to get a 
workable install, as the install CD always fails with a missing 
library "librpm-4.2.so". This appears to be a problem in anaconda's 
buildinstall script as I can see the following error when running it:
<snip>
Creating debug dir
Patching python library...
Removing unused python files in hdimage... Traceback (most recent 
call last):
   File "/usr/bin/anaconda", line 344, in ?
     from exception import handleException
   File "/usr/lib/anaconda/exception.py", line 24, in ?
     import rpm
 ImportError: librpm-4.2.so: cannot open shared object file: No such 
file or
 directory
 done.
</snip>
When I look in the temporary '/tmp/treedir.????/instimage/usr/lib' 
directory that buildinstall creates, I can see that indeed, no librpm-
4.2.so is there?? The library is definitely on my machine when I do 
the build, and the 'upd-instroot' specifies to include the librpm 
library.
The problem appears to be caused by the fact that 'rpm-libs' is not 
specified in the PACKAGES and PACKAGESGR lists inside the 'upd-
instroot' script. When I added the 'rpm-libs' package to both these 
lists, the problem went away. Perhaps this is because the rpmlibs are 
now in their own RPM package and upd-instroot hasn't been changed to 
reflect this?



How reproducible: Every time

Steps to Reproduce:
1. run anaconda's buildinstall and observe the 'missing librpm-
4.2.so' error
2.
3.

Comment 1 Jeremy Katz 2004-10-05 14:43:09 UTC
rpm-libs is in PACKAGES/PACKAGESGR in anaconda packages that were
released concurrent with the rpm update.