From owner-freebsd-questions  Thu Sep 11 23:14:03 1997
Return-Path: <owner-freebsd-questions>
Received: (from root@localhost)
          by hub.freebsd.org (8.8.7/8.8.7) id XAA07858
          for questions-outgoing; Thu, 11 Sep 1997 23:14:03 -0700 (PDT)
Received: from silvia.HIP.Berkeley.EDU (ala-ca11-23.ix.netcom.com [199.35.209.183])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA07850;
          Thu, 11 Sep 1997 23:14:00 -0700 (PDT)
Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.8.7/8.6.9) id XAA28640; Thu, 11 Sep 1997 23:13:31 -0700 (PDT)
Date: Thu, 11 Sep 1997 23:13:31 -0700 (PDT)
Message-Id: <199709120613.XAA28640@silvia.HIP.Berkeley.EDU>
To: grog@lemis.com
CC: kjk1@ukc.ac.uk, questions@FreeBSD.org, ports@FreeBSD.org
In-reply-to: <19970912090848.35102@lemis.com> (message from Greg Lehey on Fri, 12 Sep 1997 09:08:48 +0930)
Subject: Re: Suggestion for ports...
From: asami@cs.berkeley.edu (Satoshi Asami)
Sender: owner-freebsd-questions@FreeBSD.org
X-Loop: FreeBSD.org
Precedence: bulk

 * > I do have a small suggestion (I haven't tried this, so it may already
 * > exist). I noticed that make uses a `work' directory to compile in. How
 * > about making it so that if make finds the file system read-only and is
 * > unable to create a work directory, it defaults to (for example)
 * > `/tmp/<portname>.work'. That way, the casual ports user can do

 * Not to my knowledge.  I'm copying FreeBSD-ports on this for other
 * opinions, but personally I don't think that's too important.  When
 * you're done, you can always do a 'make clean' to get rid of the stuff
 * you don't need.

Actually, I have been thinking about this (and some more) for some
time.  Having to be able to go to, say, /cdrom/ports/editors/emacs and 
simply say "make install clean" is nice.

However, simply redefining WRKDIR doesn't really work because there
are so many ports right now that creates files (most notably,
pkg/PLIST) in places other than that.  I am also thinking about a
mechanism to automatically "filter" them in WRKDIR so the user can sed 
it all he wants.

Satoshi