NetBSD Problem Report #36415
From martin@duskware.de Wed May 30 12:41:28 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id C05A463B880
for <gnats-bugs@gnats.netbsd.org>; Wed, 30 May 2007 12:41:27 +0000 (UTC)
Message-Id: <20070530122744.0FBCD63B880@narn.NetBSD.org>
Date: Wed, 30 May 2007 12:27:44 +0000 (UTC)
From: uli@habel.name
Reply-To: uli@habel.name
To: netbsd-bugs-owner@NetBSD.org
Subject: mk/bulk/do-sandbox-build fails on Solaris 9
X-Send-Pr-Version: www-1.0
>Number: 36415
>Category: pkg
>Synopsis: mk/bulk/do-sandbox-build fails on Solaris 9
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: rhaen
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed May 30 12:45:00 +0000 2007
>Last-Modified: Fri Nov 20 11:35:54 +0000 2009
>Originator: Ulrich Habel
>Release: Solaris 5.9/sparc
>Organization:
>Environment:
SunOS sun-install 5.9 Generic_122300-07 sun4u sparc SUNW,Sun-Fire-V240
>Description:
On Solaris the shell "sh" seems to be terribly broken. It's known for a longer time, however do-sandbox-build is a script that uses "/bin/sh" in hardcoded form and so the script fails with the following error:
mk/bulk/build: error:
Error reading the variables.
Try running mk/bulk/build with another shell.
>How-To-Repeat:
run mk/bulk/do-sandbox-build on a Solaris 9 system
>Fix:
A good way would be the detection of the OS - I've attached a small patch to address this issue:
--- mk/bulk/do-sandbox-build.orig 2007-05-30 07:55:14.348951000 +0200
+++ mk/bulk/do-sandbox-build 2007-05-30 07:53:31.384740000 +0200
@@ -7,7 +7,15 @@
# See pkgsrc/doc/pkgsrc.txt for documentation!
#
-sh="/bin/sh"
+opsys=`uname -s`
+case "$opsys" in
+ SunOS)
+ sh="/bin/ksh"
+ ;;
+ *)
+ sh="/bin/sh"
+ ;;
+esac
build="mk/bulk/build"
chroot /usr/sandbox \
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: obache@netbsd.org
Responsible-Changed-When: Wed, 30 May 2007 13:16:40 +0000
Responsible-Changed-Why:
builk build + Solaris = rillig@?
Responsible-Changed-From-To: rillig->rhaen
Responsible-Changed-By: rillig@NetBSD.org
Responsible-Changed-When: Fri, 20 Nov 2009 11:35:54 +0000
Responsible-Changed-Why:
I don't have access to Solaris anymore.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.36 2007/11/24 03:27:39 kano 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.