Subject: toolchain/33836: crossbuild on FC5 fails: pwd doesn't do -P
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Bucky Katz <bucky@picovex.com>
List: netbsd-bugs
Date: 06/27/2006 01:45:01
>Number:         33836
>Category:       toolchain
>Synopsis:       pwd does not support -P on Fedora Core
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 27 01:45:00 +0000 2006
>Originator:     Bucky Katz
>Release:        NetBSD 3.99.20
>Organization:
picovex
>Environment:
Linux Crossdevelopment on Fedora Core 5
>Description:
	build.sh fails on Fedora Core because FC pwd does not support the -P option.

>How-To-Repeat:
	using a pristine NetBSD 3.0-current tree on Fedora core, try
        ./build.sh -m evbarm tools
>Fix:

Index: netbsd_quilt/src/build.sh
===================================================================
--- netbsd_quilt.orig/src/build.sh	2006-05-10 09:43:05.000000000 -0700
+++ netbsd_quilt/src/build.sh	2006-05-10 09:43:33.000000000 -0700
@@ -87,7 +87,7 @@
 	# XXX Except that doesn't work on Solaris.
 	#
 	unset PWD
-	TOP=$(/bin/pwd -P 2>/dev/null)
+	TOP=$(/bin/pwd 2>/dev/null)
 
 	# Set defaults.
 	#