Subject: Re: pkg/16035: Zoularis problem with patch
To: None <brian@jhu.edu>
From: Bernd Ernesti <netbsd@arresum.inka.de>
List: tech-pkg
Date: 03/24/2002 19:42:24
On Sun, Mar 24, 2002 at 12:41:41PM -0500, brian@jhu.edu wrote:
[..]
> >Description:
> When building /usr/pkgsrc/devel/patch sed fails with the 
> 	following error:
> /usr/xpg4/bin/sed  -e '/#include <pch.h>/a\' -e '#include <sys/param.h>'         -e 's/^#if HAVE_SETMODE/#if defined(HAVE_SETMODE) \&\& (!(defined(BSD) \&\& BSD >= 199306))/'  < /usr/pkgsrc/devel/patch/work.sparc/patch-2.5.4/pch.c.orig                                      > /usr/pkgsrc/devel/patch/work.sparc/patch-2.5.4/pch.c
> sed: Found escape character at end of editing script.
> 	
> >How-To-Repeat:
> cd /usr/pkgsrc/devel/patch; bmake install
> 	
> >Fix:
> changing /usr/pkgsrc/mk/defs.SunOS.mk to use /usr/bin/sed instead of
> /usr/xpg4/bin/sed fixes the problem.  I don't know if that will break anything
> else, but Sun's sed seems pretty standard.

No, thats not a good idea. Other things will fail if you do that.

pkgsrc/devel/patch needs to be fixed.

Bernd