rebuilding the comps and rpmdb-redhat source rpms

From: Kerry Cox (kerry.cox_at_ksl.com)
Date: 05/19/04


Date: 19 May 2004 10:00:50 -0700

Okay, I have a test rhel as3 box on which I am attempting to rebuild
the latest source rpms. I've read through all the rhel-rebuild lists
and am still having trouble rebuilding these last two files that I
downloaded as source rpms from the red hat site.
These are:
  comps-3AS-0.20040505.src.rpm
  rpmdb-redhat-3-0.20040505.src.rpm.
The I have set up my /root/.rpmmacros file to point to the following:
  %debug_package %{nil}
  %basedir /usr/share/comps/i386
This is where the comps.xml file is located. It builds nicer now up
until a certain point. At which time it fails again when it attempts
to find a .diskinfo file.

+ install -m 644 /usr/share/comps/i386/../../.discinfo
/var/tmp/comps-i386-root/usr/share/comps/i386/
install: cannot stat `/usr/share/comps/i386/../../.discinfo': No such
file or directory
error: Bad exit status from /var/tmp/rpm-tmp.33510 (%install)
 
 
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.33510 (%install)

So I created a ./diskinfo file in /usr/share. Still no joy.
Any suggestions on the proper procedure for rebuilding these two
files?
Here is how I normally rebuild source rpms:

  # rpmbuild --target i386 --without debug --sign --rebuild
comps-3AS-0.20040505.src.rpm

Thanks.
KJ