NetBSD Problem Report #39524

From  Fri Sep 12 08:14:57 2008
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 16C1A63B853
	for <>; Fri, 12 Sep 2008 08:14:57 +0000 (UTC)
Message-Id: <>
Date: Fri, 12 Sep 2008 10:14:51 +0200
Subject: pdksh bootstrap problem on Solaris 10
X-Send-Pr-Version: 3.95

>Number:         39524
>Category:       pkg
>Synopsis:       pdksh bootstrap problem on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 12 08:15:00 +0000 2008
>Last-Modified:  Sat Feb 15 14:24:02 +0000 2020
>Release:        SunOS 5.10, pkgsrc 2008Q2
computer science department, university of Bonn, Germany

SunOS 5.10 Generic_127127-11 sun4u sparc SUNW,A70

Architecture: sun4u
Machine: sun4u
	A freshly bootstrapped Solaris zone pkg_tarup's a pdksh that
has #!/opt/pkgsrc/pkgsrc/bootstrap/work/bin/pdksh as the first line

On a target machine, this makes pkg_add fail.

	pkg_tarup pdksh; ssh ...; pkg_add pdksh-5.2.14nb3.tgz
	<joerg> Maybe we need to double-bootstrap pdksh


From: Ignatios Souvatzis <>
Subject: Re: pkg/39524: pdksh bootstrap problem on Solaris 10
Date: Wed, 5 Nov 2008 15:40:08 +0100

 Unchanged with 2008Q3. Some more fishy lines in +INSTALL listed below
 for completeness:

 # pwd

 # grep pkgsrc/pkgsrc ./+INSTALL


 Btw - this was done with a suggested fix for
 pkgsrc/pkgsrc/bootstrap/work/bin/pdksh in another file (namely: note sh:run
 instead of sh in see here:

 # exit
 # pwd
 # grep sh ../mk/

 # of the package, then the build targets should be "build test", otherwise
 # These are all of the tools use by pkgsrc Makefiles.  This should
         mkdir mv printf pwd rm rmdir sed sh:run sort                    \

From: Matthias Scheler <>
Subject: Re: pkg/39524: pdksh bootstrap problem on Solaris 10
Date: Sat, 21 Mar 2015 08:49:07 +0000


 there are more problems concerning the "pdksh" bootstrap. Even if you
 fix all the work directory references in the installed package and
 use "bmake tarup" to create a working binary package you can still
 not use "pkg_add -u" on it.

 "pkg_add" will happily deinstall the old package and then fail to
 install the new one because the shell references in the install
 script isn't present. You have to use something like
 "cp -p /bin/ksh /usr/pkg/bin/pdksh" followed by "pkg_add -u pkdsh"
 to recover from that situation.

 	Kind regards

 Matthias Scheler                        

From: "Matthias Scheler" <>
Subject: PR/39524 CVS commit: pkgsrc/bootstrap
Date: Sat, 13 Jun 2015 13:15:39 +0000

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Sat Jun 13 13:15:39 UTC 2015

 Modified Files:
 	pkgsrc/bootstrap: bootstrap

 Log Message:
 If "/usr/bin/bash" is installed under Solaris always prefer it over the
 "pdksh" package. Using the package is too problematic, see PR pkg/39524.

 To generate a diff of this commit:
 cvs rdiff -u -r1.217 -r1.218 pkgsrc/bootstrap/bootstrap

 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->solaris-pkg-people
Responsible-Changed-When: Sat, 15 Feb 2020 14:24:02 +0000
It's a Solaris issue.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.