NetBSD Problem Report #16035

Received: (qmail 19207 invoked from network); 24 Mar 2002 17:42:43 -0000
Message-Id: <200203241741.g2OHfff17817@grumpy.local>
Date: Sun, 24 Mar 2002 12:41:41 -0500 (EST)
From: brian@jhu.edu
Reply-To: brian@jhu.edu
To: gnats-bugs@gnats.netbsd.org
Subject: Zoularis problem with patch
X-Send-Pr-Version: 3.95

>Number:         16035
>Category:       pkg
>Synopsis:       sed fails when building patch on Zoularis/SunOS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 24 17:43:01 +0000 2002
>Closed-Date:    Mon Mar 25 19:50:02 +0000 2002
>Last-Modified:  Mon Mar 25 19:50:02 +0000 2002
>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:

From: Bernd Ernesti <netbsd@arresum.inka.de>
To: brian@jhu.edu
Cc: gnats-bugs@gnats.netbsd.org, tech-pkg@netbsd.org
Subject: Re: pkg/16035: Zoularis problem with patch
Date: Sun, 24 Mar 2002 19:42:24 +0100

 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


From: Stoned Elipot <seb@pbox.org>
To: brian@jhu.edu
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/16035: Zoularis problem with patch
Date: Sun, 24 Mar 2002 20:51:34 +0100

 On Sun, Mar 24, 2002 at 07:42:24PM +0100, Bernd Ernesti wrote:
 > No, thats not a good idea. Other things will fail if you do that.
 > 
 > pkgsrc/devel/patch needs to be fixed.

 Done, just committed pkgsrc/devel/patch/Makefile revision 1.9.

 Could you -Brian- test the build again and let gnats knows how it
 goes ? Thanks in advance.

 Best regards, Stoned.

From: Brian Harrington <brian@sigh.mse.jhu.edu>
To: Stoned Elipot <seb@pbox.org>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/16035: Zoularis problem with patch
Date: Mon, 25 Mar 2002 13:33:36 -0500

 --On Sunday, March 24, 2002 8:51 PM +0100 Stoned Elipot <seb@pbox.org>
 wrote:

 > On Sun, Mar 24, 2002 at 07:42:24PM +0100, Bernd Ernesti wrote:
 >> No, thats not a good idea. Other things will fail if you do that.
 >> 
 >> pkgsrc/devel/patch needs to be fixed.
 > 
 > Done, just committed pkgsrc/devel/patch/Makefile revision 1.9.
 > 
 > Could you -Brian- test the build again and let gnats knows how it
 > goes ? Thanks in advance.

 Works like a charm.  Thanks,

               -- Brian



 --
 Brian Harrington
 Curator of Digital Collections
 Milton S. Eisenhower Library
 The Johns Hopkins University
 brian@sigh.mse.jhu.edu
State-Changed-From-To: open->closed 
State-Changed-By: seb 
State-Changed-When: Mon Mar 25 11:48:30 PST 2002 
State-Changed-Why:  
Solved and successfully tested by submitter. 
Thanks! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.