NetBSD Problem Report #47695

From www@NetBSD.org  Tue Mar 26 21:16:25 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 3215E63F2AA
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 26 Mar 2013 21:16:25 +0000 (UTC)
Message-Id: <20130326211624.4E3D763F2AA@www.NetBSD.org>
Date: Tue, 26 Mar 2013 21:16:24 +0000 (UTC)
From: pooka@iki.fi
Reply-To: pooka@iki.fi
To: gnats-bugs@NetBSD.org
Subject: host-mkdep fails on Solaris xpg4/sh
X-Send-Pr-Version: www-1.0

>Number:         47695
>Category:       toolchain
>Synopsis:       host-mkdep fails on Solaris xpg4/sh
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 26 21:20:01 +0000 2013
>Closed-Date:    Wed Mar 27 01:31:49 +0000 2013
>Last-Modified:  Wed Mar 27 01:31:49 +0000 2013
>Originator:     Antti Kantee
>Release:        
>Organization:
>Environment:
starting from host-mkdep.in 1.28 I'd guess
>Description:
/obj/tools/host-mkdep/host-mkdep[208]: syntax error at line 234 : `|' unexpected
*** [atoll.d] Error code 2

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/47695: host-mkdep fails on Solaris xpg4/sh
Date: Wed, 27 Mar 2013 03:40:53 +0400

 On Tue, Mar 26, 2013 at 21:20:01 +0000, pooka@iki.fi wrote:

 > starting from host-mkdep.in 1.28 I'd guess
 > /obj/tools/host-mkdep/host-mkdep[208]: syntax error at line 234 : `|' unexpected
 > *** [atoll.d] Error code 2

 It's probably confused by double paren.  Try adding a space

     ( (@CPP@ "$@" $f; echo $? >&3) | @AWK@ ...
 -----^-
 there

 -uwe

From: Antti Kantee <pooka@iki.fi>
To: gnats-bugs@NetBSD.org
Cc: Valery Ushakov <uwe@stderr.spb.ru>, toolchain-manager@NetBSD.org, 
 gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: toolchain/47695: host-mkdep fails on Solaris xpg4/sh
Date: Wed, 27 Mar 2013 00:55:32 +0100

 On 27.03.2013 00:45, Valery Ushakov wrote:
 >   > starting from host-mkdep.in 1.28 I'd guess
 >   > /obj/tools/host-mkdep/host-mkdep[208]: syntax error at line 234 : `|' unexpected
 >   > *** [atoll.d] Error code 2
 >
 >   It's probably confused by double paren.  Try adding a space
 >
 >       ( (@CPP@ "$@" $f; echo $? >&3) | @AWK@ ...
 >   -----^-
 >   there

 Works.  Thanks!

From: "Valeriy E. Ushakov" <uwe@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47695 CVS commit: src/tools/host-mkdep
Date: Wed, 27 Mar 2013 01:03:40 +0000

 Module Name:	src
 Committed By:	uwe
 Date:		Wed Mar 27 01:03:40 UTC 2013

 Modified Files:
 	src/tools/host-mkdep: host-mkdep.in

 Log Message:
 Some shells have ((expr)) syntax for arithmetic.  Add space between
 parens of nested (compound-list)s to unconfuse them.

 Fixes PR toolchain/47695


 To generate a diff of this commit:
 cvs rdiff -u -r1.28 -r1.29 src/tools/host-mkdep/host-mkdep.in

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

State-Changed-From-To: open->closed
State-Changed-By: uwe@NetBSD.org
State-Changed-When: Wed, 27 Mar 2013 01:31:49 +0000
State-Changed-Why:
Fixed, confirmed by submitter.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.