Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 23807 invoked by uid 500); 28 Nov 2002 15:13:36 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 23796 invoked from network); 28 Nov 2002 15:13:36 -0000 From: Erik =?iso-8859-1?q?Sj=F6lund?= To: dev@apr.apache.org Subject: apr-config.in bug + fix Date: Thu, 28 Nov 2002 16:12:32 +0100 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="------------Boundary-00=_WWKAHCRQU4VSTFH8L5WE" Message-Id: <200211281612.32358.erik.sjolund@home.se> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------Boundary-00=_WWKAHCRQU4VSTFH8L5WE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit I had some problems with apr-config giving back a false path. This happend because apr-config was invoked under a path name with sym links. Looking into that script I saw a line trying to filter out any symlinks of a path. thisdir="`cd $thisdir && pwd`" The problem is the pwd. In bash the built-in pwd doesn't give the physical path ( you can with option -P ) /bin/pwd is probably a better choice. The attached patch seems to fix the problem. cheers, Erik Sj�lund --------------Boundary-00=_WWKAHCRQU4VSTFH8L5WE Content-Type: text/x-diff; charset="us-ascii"; name="patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch" --- apr-config.in 2002-09-19 07:31:40.000000000 +0200 +++ apr-config.in.new 2002-11-28 15:50:21.000000000 +0100 @@ -120,9 +120,9 @@ fi thisdir="`dirname $0`" -thisdir="`cd $thisdir && pwd`" +thisdir="`cd $thisdir && env pwd`" if test -d $bindir; then - tmpbindir="`cd $bindir && pwd`" + tmpbindir="`cd $bindir && env pwd`" else tmpbindir="" fi --------------Boundary-00=_WWKAHCRQU4VSTFH8L5WE--