NetBSD Problem Report #33236

From www@netbsd.org  Tue Apr 11 10:06:56 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 5D44163B9C2; Tue, 11 Apr 2006 10:06:56 +0000 (UTC)
Message-Id: <20060411100656.5D44163B9C2@narn.netbsd.org>
Date: Tue, 11 Apr 2006 10:06:56 +0000 (UTC)
From: tannert@mis.mpg.de
Reply-To: tannert@mis.mpg.de
To: gnats-bugs@netbsd.org
Subject: Error in /pkgsrc/bootstrap
X-Send-Pr-Version: www-1.0

>Number:         33236
>Category:       pkg
>Synopsis:       Error in /pkgsrc/bootstrap
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    rillig
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 11 10:10:00 +0000 2006
>Closed-Date:    Sun Jun 25 19:30:41 +0000 2006
>Last-Modified:  Sun Jun 25 19:30:41 +0000 2006
>Originator:     Andreas Tannert
>Release:        
>Organization:
MIS MPG
>Environment:
SunOS 5.9 Generic_118558-21 sun4u sparc SUNW,Sun-Fire-880
>Description:
Error in /pkgsrc/bootstrap on line 320
>How-To-Repeat:
start bootstrap
>Fix:
Change [^0-9] to [0-9] on line 320

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: install-manager->pkg-manager
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Tue, 11 Apr 2006 11:18:39 +0000
Responsible-Changed-Why:
 to pkg (for pkgsrc).


From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33236: Error in /pkgsrc/bootstrap
Date: Tue, 11 Apr 2006 04:33:16 -0700 (PDT)

 On Tue, 11 Apr 2006 tannert@mis.mpg.de wrote:

 > SunOS 5.9 Generic_118558-21 sun4u sparc SUNW,Sun-Fire-880

 I don't think this hits you.

 > >How-To-Repeat:
 > start bootstrap
 > >Fix:
 > Change [^0-9] to [0-9] on line 320

 I am not sure it is a bug. (Is this causing it to fail on your Solaris 
 system?)

 But I do see that different implementations of shells honor that ^ 
 differently.

 NetBSD's sh(1) and ksh(1) ignore the ^ (carat).

 Bash makes it mean "not" (like regex) and is documented. And it does what 
 is expected on DragonFly's sh(1) too -- except not documented.

  Jeremy C. Reed

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33236: Error in /pkgsrc/bootstrap
Date: Tue, 11 Apr 2006 04:46:46 -0700 (PDT)

 On Tue, 11 Apr 2006, Jeremy C. Reed wrote:

 >  > Change [^0-9] to [0-9] on line 320
 >  
 >  I am not sure it is a bug. (Is this causing it to fail on your Solaris 
 >  system?)
 >  
 >  But I do see that different implementations of shells honor that ^ 
 >  differently.
 >  
 >  NetBSD's sh(1) and ksh(1) ignore the ^ (carat).
 >  
 >  Bash makes it mean "not" (like regex) and is documented. And it does what 
 >  is expected on DragonFly's sh(1) too -- except not documented.

 I see the "exclamation mark" is documented though -- and that appears to 
 be the way it works on NetBSD's sh and ksh too.



  Jeremy C. Reed

 echo ':6DB6=88>?;@69876tA=AC8BB5tA6487><' | tr '4-F' 'wu rofIn.lkigemca'

From: Andreas Tannert <tannert@mis.mpg.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33236: Error in /pkgsrc/bootstrap
Date: Tue, 11 Apr 2006 13:43:59 +0200 (MEST)

 Dear Mr.Reed,

 hmm, you are of course right, this is not a normal bug.

 I am working with a tcsh. Perhaps this is a problem.

 It think the bootstrap source should be able to run on every supported System.

 The error occurs only in the latest versions. Perhaps it is possible to replace 
 the ^ with something else.

 Best regards
 Andreas Tannert

 >From: "Jeremy C. Reed" <reed@reedmedia.net>
 >To: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, 
 tannert@mis.mpg.de
 >Subject: Re: pkg/33236: Error in /pkgsrc/bootstrap
 >X-Gnats-Was-Stupid: no
 >Cc: 
 >Date: Tue, 11 Apr 2006 11:35:02 +0000 (UTC)
 >X-MIS-Check-Sender: OK, 421 mail.netbsd.org Error: timeout exceeded(cached, 
 81604)
 >X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on twww.mis.mpg.de
 >X-Spam-Level: ***
 >X-Spam-Status: No, hits=3.0 required=5.0 tests=MSGID_FROM_MTA_SHORT 
 autolearn=no version=2.63
 >
 >The following reply was made to PR pkg/33236; it has been noted by GNATS.
 >
 >From: "Jeremy C. Reed" <reed@reedmedia.net>
 >To: gnats-bugs@netbsd.org
 >Cc: 
 >Subject: Re: pkg/33236: Error in /pkgsrc/bootstrap
 >Date: Tue, 11 Apr 2006 04:33:16 -0700 (PDT)
 >
 > On Tue, 11 Apr 2006 tannert@mis.mpg.de wrote:
 > 
 > > SunOS 5.9 Generic_118558-21 sun4u sparc SUNW,Sun-Fire-880
 > 
 > I don't think this hits you.
 > 
 > > >How-To-Repeat:
 > > start bootstrap
 > > >Fix:
 > > Change [^0-9] to [0-9] on line 320
 > 
 > I am not sure it is a bug. (Is this causing it to fail on your Solaris 
 > system?)
 > 
 > But I do see that different implementations of shells honor that ^ 
 > differently.
 > 
 > NetBSD's sh(1) and ksh(1) ignore the ^ (carat).
 > 
 > Bash makes it mean "not" (like regex) and is documented. And it does what 
 > is expected on DragonFly's sh(1) too -- except not documented.
 > 
 >  Jeremy C. Reed
 > 

From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/33236 CVS commit: pkgsrc/bootstrap
Date: Tue, 11 Apr 2006 14:35:48 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	joerg
 Date:		Tue Apr 11 14:35:48 UTC 2006

 Modified Files:
 	pkgsrc/bootstrap: bootstrap mkbinarykit

 Log Message:
 Don't use the carat (^) in class matches, as it is not supported by
 some shells. Use precendency order instead.

 Should fix PR 33236.


 To generate a diff of this commit:
 cvs rdiff -r1.49 -r1.50 pkgsrc/bootstrap/bootstrap
 cvs rdiff -r1.14 -r1.15 pkgsrc/bootstrap/mkbinarykit

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Roland Illig <rillig@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33236: Error in /pkgsrc/bootstrap
Date: Tue, 11 Apr 2006 19:58:19 +0200

 Andreas Tannert wrote:
 >  The error occurs only in the latest versions. Perhaps it is possible to replace 
 >  the ^ with something else.

 All shells I know accept an exclamation mark meaning "not" instead of a 
 caret. So the proper fix would be to just replace [^0-9] with [!0-9].

 Roland

Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: rillig@netbsd.org
Responsible-Changed-When: Sun, 25 Jun 2006 19:30:41 +0000
Responsible-Changed-Why:
I'll handle any further requests.


State-Changed-From-To: open->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Sun, 25 Jun 2006 19:30:41 +0000
State-Changed-Why:
The bug is fixed. Thanks for the PR.


>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.