Subject: Re: build breaks w/ read-only sources
To: Kazushi Marukawa <jam@pobox.com>
From: Luke Mewburn <lukem@NetBSD.org>
List: current-users
Date: 10/30/2003 17:14:10
On Wed, Oct 29, 2003 at 10:17:13PM -0600, Kazushi Marukawa wrote:
  |    On Oct 30, 14:08, Luke Mewburn wrote:
  |    > Subject: Re: build breaks w/ read-only sources
  |    > That's weird.
  |    > 
  |    > Could you try a different directory than '/usr/obj' as the argument
  |    > to -O ?
  | 
  |    On Oct 29, 19:56, Greywolf wrote:
  |    > Subject: Re: build breaks w/ read-only sources
  |    > To chime in,
  |    > 
  |    > I do, and using -O with automounts does not work as expected.  I *have
  |    > to* use -M, and then I end up with some UGGGGGLLLEEEEEE paths!
  | 
  | Thanks for the good advices.  I sniffed around little deeper.
  | And, I think I find the solution.  A patch is this.  I
  | submitted send-pr too.  I'm compiling everything again to
  | see it works or not.  :-)
  | 
  | The key is pwd.  A "pwd" of our recent /bin/sh is internal
  | command and the value is cached.

Have you just tried "TOP=$(pwd -P)" as a replacement for those 5
lines?

  | 
  | Index: build.sh
  | ===================================================================
  | RCS file: /cvsroot/src/build.sh,v
  | retrieving revision 1.122
  | diff -u -r1.122 build.sh
  | --- build.sh	2003/10/26 03:12:21	1.122
  | +++ build.sh	2003/10/30 04:09:30
  | @@ -90,7 +90,7 @@
  |  	if [ "${uname_s}" = "SunOS" ]; then
  |  		TOP=$(pwd -P)
  |  	else
  | -		TOP=$(pwd)
  | +		TOP=$(/bin/pwd)
  |  	fi
  |  
  |  	# Set defaults.
  | 
  | -- Kazushi