Subject: Re: cross compile with different username
To: None <current-users@netbsd.org,>
From: Cherry G. Mathew <cherry.g.mathew@gmail.com>
List: current-users
Date: 12/30/2006 19:16:48
On 12/30/06, Cherry G. Mathew <cherry.g.mathew@gmail.com> wrote:
> Hi,
>
>
> I've checked out the cvs source as login: cherry
>
> for builds, I login as : code:
>
> when I try to cross-build the tree from linux using $SRCDIR/build.sh
> -m ia64 tools
>
> code@loonix:~$ /home/cherry/code/NetBSD/src/build.sh -mi386 tools
> ===> build.sh command: /home/cherry/code/NetBSD/src/build.sh -mi386 tools
> ===> build.sh started: Sat Dec 30 19:49:18 GMT 2006
> ===> HOST_SH:          /bin/sh
> ===> No nonexistent/bin/nbmake, needs building.
> ===> Bootstrapping nbmake
> /bin/sh: Can't open /tools/make/configure
>
> ERROR: Configure of nbmake failed
> *** BUILD ABORTED ***
>
> the same thing works as root:
>
> root@loonix:/home/code# /home/cherry/code/NetBSD/src/build.sh -mia64 tools
> ===> build.sh command: /home/cherry/code/NetBSD/src/build.sh -mia64 tools
> ===> build.sh started: Sat Dec 30 19:50:13 GMT 2006
> ===> HOST_SH:          /bin/sh
> ===> No nonexistent/bin/nbmake, needs building.
> ===> Bootstrapping nbmake
> checking for sh... /bin/sh
> checking for gcc... cc
> checking for C compiler default output... a.out
> checking whether the C compiler works... yes
>
> I see a comment within build.sh:165
>  # XXX Except that doesn't work on Solaris. Or many Linuces.
>
> Anybody else see this ?
>
> --
> ~Cherry
>

Ok. Now I haven't got the faintest idea why this worked, p'haps a bug
in the shell ?

Later,

-- 
~Cherry


Index: build.sh
===================================================================
RCS file: /cvsroot/src/build.sh,v
retrieving revision 1.155
diff -u -r1.155 build.sh
--- build.sh    16 Dec 2006 02:59:33 -0000      1.155
+++ build.sh    30 Dec 2006 19:15:36 -0000
@@ -165,8 +165,8 @@
        # XXX Except that doesn't work on Solaris. Or many Linuces.
        #
        unset PWD
-       TOP=$(/bin/pwd -P 2>/dev/null || /bin/pwd 2>/dev/null)
-
+       TOP=$(pwd -P 2>/dev/null || pwd 2>/dev/null)
+
        # The user can set HOST_SH in the environment, or we try to
        # guess an appropriate value.  Then we set several other
        # variables from HOST_SH.