pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/36413 (mk/flavor/pkg/metadata.mk: Rev 1.21 shell subst not supported on Solaris)



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@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: Joachim =?iso-8859-1?Q?K=F6nig?= <him%online.de@localhost>
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
 



Home | Main Index | Thread Index | Old Index