Subject: pkg/16035: Zoularis problem with patch
To: None <gnats-bugs@gnats.netbsd.org>
From: None <brian@jhu.edu>
List: netbsd-bugs
Date: 03/24/2002 12:41:41
>Number:         16035
>Category:       pkg
>Synopsis:       sed fails when building patch on Zoularis/SunOS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 24 09:43:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Brian Harrington <brian@jhu.edu>
>Release:        Solaris 7
>Organization:
	
>Environment:
	
	
System: SunOS twinkle 5.7 Generic_106541-18 sun4m sparc SUNW,SPARCstation-20
Architecture: sparc
Machine: sun4m
>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.
	
>Release-Note:
>Audit-Trail:
>Unformatted: