Creation of solaris package larger than 2GB fails
From: Thomas Kempkes (kempkes_at_gmx.de)
Date: 01/28/05
- Next message: Thomas Tornblom: "Re: cdrom not responding on ultra60"
- Previous message: terry433iid_at_yahoo.com: "cdrom not responding on ultra60"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 Jan 2005 12:47:15 +0100
Hi,
one of our customers doesn't want our software as a tar.gz archive, but
want us to give him a solaris package of our software. This is not too
hard and I wrote a script which converts our tar.gz archive into a pkg
file, which looks something like this in the basics:
gzcat ${SOURCE_TGZ} | tar xv
find . -depth ! -name prototype.find -print ! -name ${SOURCE_TGZ} |
kgproto | awk '{ print $1, $2, $3, $4, "bin bin" }' > prototype.find
echo "i pkginfo=./pkginfo" > prototype
cat prototype.find >> prototype
rm prototype.find
Here I have a fine prototype file in the current directory!
echo "PKG=\"${PACKAGE_NAME}\"" > pkginfo
echo "NAME=\"Test Package\"" >> pkginfo
echo "ARCH=\"sparc\"" >> pkginfo
echo "VERSION=\"1.00\"" >> pkginfo
echo "CATEGORY=\"application\"" >> pkginfo
echo "VENDOR=\"XXXYYY\"" >> pkginfo
echo "EMAIL=\"info@XXXYYY.de\"" >> pkginfo
echo "PSTAMP=\"Package Building System\"" >> pkginfo
echo "BASEDIR=\"/opt/XXXYYY\"" >> pkginfo
echo "CLASSES=\"none\"" >> pkginfo
echo "ULIMIT=\"-f 33554432\"" >> pkginfo
With this I create my pkginfo file. I added the ULIMIT-line
lately, but it does not change things.
ACTUAL_DIR=`pwd`
pkgmk -l 33554432 -d ${ACTUAL_DIR} -r ${ACTUAL_DIR}
Creation of package directory works really fine. The source tar.gz
archive is ca. 650 MB and the package directory about 4.5GB.
pkgtrans ${ACTUAL_DIR} ${ACTUAL_DIR}/${DESTINATION_PKG} ${PACKAGE_NAME}
The pkgtrans command works fine for resulting package files smaller
than 2GB. As shells I tried /bin/bash, /bin/sh and /sbin/sh in all of
which I have absolutely no ulimit set. But still creation fails with
the message
Transferring <AIXdeka> package instance
cpio: ulimit reached for output file.
1 errors
pkgtrans: ERROR: unable to complete package transfer
- process <find pkginfo pkgmap reloc -print | /usr/bin/cpio -ocD -C 12> failed, exit code 1
When I call /usr/bin/cpio by hand with the above parameters I can create
archives bigger then 2GB without problems.
Can anyone give me an hint where the problem may be? Can pkg-files only
be smaller than 2GB?
`uname -a` gives
SunOS XXXXXX 5.8 Generic_108528-06 sun4u sparc SUNW,UltraAX-i2
BYe Thomas
-- Military secrets are the most fleeting of all. -- Spock, "The Enterprise Incident", stardate 5027.4
- Next message: Thomas Tornblom: "Re: cdrom not responding on ultra60"
- Previous message: terry433iid_at_yahoo.com: "cdrom not responding on ultra60"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|