Simon Lacroix wrote: > Hello, > > Has anyone sucessfully built the 3.6.3 version under RHE3.0 ? I > downloaded the 3.6.3 tarball from sourceforge and it builds for a little > while but dies with the following error after the make file download the > following file > > rpm-4.2-1.src.rpm > > Error message looks like : > > [-e /root/si/sytemimager-3.6.3/src/rpm-4.2.tar.gz ] || \ > ( cd /root/si/systemimager-3.6.3/src && > /root/si/systemimager-3.6.3/tools/rpm2cpio rpm-4.2-1.src.rpm | cpio > --verbose --extract rpm-4.2.tar.gz ) > > Error: header not recognized > cpio : premature end of archive > make: *** [/root/si/systemimager-3.6.3/src/rpm-4.2.tar.gz] Error 1 > > Any thoughts ? > > Thanks for your help ! > > Simon >
What happens if you try to run the following command? # /root/si/systemimager-3.6.3/tools/rpm2cpio rpm-4.2-1.src.rpm > rpm.cpio Are you able to exctract a valid cpio archive? You can check it with: # cpio -td < rpm.cpio If you can't get a valid cpio file the problem is into the perl implementation of rpm2cpio, so first check if in your system the command rpm2cpio is installed and then apply the attached patch. Best regards, -Andrea
Index: make.d/popt.rul =================================================================== --- make.d/popt.rul (revision 3447) +++ make.d/popt.rul (working copy) @@ -57,7 +57,7 @@ # extract the rpm source tarball (which includes the popt source) from the SRPM. $(SRC_DIR)/$(RPM_TARBALL): $(SRC_DIR)/$(RPM_SRPM) [ -e $(SRC_DIR)/$(RPM_TARBALL) ] || \ - ( cd $(SRC_DIR) && $(TOPDIR)/tools/rpm2cpio $(RPM_SRPM) | cpio --verbose --extract $(RPM_TARBALL) ) + ( cd $(SRC_DIR) && rpm2cpio $(RPM_SRPM) | cpio --verbose --extract $(RPM_TARBALL) ) PHONY += popt_clean popt_clean:
