, Greywolf <greywolf@starwolf.com>
From: Kazushi (Jam) Marukawa <jam@pobox.com>
List: current-users
Date: 10/29/2003 22:17:13
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.
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