Subject: Re: Strange 1.6.2 problem
To: John Klos <john@ziaspace.com>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 02/27/2005 11:48:34
On Sat, Feb 26, 2005 at 10:03:41PM -0800, John Klos wrote:
> Hi,
> 
> On a newly installed 1.6.2 system, with everything recompiled from a 
> netbsd-1-6 source tree except ld.elf_so (it's broken on PPC 604 
> processors), with the latest pkgsrc tree, I've observed one problem and am 
> still observing another.
> 
> First, it seems strange that pkg_install doesn't also build and install 
> digest. Considering how digest is required for anything, it seems like a 
> bug that trying to install a package after pkg_install simply says
> "/usr/pkg/bin/digest not found" or whatever.

I have no idea what is causing this, but it seems like your pkgsrc
tree is in an inconsistent state - see below.
 
> Second, now when I try to install a package, I get this after the 
> download finishes (with debugging):
> 
> 221-Goodbye. You uploaded 0 and downloaded 821 kbytes.
> 221 Logout.
> + [ -n yes -a -f /usr/pkgsrc/misc/screen/distinfo -a -f 
> /usr/pkgsrc/distfiles//screen-4.0.2.tar.gz ]
> + /usr/bin/awk NF == 4 && $2 == "(screen-4.0.2.tar.gz)" && $3 == "=" 
> {print $1;} /usr/pkgsrc/misc/screen/distinfo
> + alg=SHA1
> RMD160
> + [ -z SHA1
> RMD160 ]
> + /usr/local/bin/digest SHA1 RMD160
> RMD160
> + CKSUM=
> *** Error code 1
> 
> If I try to run make again, it continues past that point and works (unless 
> it starts building a dependency, in which case it fails).
> 
> Does anyone know how to fix this?

You have updated your pkgsrc/misc/screen directory, and its distinfo
file now includes RMD160 digests.  However, you also need to update
your version of bsd.pkg.mk to recognise these digests - the command
line you pasted above with the awk in it does not check for the digest
algorithm, which is how I know that you have updated your pkgsrc tree
piecemeal.  You need to have version 1.1595 of bsd.pkg.mk.

Regards,
Alistair