Subject: Re: /bin/sh: SHA1: not found
To: None <pkgsrc-users@netbsd.org>
From: Klaus Heinz <k.heinz.jul.sechs@onlinehome.de>
List: pkgsrc-users
Date: 07/13/2006 19:51:06
[ Redirecting to pkgsrc-users, since this is about build problems ]

Raymond Meyer wrote:
> Just updated my pkgsrc tree. Any ideas why I'm getting the following error:
> 
> /bin/sh: SHA1: not found
> **************************************
> Ignoring patch file /opt/pkgsrc/x11/XFree86-imake/patches/patch-aa: invalid checksum

This looks like the shell tried to execute "SHA1" as a program. "SHA1"
is one of the digest algorithms used to verify the authenticity of
files.
I could imagine that somehow the variable DIGEST is empty for you, so
a command "${DIGEST} SHA1" would become simply "SHA1".

You could try
  $ make PKG_DEBUG_LEVEL=2 checksum

and look carefully at the output whether my guess might be correct.
If everything works, you should see something like this for all files
mentioned in distinfo:

  ...
  + /usr/pkg/bin/digest SHA1
  + CKSUM=22682f75ff0d1ea548688e78c8cca83d599ca576
  ...


ciao
     Klaus