Creation of solaris package larger than 2GB fails

From: Thomas Kempkes (kempkes_at_gmx.de)
Date: 01/28/05


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


Relevant Pages

  • Creation of solaris package larger than 2GB fails
    ... Creation of package directory works really fine. ... which I have absolutely no ulimit set. ... archives bigger then 2GB without problems. ...
    (comp.unix.solaris)
  • Re: [SLE] 9.1 > 9.2 question
    ... locatable via a Google search or search on the SuSE mirrors. ... As it seems you have the info and now the 9.2 package ... Also check the archives at http://lists.suse.com ...
    (SuSE)
  • Re: Indexing a largish collection of mail and usenet messages?
    ... The lists are all active so archives typically add a few messages each day. ... I don't know lqtext, but Lucene seems to work in a similar way: a first program builds & updates an index, a second program allows to query the index. ... There are numerous ports to other languages are in the ports tree). ... Also, the messages in the archive never change and I know what files are new each day, so it would be pointless for a package to re-spider the whole archive to look for the new messages. ...
    (freebsd-questions)
  • Re: [SLE] tar.gz package unknown??
    ... It is probably a source tarball where one needs to manually ... README I should install the package with ./configure then make and as root ... in the prefix, you've chosen, are no KDE headers installed. ... Also check the archives at http://lists.suse.com ...
    (SuSE)
  • Re: Package Updater fails on dependency failure, but dependency is there
    ... Isn't there a way to search the archives on keyword? ... Dependency firefox=2.0.0.4 is needed by package Democracy". ... what the heck is package Democracy? ... It is a broken dependency in Fedora 7. ...
    (Fedora)