Subject: Re: pkgsrc question
To: Mike Parson <mparson@bl.org>
From: Alistair Crooks <agc@pkgsrc.org>
List: netbsd-users
Date: 10/22/2001 19:57:55
Mike,

Offhand, a guess would be that your awk output looks unusual to
me, or maybe perhaps it's something that the shell has passed down.

To help us narrow it down a bit, try doing exactly the same as
before, only this time add a PKG_DEBUG_LEVEL=2 to the invocation
of "make update", and see what the output gives. However, be aware
that there'll be a lot of output.

You should also check for any definitions of AWK or SH in /etc/mk.conf
or your environment.

Regards,
Alistair

On Mon, Oct 22, 2001 at 11:34:20AM -0500, Mike Parson wrote:
> I've got a NetBSD 1.4.2/i386 box that I colocate at an ISP.
> 
> I periodically update pkgsrc with sup and use lintpkgsrc to check the installed
> pkgs for updates.
> 
> A few days ago, I developed a problem where none of the pkgs would finish installing:
> 
> -- start -- 
> /usr/pkgsrc/sysutils # make update
> ===> Resuming update for lsof-4.58
> ===> Installing for lsof-4.58
> install -c -s -o root -g wheel -m 2755 -g kmem  /usr/pkgsrc/sysutils/lsof/work/lsof_4.58/lsof /usr/local/sbin
> install -c -o root -g wheel -m 444 /usr/pkgsrc/sysutils/lsof/work/lsof_4.58/lsof.man /usr/local/man/man1/lsof.1
> install -c -o root -g wheel -m 555 /usr/pkgsrc/sysutils/lsof/work/lsof_4.58/scripts/* /usr/local/share/lsof
> `/usr/pkgsrc/sysutils/lsof/work/.PLIST' is up to date.
> ===> Registering installation for lsof-4.58
> awk: cmd. line:1: /#.*/ { next } NF > 0 { cmd = sprintf(\"PKG_DBDIR=/var/db/pkg /usr/sbin/pkg_info -e \\"%s\\"\", $1); system(cmd) }
> awk: cmd. line:1:                                       ^ backslash not last character on line
> *** Error code 2
> 
> Stop.
> *** Error code 1
> 
> Stop.
> *** Error code 1
> 
> Stop.
> *** Error code 1
> 
> Stop.
> *** Error code 1
> 
> Stop.
> -- end --
> 
> Any clues on which file I need to fix to get pkgsrc working properly again?
> 
> -- 
> Michael Parson
> mparson@bl.org