Subject: Re: read-only pkgsrc
To: Jan Schaumann <>
From: Julio M. Merino Vidal <>
List: tech-pkg
Date: 04/05/2004 16:30:42
On Mon, 5 Apr 2004 10:17:20 -0400
Jan Schaumann <> wrote:

> Hi,
> I think Grant mentioned this before:  at the moment, pkgsrc can't be
> read-only because even with WRKOBJDIR set, it will create symlinks for
> the workdir.  The attached patch fixes this by allowing the user to set
> PKGSRC_READONLY, and, if that is set, default to /tmp as
> WRKDIR_BASENAME.  With PKGSRC_READONLY set, we might want to consider
> some more defaults: DISTDIR, PACKAGES, ... ?

I've used pkgsrc in read-only mode lots of times, without problems.
Just try pkg_comp, which (by default) mounts the real pkgsrc as read-only
using mount_null.


Julio M. Merino Vidal <>
The NetBSD Project -