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: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 12 08:15:00 +0000 2008
>Last-Modified: Wed Nov 05 14:30:05 +0000 2008
>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
>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 \
(...)
(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.