From owner-freebsd-current Thu Jun 27 21:04:14 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA03986 for current-outgoing; Thu, 27 Jun 1996 21:04:14 -0700 (PDT) Received: from critter.tfs.com (critter.cdrom.com [204.216.27.38]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id VAA03980; Thu, 27 Jun 1996 21:04:11 -0700 (PDT) Received: from critter.tfs.com (localhost [127.0.0.1]) by critter.tfs.com (8.7.5/8.7.3) with ESMTP id UAA25308; Thu, 27 Jun 1996 20:24:13 -0700 (PDT) To: "Jordan K. Hubbard" cc: "Rodney W. Grimes" , nate@mt.sri.com, scott@statsci.com, current@FreeBSD.ORG Subject: Re: Building inside of /usr/src? In-reply-to: Your message of "Thu, 27 Jun 1996 20:27:25 PDT." <1570.835932445@time.cdrom.com> Date: Thu, 27 Jun 1996 20:24:12 -0700 Message-ID: <25306.835932252@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <1570.835932445@time.cdrom.com>, "Jordan K. Hubbard" writes: >> If you read the comments above this section of code, and have worked on >> asymetric AMD managed user home directory systems, and used pmake >> in parallel mode on these systems it would be clear as to why it if >> preferintial to use $PWD if $PWD infact resolves to the sameplace as >> getcwd(). > >But PWD can't be trusted, as we've already seen. How would you >suggest that we GUARANTEE that $PWD and getcwd() return the same >contents? It's useless otherwise since you'll have different >invocations of the build return totally different obj directories and >the only reason this didn't become a problem before was because the >"window" for failure was narrower - you had to have a bogus $PWD at >the time you built the links rather than just at any time. This was discussed when this piece of code went in. If you want to make sure you get the "canonical" path, you need to unset PWD before calling getcwd(). It was then (check commit-logs, probably the old cvstree) accepted, abeit with some grumblings. It saves a LOT of time. -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.