NetBSD Problem Report #32075

From www@netbsd.org  Tue Nov 15 04:46:39 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 22F2763B8CA; Tue, 15 Nov 2005 04:46:39 +0000 (UTC)
Message-Id: <20051115044639.22F2763B8CA@narn.netbsd.org>
Date: Tue, 15 Nov 2005 04:46:39 +0000 (UTC)
From: ykomatsu@akaumigame.org
Reply-To: ykomatsu@akaumigame.org
To: gnats-bugs@netbsd.org
Subject: Solaris' test program does not have a "-e" option
X-Send-Pr-Version: www-1.0

>Number:         32075
>Category:       pkg
>Synopsis:       www/zope3: Solaris' test program does not have a "-e" option
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 15 04:47:00 +0000 2005
>Last-Modified:  Sun Mar 27 18:34:19 +0000 2011
>Originator:     Yoshito Komatsu
>Release:        NetBSD 3.0_BETA
>Organization:
>Environment:
Solaris 9 sparc
>Description:
Solaris' test program does not have a "-e" option,
and zope3 configure script failed.

ftp://ftp0.mh.bbc.co.uk/pub/pkgsrc/pkgstat/20051114.1024/www/zope3/.broken.build1.html
>How-To-Repeat:
Build www/zope3 on SunOS 5.9/sparc.
>Fix:
To fix this problem, we should a "-f" option instead of a "-e" option
in the configure script.

$NetBSD$

--- configure.orig      2005-10-03 03:52:41.000000000 +0900
+++ configure
@@ -211,7 +211,8 @@ else
     out ""
 fi

-if [ -e "$prefix" -a ! "$FORCE_APP_HOME" ] ; then
+#if [ -e "$prefix" -a ! "$FORCE_APP_HOME" ] ; then
+if [ -f "$prefix" -a ! "$FORCE_APP_HOME" ] ; then
     echo 2>&1 "Installation directory $prefix already exists."
     echo 2>&1 "Specify a directory that isn't being used, or"
     echo 2>&1 "use --force to use it anyway."

>Release-Note:

>Audit-Trail:
[20110327 shattered] edited Environment: field

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: cube@netbsd.org
Responsible-Changed-When: Tue, 15 Nov 2005 05:23:28 +0000
Responsible-Changed-Why:
Solaris-specific issue.


From: grant beattie <grant@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org,
	pkgsrc-bugs@netbsd.org
Subject: Re: pkg/32075: Solaris' test program does not have a "-e" option
Date: Tue, 15 Nov 2005 18:41:04 +1100

 On Tue, Nov 15, 2005 at 04:47:01AM +0000, ykomatsu@akaumigame.org wrote:

 > >Number:         32075
 > >Category:       pkg
 > >Synopsis:       Solaris' test program does not have a "-e" option
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Tue Nov 15 04:47:00 +0000 2005
 > >Originator:     Yoshito Komatsu
 > >Release:        NetBSD 3.0_BETA
 > >Organization:
 > >Environment:
 > System: NetBSD sv5.ln.akaumigame.org 3.0_BETA NetBSD 3.0_BETA XENU_LNAKAUMIGAMEORG) #0: Fri Aug 26 16:40:24 JST 2005 komatsu@sv5.ln.akaumigame.org:/usr/src/sys/arch/i386/compile/XENU_LNAKAUMIGAMEORG  i386
 > Architecture: i386
 > Machine: i386
 > >Description:
 > Solaris' test program does not have a "-e" option,
 > and zope3 configure script failed.
 > 
 > ftp://ftp0.mh.bbc.co.uk/pub/pkgsrc/pkgstat/20051114.1024/www/zope3/.broken.build1.html
 > >How-To-Repeat:
 > Build www/zope3 on SunOS 5.9/sparc.
 > >Fix:
 > To fix this problem, we should a "-f" option instead of a "-e" option
 > in the configure script.

 this should not happen at all, because configure scripts are run using
 ${CONFIG_SHELL}, which on Solaris is /bin/ksh, whose built-in test(1)
 does support -e.

 I guess the script isn't being run via ${CONFIG_SHELL} for some
 reason.

 grant.

From: Yoshito Komatsu <ykomatsu@akaumigame.org>
To: gnats-bugs@NetBSD.org
Cc: grant@NetBSD.org
Subject: Re: pkg/32075
Date: Wed, 16 Nov 2005 11:25:41 +0900

  > this should not happen at all, because configure scripts are run using
  > ${CONFIG_SHELL}, which on Solaris is /bin/ksh, whose built-in test(1)
  > does support -e.

 I see.

  > I guess the script isn't being run via ${CONFIG_SHELL} for some
  > reason.

 The configure script in www/zope3 is not GNU configure script,
 I think that it ignores ${CONFIG_SHELL}.

 Regards,
 -- 
 Yoshito Komatsu <ykomatsu@akaumigame.org>

From: Roland Illig <rillig@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: ykomatsu@akaumigame.org, grant@NetBSD.org
Subject: Re: pkg/32075
Date: Wed, 16 Nov 2005 09:59:03 +0100

 Yoshito Komatsu wrote:
 > The following reply was made to PR pkg/32075; it has been noted by GNATS.
 > 
 > From: Yoshito Komatsu <ykomatsu@akaumigame.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: grant@NetBSD.org
 > Subject: Re: pkg/32075
 > Date: Wed, 16 Nov 2005 11:25:41 +0900
 > 
 >   > this should not happen at all, because configure scripts are run using
 >   > ${CONFIG_SHELL}, which on Solaris is /bin/ksh, whose built-in test(1)
 >   > does support -e.
 >  
 >  I see.
 >  
 >   > I guess the script isn't being run via ${CONFIG_SHELL} for some
 >   > reason.
 >  
 >  The configure script in www/zope3 is not GNU configure script,
 >  I think that it ignores ${CONFIG_SHELL}.

 It cannot. Look at pkgsrc/mk/bsd.pkg.mk and grep for "do-configure:". 
 The ${CONFIG_SHELL} is forced by pkgsrc; it's not the package's choice.

 I have CONFIG_SHELL set manually in my mk.conf. Maybe it's not /bin/ksh 
 by default?

 Roland

From: grant beattie <grant@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: solaris-pkg-people@netbsd.org, gnats-admin@netbsd.org,
	pkgsrc-bugs@netbsd.org
Subject: Re: pkg/32075
Date: Thu, 17 Nov 2005 11:23:14 +1100

 On Wed, Nov 16, 2005 at 09:00:05AM +0000, Roland Illig wrote:

 >  >  The configure script in www/zope3 is not GNU configure script,
 >  >  I think that it ignores ${CONFIG_SHELL}.
 >  
 >  It cannot. Look at pkgsrc/mk/bsd.pkg.mk and grep for "do-configure:". 
 >  The ${CONFIG_SHELL} is forced by pkgsrc; it's not the package's choice.
 >  
 >  I have CONFIG_SHELL set manually in my mk.conf. Maybe it's not /bin/ksh 
 >  by default?

 it is defined when GNU_CONFIGURE is true. are you sure having
 CONFIG_SHELL in mk.conf is a good idea? you'll probably be hiding from
 a few problems by doing this.. :)

 the fix should be as simple as calling the configure script using
 ${SHELL}.

 grant.

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