NetBSD Problem Report #48994
From www@NetBSD.org Tue Jul 15 14:00:19 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id E4743A6541
for <gnats-bugs@gnats.NetBSD.org>; Tue, 15 Jul 2014 14:00:19 +0000 (UTC)
Message-Id: <20140715140018.A8D8EA655B@mollari.NetBSD.org>
Date: Tue, 15 Jul 2014 14:00:18 +0000 (UTC)
From: Herrold@owlriver.com
Reply-To: Herrold@owlriver.com
To: gnats-bugs@NetBSD.org
Subject: pkgsrc bootstrap broken on current OS/X [10.9 w clang compiler] when using a tarball, instructions at
X-Send-Pr-Version: www-1.0
>Number: 48994
>Category: pkg
>Synopsis: pkgsrc bootstrap broken on current OS/X [10.9 w clang compiler] when using a tarball, instructions at
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 15 14:05:00 +0000 2014
>Last-Modified: Tue Jul 22 06:00:01 +0000 2014
>Originator: R P Herrold
>Release: Tpkgsrc-2014Q2
>Organization:
self
>Environment:
mini2013:pkgsrc herrold$ uname -a
Darwin mini2013.first.owlriver.net 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
mini2013:pkgsrc herrold$
>Description:
and URL instruct6ions at:
http://www.netbsd.org/docs/software/packages.html
Discussed in IRC channel
seems to need (and should auto-detect) when in this environment:
--compiler=clang
as noted in a comment in the wiki for this arch:
http://wiki.netbsd.org/pkgsrc/pkgsrc_64bit_osx/
>How-To-Repeat:
issue 1:
a bare:
cd pkgsrc/bootstrap/
./bootstrap --unprivileged
will fail
=====
issue 2 (insufficient in package documentation)
the bootstrap cleanup instructions suggest removing
rm -rf ~/pkgsrc/pkgsrc/bootstrap/work/wrk/pkgtools/bootstrap-mk-files/work/bootstrap-mk-files-20140516
but miss the need to also remove:
rm -rf ~/pkg/
=========
issue 3 (RFE)
detection, early on that one is running as non-root, should also add the:
--unprivileged
option to the bootstrap
>Fix:
issue 1 is web presence, and I do not know the fix
issue 2 is a simple check for euid, and turning on the
--unprivileged
option
as to issue 3, suggesting the:
rm -rf find ~ . -name bootstrap-mk-files-20140516
(obviously, substituting date +%Y%m%d changes)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: install-manager->pkg-manager
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Tue, 22 Jul 2014 05:09:49 +0000
Responsible-Changed-Why:
pkgsrc issue, not the base netbsd installer
From: "OBATA Akio" <obata@lins.jp>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/48994 (pkgsrc bootstrap broken on current OS/X [10.9 w clang
compiler] when using a tarball, instructions at)
Date: Tue, 22 Jul 2014 14:58:49 +0900
issue 1:
After pkgsrc-2014Q2 out, compiler will be detected automatically on Darwin too,
so not relevant anymore.
issue 2:
I have no idea what are you refer to.
But if doing re-bootstrap with workdir created in other times,
fatal error for removal of the work directory will be risen.
Removal of "~pkg/" is not so much a bootstrap matter
as "How to remove installed pkgsrc completely".
issue 3:
It is bad idea that bootstrap script should fallback to unprivileged
mode automatically. "unprivileged" mode is not the default mode,
because it is not suitable for some kind of packages,
for example, requiring privileged operations.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz 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.