NetBSD Problem Report #49308

From makoto@mail.ki.nu  Thu Oct 23 04:16:06 2014
Return-Path: <makoto@mail.ki.nu>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 2F99BA66AE
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 23 Oct 2014 04:16:06 +0000 (UTC)
Message-Id: <201410230403.s9N43UYn013932@mail.ki.nu>
Date: Thu, 23 Oct 2014 13:03:30 +0900 (JST)
From: makoto@ki.nu
Reply-To: makoto@ki.nu
To: gnats-bugs@gnats.NetBSD.org
Subject: (cross/freemint-binutils) build error (really configure)
X-Send-Pr-Version: 3.95

>Number:         49308
>Notify-List:    bsiegert@NetBSD.org
>Category:       pkg
>Synopsis:       /bin/ksh is required for configure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mef
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 23 04:20:00 +0000 2014
>Closed-Date:    Fri Nov 28 10:15:47 +0000 2014
>Last-Modified:  Fri Nov 28 10:15:47 +0000 2014
>Originator:     Makoto Fujiwara
>Release:        NetBSD 6.1_STABLE
>Organization:
KINU Corporation

>Environment:


System: NetBSD z87 6.1_STABLE NetBSD 6.1_STABLE (GENERIC) amd64
Architecture: x86_64
Machine: amd64
>Description:
	You may find build error on 2014Q3/NetBSD-6.0-x86_64 as:
	http://nyftp.netbsd.org/pub/pkgsrc/packages/reports/2014Q3/NetBSD-6.0-x86_64/20141022.0953/cross-freemint-binutils-2.24/build.log
	The same thing is true on pkgsrc-current
>How-To-Repeat:
	(cd /usr/pkgsrc/cross/freemint-binutils; make package)
>Fix:
Index: cross/freemint-binutils/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/cross/freemint-binutils/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- cross/freemint-binutils/Makefile	19 Jan 2014 07:23:49 -0000	1.2
+++ cross/freemint-binutils/Makefile	23 Oct 2014 03:42:21 -0000
@@ -58,3 +58,13 @@
 	done

 .include "../../mk/bsd.pkg.mk"
+
+# checking for strverscmp... configure:3124: gcc -o conftest -O2   -Wl,-R/usr/pkg/lib conftest.c  >&5
+# ./configure.lineno: 3167: Syntax error: ";" unexpected
+# Makefile:6086: recipe for target 'configure-gprof' failed
+# gmake[1]: *** [configure-gprof] Error 1
+# gmake[1]: *** Waiting for unfinished jobs....
+# checking for a BSD-compatible install... ./configure.lineno: 3281: Syntax error: "(" unexpected (expecting "fi")
+# no
+# checking for tmpnam... Makefile:3432: recipe for target 'configure-binutils' failed
+PKGSRC_MAKE_ENV+=       SH=/bin/ksh

>Release-Note:

>Audit-Trail:
From: Makoto Fujiwara <makoto@ki.nu>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49308: (cross/freemint-binutils) build error (really configure)
Date: Thu, 23 Oct 2014 19:21:48 +0900

 Let me revise the diff, thanks wiz@
 ---
 mef@NetBSD.org
 Makoto Fujiwara, 

 Index: cross/freemint-binutils/Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/cross/freemint-binutils/Makefile,v
 retrieving revision 1.2
 diff -u -r1.2 Makefile
 --- cross/freemint-binutils/Makefile	19 Jan 2014 07:23:49 -0000	1.2
 +++ cross/freemint-binutils/Makefile	23 Oct 2014 10:20:11 -0000
 @@ -23,6 +23,9 @@
  OBJDIR=			../build
  CONFIGURE_DIRS=		${OBJDIR}
  CONFIGURE_SCRIPT=	${WRKSRC}/configure
 +# ./configure.lineno: 3167: Syntax error: ";" unexpected
 +# Makefile:6086: recipe for target 'configure-gprof' failed
 +CONFIG_SHELL=		ksh
  GNU_CONFIGURE_PREFIX=	${FREEMINT_PREFIX}

  CONFIGURE_ARGS+=	--disable-werror --target=m68k-atari-mint

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49308: (cross/freemint-binutils) build error (really
 configure)
Date: Sat, 25 Oct 2014 05:21:04 +0000

 On Thu, Oct 23, 2014 at 10:25:01AM +0000, Makoto Fujiwara wrote:
  >  +# ./configure.lineno: 3167: Syntax error: ";" unexpected
  >  +# Makefile:6086: recipe for target 'configure-gprof' failed
  >  +CONFIG_SHELL=		ksh
  >   GNU_CONFIGURE_PREFIX=	${FREEMINT_PREFIX}

 ...also see 49311.

 Maybe this change (and the one in avr-binutils too) should be inside a
 netbsd-only block? Or netbsd-6-only?

 -- 
 David A. Holland
 dholland@netbsd.org

From: "Makoto Fujiwara" <mef@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49308 CVS commit: pkgsrc/cross/freemint-binutils
Date: Thu, 30 Oct 2014 21:54:03 +0000

 Module Name:	pkgsrc
 Committed By:	mef
 Date:		Thu Oct 30 21:54:03 UTC 2014

 Modified Files:
 	pkgsrc/cross/freemint-binutils: Makefile

 Log Message:
 PR pkg/49308 'CONFIG_SHELL= ksh' is only necessary for NetBSD-[5-6]* and 6.99.*


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/cross/freemint-binutils/Makefile

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

Responsible-Changed-From-To: pkg-manager->mef
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Thu, 27 Nov 2014 20:38:07 +0000
Responsible-Changed-Why:
mef committed a fix.


State-Changed-From-To: open->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Thu, 27 Nov 2014 20:38:07 +0000
State-Changed-Why:
Makoto, OK to close this bug?


From: Makoto Fujiwara <makoto@ki.nu>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49308 (/bin/ksh is required for configure)
Date: Fri, 28 Nov 2014 09:50:12 +0900

 Benny, thanks, yes please.
 ---
 mef@NetBSD.org
 Makoto Fujiwara, 

State-Changed-From-To: feedback->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Fri, 28 Nov 2014 10:15:47 +0000
State-Changed-Why:
mef says this is fixed.


>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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.