Subject: Re: pkg/36413 (mk/flavor/pkg/metadata.mk: Rev 1.21 shell subst not supported on Solaris)
To: None <heinz@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: Klaus Heinz <k.heinz.mai.sieben@kh-22.de>
List: pkgsrc-bugs
Date: 05/30/2007 22:10:04
The following reply was made to PR pkg/36413; it has been noted by GNATS.

From: Klaus Heinz <k.heinz.mai.sieben@kh-22.de>
To: gnats-bugs@NetBSD.org
Cc: Joachim =?iso-8859-1?Q?K=F6nig?= <him@online.de>
Subject: Re: pkg/36413 (mk/flavor/pkg/metadata.mk: Rev 1.21 shell subst not supported on Solaris)
Date: Thu, 31 May 2007 00:09:03 +0200

 Hi,
 
 the statement
 
   "The substitution is not supported by /usr/xpg4/bin/sh on Solaris"
 
 is somewhat misleading.
 
 The man page and my tests show that /usr/xpg4/bin/sh knows this kind
 of parameter expansion.
 
 Unfortunately, bmake does _not_ use /usr/xpg4/bin/sh for execution of
 shell commands but /bin/sh:
 
   /bin/sh: bad substitution
 
 A possible workaround could be adding the line (taken from bmake(1))
 
   .SHELL: name=sh path=/usr/xpg4/bin/sh hasErrCtl=true \
           check="set -e" ignore="set +e" \
           echo="set -v" quiet="set +v" filter="set +v" \
           echoFlag=v errFlag=e
 
 to mk.conf.
 
 Beware, if you are using an older version of bmake, this may be silently
 ignored.
 
 ciao
      Klaus