NetBSD Problem Report #39524
From ignatios@cs.uni-bonn.de Fri Sep 12 08:14:57 2008
Return-Path: <ignatios@cs.uni-bonn.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 16C1A63B853
for <gnats-bugs@gnats.NetBSD.org>; Fri, 12 Sep 2008 08:14:57 +0000 (UTC)
Message-Id: <1221207291.640392.16682.nullmailer@tiger.cs.uni-bonn.de>
Date: Fri, 12 Sep 2008 10:14:51 +0200
From: ignatios@cs.uni-bonn.de
Reply-To: ignatios@cs.uni-bonn.de
To: gnats-bugs@gnats.NetBSD.org
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: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 12 08:15:00 +0000 2008
>Closed-Date: Wed May 10 23:55:27 +0000 2023
>Last-Modified: Wed May 10 23:55:27 +0000 2023
>Originator: ignatios@cs.uni-bonn.de
>Release: SunOS 5.10, pkgsrc 2008Q2
>Organization:
computer science department, university of Bonn, Germany
>Environment:
System:
SunOS pascal.cs.uni-bonn.de 5.10 Generic_127127-11 sun4u sparc SUNW,A70
Architecture: sun4u
Machine: sun4u
>Description:
A freshly bootstrapped Solaris zone pkg_tarup's a pdksh that
has #!/opt/pkgsrc/pkgsrc/bootstrap/work/bin/pdksh as the first line
of +INSTALL.
On a target machine, this makes pkg_add fail.
>How-To-Repeat:
pkg_tarup pdksh; ssh ...; pkg_add pdksh-5.2.14nb3.tgz
>Fix:
<joerg> Maybe we need to double-bootstrap pdksh
>Release-Note:
>Audit-Trail:
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
To: gnats-bugs@netbsd.org
Cc:
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
/usr/local/pkgtest/var/db/pkg/pdksh-5.2.14nb3
# grep pkgsrc/pkgsrc ./+INSTALL
#!/opt/pkgsrc/pkgsrc/bootstrap/work/bin/pdksh
AWK="/opt/pkgsrc/pkgsrc/bootstrap/work/bin/nawk"
PKG_ADMIN="/opt/pkgsrc/pkgsrc/bootstrap/work/sbin/pkg_admin"
PKG_INFO="/opt/pkgsrc/pkgsrc/bootstrap/work/sbin/pkg_info"
SED="/opt/pkgsrc/pkgsrc/bootstrap/work/bin/sed"
SH="/opt/pkgsrc/pkgsrc/bootstrap/work/bin/pdksh"
#!/opt/pkgsrc/pkgsrc/bootstrap/work/bin/pdksh
SED="/opt/pkgsrc/pkgsrc/bootstrap/work/bin/sed"
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 bsd.mk.conf) see here:
# exit
# pwd
/opt/pkgsrc/pkgsrc/bootstrap
# grep sh ../mk/bsd.pkg.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 <tron@zhadum.org.uk>
To: NetBSD GNATS <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/39524: pdksh bootstrap problem on Solaris 10
Date: Sat, 21 Mar 2015 08:49:07 +0000
Hello,
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 http://zhadum.org.uk/
From: "Matthias Scheler" <tron@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
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-By: rillig@NetBSD.org
Responsible-Changed-When: Sat, 15 Feb 2020 14:24:02 +0000
Responsible-Changed-Why:
It's a Solaris issue.
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 19 Dec 2021 01:08:59 +0000
State-Changed-Why:
Is this problem current? There's been just a few changes since it was last
touched...
State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 10 May 2023 23:55:27 +0000
State-Changed-Why:
>1.5-year feedback timeout.
Since there have been regular Solaris builds more recently than when this
issue was last touched (2015) assume it's either fixed or irrelevant.
>Unformatted:
(Contact us)
$NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.