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: solaris-pkg-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed May 30 12:45:00 +0000 2007
>Closed-Date: Sun Apr 12 14:26:48 +0000 2020
>Last-Modified: Sun Apr 12 14:26:48 +0000 2020
>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.
Responsible-Changed-From-To: rhaen->agc
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 23 Dec 2013 11:37:00 +0000
Responsible-Changed-Why:
Over to maintainer (give to solaris-pkg-people if you can't handle it)
Responsible-Changed-From-To: agc->solaris-pkg-people
Responsible-Changed-By: agc@NetBSD.org
Responsible-Changed-When: Thu, 06 Feb 2014 21:28:02 +0000
Responsible-Changed-Why:
over to solaris-pkg-people
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 12 Apr 2020 14:26:48 +0000
State-Changed-Why:
Stale bug report. The referenced files no longer exist in pkgsrc.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.