Subject: Problem with pkg_add not running tar
To: None <tech-pkg@netbsd.org>
From: Daniel Watt <dwatt@uiuc.edu>
List: tech-pkg
Date: 05/19/2005 16:25:15
I am relatively new to NetBSD, so maybe there is a trivial solution to 
this. I saw one post in another mailing list 
(http://mail-index.netbsd.org/port-sparc/2005/05/18/0016.html) with the 
same problem, though there is no resolution yet. I hope this is the 
correct mailing list to post to.

Recently pkg_add stopped working. When I turn on verbose output, I get 
the following:

ftp> get mysql-server-4.1.10a.tgz "| ( cd /var/tmp/instmp.18588b;  
--use-compress-program gzip -vvxp -f - | tee /dev/stderr )"
--use-compress-program: not found
ftp: local: | ( cd /var/tmp/instmp.18588b;  --use-compress-program gzip 
-vvxp -f - | tee /dev/stderr ): Broken pipe

If I am installing a package locally, I get:

pkg_add -v apache-2.0.53.tar
parsing: .
path: /tmp/.
increasing RLIMIT_NOFILE to max. 1772 open files
trying PKG_PATH /tmp/.
Requested space: 65699840 bytes, free space: 2428566528 bytes in 
/var/tmp/instmp.00500a
running:  --fast-read   -xpf /tmp/./apache-2.0.53.tar +CONTENTS
--fast-read: not found
pkg_add: extract of /tmp/./apache-2.0.53.tar failed
pkg_add: unable to extract table of contents file from 
`/tmp/./apache-2.0.53.tar' - not a package?
pkg_add: 1 package addition failed

It would appear that in both instances it should be running tar (tar 
--use-compress-program and tar --fast-read). However, tar isnt being 
called - a blank program name appears to be.

Is this something that can be fixed in a configuation file or 
enviornment variable?

Thanks for any help!

Daniel Watt
dwatt@uiuc.edu