Subject: Re: Unable to pkg_add install directly via internet
To: None <netbsd-help@netbsd.org>
From: Shigeki Uno <shigeki@mediawars.ne.jp>
List: netbsd-help
Date: 06/01/2000 02:48:38
Shigeki Uno <shigeki@mediawars.ne.jp> writes:

[...]
> e.g.
> 
> # pkg_add -v ftp://ftp.netbsd.org/pub/NetBSD/packages/1.4.2/mac68k/All/
>   boehm-gc-5.0a3.tgz
> 
>   Trying to fetch ftp://ftp.netbsd.org/pub/NetBSD/packages/1.4.2/mac68k/
>   All/boehm-gc-5.0a3.tgz.
> 
>   Spawning FTP coprocess
> 
>   ftp -detv ftp://ftp.netbsd.org/pub/NetBSD/packages/1.4.2/mac68k/All/
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   _never proceed after this line appears_.

I've just upgraded pkg_install-20000202.tar.gz to pkg_install-20000511.
tar.gz, and installing packages using pkg_add via internet directly works
fine. 

<e.g.>
# pkg_add -v ftp://ftp.jp.netbsd.org/pub/NetBSD/packages/1.4.2/m68k/All/nkf-1.7.tgz
Trying to fetch ftp://ftp.jp.netbsd.org/pub/NetBSD/packages/1.4.2/m68k/All/nkf-1.7.tgz.
Spawning FTP coprocess
ftp -detv ftp://ftp.jp.netbsd.org/pub/NetBSD/packages/1.4.2/m68k/All/

ftp> prompt off

ftp> ls nkf-1.7.tgz /tmp/pkg.01133b

ftp> cd .
best match: 'ftp://ftp.jp.netbsd.org/pub/NetBSD/packages/1.4.2/m68k/All/nkf-1.7.tgz'
setenv PKG_PATH='ftp://ftp.jp.netbsd.org/pub/NetBSD/packages/1.4.2/m68k/All'
Reusing FDs 4/5 for communication to FTP coprocess
unpackURL 'ftp://ftp.jp.netbsd.org/pub/NetBSD/packages/1.4.2/m68k/All/nkf-1.7.tgz' to '/var/tmp/instmp.01133a'

ftp> get nkf-1.7.tgz "| ( cd /var/tmp/instmp.01133a ; gunzip 2>/dev/null | tar -vvx -f - )"
extract: Package name is nkf-1.7
extract: CWD to /usr/pkg
extract: /usr/pkg/bin/nkf
extract: /usr/pkg/man/man1/nkf.1
extract: CWD to .
Running mtree for nkf-1.7.
mtree -U -f +MTREE_DIRS -d -e -p /usr/pkg
Attempting to record package into /var/db/pkg/nkf-1.7.
Package nkf-1.7 registered in /var/db/pkg/nkf-1.7

ftp> close
# 
  
Pkg_add command process wasn't like the above before. I'm confusing.
But, anyway, installing packages using pkg_add command have just come to
work fine now.  ;-)

I appreciate your help.
Thanks. 

---
Shigeki Uno