NetBSD Problem Report #52391

From hf@spg.tu-darmstadt.de  Tue Jul 11 11:18:58 2017
Return-Path: <hf@spg.tu-darmstadt.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 003417A209
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 11 Jul 2017 11:18:57 +0000 (UTC)
Message-Id: <201707111031.v6BAVVek013661@Gstoder.nt.e-technik.tu-darmstadt.de>
Date: Tue, 11 Jul 2017 12:31:31 +0200 (CEST)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: Bootstrapping pkgsrc from a readonly tree fails
X-Send-Pr-Version: 3.95

>Number:         52391
>Category:       pkg
>Synopsis:       Bootstrapping pkgsrc from a readonly tree fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 11 11:20:00 +0000 2017
>Last-Modified:  Tue Jul 11 12:31:17 +0000 2017
>Originator:     Hauke Fath
>Release:        NetBSD 8.0_BETA
>Organization:
Technische Universitaet Darmstadt
>Environment:


System: NetBSD Gstoder 8.0_BETA NetBSD 8.0_BETA (MONOLITHIC) #0: Fri Jul 7 14:26:13 CEST 2017 hf@Hochstuhl:/var/obj/netbsd-builds/8/i386/sys/arch/i386/compile/MONOLITHIC i386
Architecture: i386
Machine: i386
>Description:

	Bootstrapping pkgsrc from a readonly pkgsrc tree
	(nfs-mounted on debian linux here, but could be anything)
	results in

[...]
=> Automatic manual page handling
=> Creating binary package /local/user/pkgsrc-bootstrap/workdir/wrk/pkgtools/cwrappers/work/.packages/cwrappers-20170611.tgz
===> Building binary package for cwrappers-20170611
=> Creating binary package /misc/pkgsrc/packages/All/cwrappers-20170611.tgz
/bin/mkdir: cannot create directory `/misc/pkgsrc/packages/All': Permission denied
*** Error code 1

	At this point, you'll have to find out which variable to tweak
	(PACKAGES) and where (bootstrap/bootstrap does not allow you
	to, "env PACKAGES=/more/siotable/dir ./bootstrap" will
	do).


>How-To-Repeat:

	Bootstrap pkgsrc from a readonly nfs-mounted pkgsrc tree.


>Fix:

	Set and export WORKDIR in bootstrap script. The script should
	probably default PACKAGES to a directory below WORKDIR.



>Release-Note:

>Audit-Trail:

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.