Subject: Re: bsd.man.mk minute change
To: None <10.50@free.fr>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: current-users
Date: 05/19/2005 21:15:28
On Thu, 2005-05-19 at 19:33 +0200, Vincent wrote:
> Hi to all,
> 
> I tried today to cross-build an AMD64 kernel + userland on a standard 
> i386 machine. It fails when building 'mv' during the manpage 
> compilation. The reason is this part of the bsd.man.mk script: "[…] && 
> mv mv.3.tmp mv.3" because mv is erroneously taken to be the freshly 
> cross-compiled 'mv' instead of the "genuine" mv in /bin/mv.
> 
> There is a simple fix, that is replacing the 'mv' by '/bin/mv', which 
> garantees that the correct version of 'mv' is used, regardless of the 
> order recorded in $PATH. Could it be implemented, or is it inappropriate?

You'd also need to fix many other occurrences of commands invoked
without their absolute location; that same line is invoking 'cat in the
same way.  A simpler solution could be to force PATH to a sane value
from build.sh (or at least remove problematic components from it).

Cheers,

PS: You ought not to have . in the PATH...

-- 
Julio M. Merino Vidal <jmmv84@gmail.com>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/