Hi All,
I am struck up with a strange problem with the rpmbuild and rpm tools.
I have a particular source tree that has the whole configuration
scripts and the Makefiles inside. When I do a rpmbuild the rpm package
is built and no error is returned.
But when I try to install the package the cpio returns an error that
the Archive header is not right. Find below the commands and the
responses
Rpmbuild -bb Specfile - returns successful and writes both the
debug rpm and the binary rpm in the RPM/arch directory.
Rpm -Uhv rpmfile - returns error due to archive header problem
Preparing... ########################################### [100]
StoreVaultCLI ########################################### [100%]
error: unpacking of archive failed on file ./usr/bin/svmcli: cpio:
Archive file not in header
But when I try to extract the files from the rpm manually the
extraction works without any problem.
[root@lnx176-107 rpm]# rpm2cpio rpmfile | cpio -i
1783 blocks
[root@lnx176-107 rpm]# rpm2cpio rpmfile | cpio -t
../usr/bin/svmcli
../CLI-2.0.0/license.txt
../CLI-2.0.0/svmcli.8
1783 blocks
[root@lnx176-107 rpm]#
There is some problem that I am not able to solve here. Could you guys
help me out??
Thanks,
KK