Subject: Re: pkg/34513 (mail/sendmail sets smrsh command dir to /usr/adm/sm.bin)
To: None <gnats-bugs@NetBSD.org>
From: Jim Bernard <jbernard@mines.edu>
List: pkgsrc-bugs
Date: 10/12/2006 20:05:32
On Thu, Oct 12, 2006 at 09:08:54PM +0000, tv@NetBSD.org wrote:
> Synopsis: mail/sendmail sets smrsh command dir to /usr/adm/sm.bin
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: tv@netbsd.org
> State-Changed-When: Thu, 12 Oct 2006 21:08:53 +0000
> State-Changed-Why:
> Please confirm that sendmail-8.13.8nb2 (or later) fixes the problem.

  Almost.  The value of SMRSH_CMDDIR now gets to the compiler command line,
but the default setting breaks the compilation of smrsh.  The problem is
that the usage in smrsh.c requires quotes around the string, which have to
be escaped on the shell command line.  This patch to files/site.config.m4
does the trick:

19c19
< APPENDDEF(`confENVDEF', `-I${PREFIX}/include -DSMRSH_CMDDIR=${SMRSH_CMDDIR}')
---
> APPENDDEF(`confENVDEF', `-I${PREFIX}/include -DSMRSH_CMDDIR=\"${SMRSH_CMDDIR}\"')

  Thanks for fixing it!