Subject: Re: pkg_add problem
To: Daniel Senderowicz <daniel@synchrods.synchrods.COM>
From: Simon Burge <simonb@netbsd.org>
List: port-pmax
Date: 11/21/1999 17:26:13
Daniel Senderowicz wrote:

> Simon,
> 
> >Daniel Senderowicz wrote:
> >
> >> [[ pkg_add teTeX-share-1.0.tgz failing ]]
> >> 
> >> bicho# pakg_add -v teTeX-share-1.0.tgz
> >> Requested space: 128503552 bytes, free space: 7705856000 bytes in /usr/tmp/instmp.03220a
> >
> >Do you really have 7.3GB free on /usr/tmp?  That seems ... large :-)
> 
> Yes. It's a 9.1GB disk. The tarball expands without any problems,
> so I doubt that it's related to its integrity. I was sort of
> following the process by looking at the tree
> /usr/tmp/instmp.xxxxx before it starts removing. The log file
> (can't remember the name) in /var/db/pkg grows accordingly too.

Ok, so far so good (wish I had a 9GB for the pkg building machine!)...

> >I'll try pkg_adding here and see what happens (on the machine that
> >built that package).
> 
> I'll appreciate that. Regards,

Hmm, if I link pkg_add statically, it works!  Otherwise it's failing
in the delete_plist() function.  As a quick work-around, you could do
(using csh directrory stacks) something like:

	cd /usr/pkgsrc/pkgtools/pkg_install
	make
	pushd work*/pkg_install/add
	cc -static -o pkg_add *.o ../lib/libinstall.a
	popd
	make install

and then try the pkg_add again...

I'll keep looking to see if I can find out what's happening.

Simon.