RE: Large file Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here is the solution to this problem. RPM creates a cpio archive which
is then incorporated into the package. RPM was using /var/tmp (swap on a
sol2.6 box) as its work area. There was insufficient space to create the
archive and rpm is not intelligent enough to know that the cpio archive
was corrupt. Hence when it attempted to install the package, it threw
the error due to the corrupt cpio archive.

The solution was to create a directory on a disk with a large amount of
free space and point rpm to that directory for its work space using the
.rpmmacros file with the entry "%_tmppath /v_store2/tmp".

Thanks to all who responded.

Bob

Hello All,

We are having a packaging problem in that one of the files in the
package is causing an error.  When we do either a test install or an
actual, we get a cpio err.  Here is the background:

1.  ls of file: -r--r--r--   1 CedrsCCAdmCedrs    13086462 Oct  5 09:06
load.sar

2.  Here is an excerpt from the test install instruction:
arch = sparc64
prod = loadclient
ver  = 6.2
rel  = 25.2
root = ngload
destdir = redars_data
home = /home/ccase/trash/rpm-test
cmhome = /view/cm_scripts/Nextgen/loadclient/admin/pkg/LoadClient
rpmdb = /home/ccase/rpmdb

 rpm -ivh RPMS/${arch}/${prod}-${ver}-${rel}.${arch}.rpm --dbpath
${rpmdb} --relocate /${root}= ${home}/${root} --relocate
/${destdir}=${home}/${destdir} --badreloc

3.  Result:
make test:

rpm -ivh RPMS/sparc64/loadclient-6.2.27-3.sparc64.rpm --dbpath
/home/ccase/rpmdb --relocate  /ngload=/home/ccase/trash/rpm-test/ngload
--relocate /redars_data=/home/ccase/trash/rpm-test/redar
s_data --badreloc
failed to stat /Redars/cm_ng: No such file or directory Pre-Install
Executing... loadclient
##################################################unpacking of archive 
failed on file /home/ccase/trash/rpm-test/ngload/_phoenix/apps/load.sar:
cpio: read

*** Error code 1
make: Error: Build script failed for "test-install"	

In the past, reducing the size of the file seemed to get rid of the
error. However, that is not an immediate option.  Has anyone come across
this problem?  If so, how did you fix it?

Thanks

--------
Robert L. Fulwiler
CEDRS SCM
robert.l.fulwiler@xxxxxxxxxx http://dumbo2.redars.ca.boeing.com/CM
(206.655.8400)



_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux