From owner-freebsd-current Sun May 19 6:59:11 2002 Delivered-To: freebsd-current@freebsd.org Received: from durham-ar1-4-64-252-019.durham.dsl-verizon.net (durham-ar1-4-64-252-019.durham.dsl-verizon.net [4.64.252.19]) by hub.freebsd.org (Postfix) with SMTP id 2FD2637B407 for ; Sun, 19 May 2002 06:59:06 -0700 (PDT) Received: (qmail 14401 invoked by uid 1001); 19 May 2002 14:00:04 -0000 Date: Sun, 19 May 2002 14:00:04 +0000 From: "J. Mallett" To: Bernd Walter Cc: "J. Mallett" , freebsd-current@FreeBSD.ORG Subject: Re: make(1) patch to ReadMakefile() to use realpath(3) Message-ID: <20020519140003.GA19399@FreeBSD.ORG> References: <20020519100420.GA8356@FreeBSD.ORG> <20020519132159.GI44753@cicely5.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020519132159.GI44753@cicely5.cicely.de> User-Agent: Mutt/1.3.27i Organisation: The FreeBSD Project Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, May 19, 2002 at 03:21:59PM +0200, Bernd Walter wrote: > Why do people think that a realpath is always available? Because the manual page doesn't say it isn't. > What is wrong with just extending using pwd? That won't handle . and .. and relative paths spanning symbolic links, which you may or may not want to see in the output, etc. > And maybe optionally stripping .. and . elements if wanted. The ODE make(1) as seen in CMU buildtools4 did this by hand, there's no reason we couldn't either, except someone would likely come along and use realpath(3) in place of it at a later date. That's what I did to ODE. > At least pwd doesn't break amd(8) pathnames. How does realpath _break_ amd(8) pathnames? I'm not very familiar with any functionality that would cause this. If realpath(3) gets broken, that sounds like we either need some new conditions in realpath(3), or we need to fix amd(8) paths. > It became nearly impossible to use amd(8) today just because of all that > realpath introduced breakage. To what end? More information is helpful. Thanks. -- jmallett@FreeBSD.org | C, MIPS, POSIX, UNIX, BSD, IRC Geek. http://www.FreeBSD.org | The Power to Serve Vote for me for FreeBSD core or the cute little bunny gets it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message