From owner-freebsd-current Thu Jun 27 15:10:36 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA01323 for current-outgoing; Thu, 27 Jun 1996 15:10:36 -0700 (PDT) Received: from rocky.mt.sri.com (rocky.sri.MT.net [204.182.243.10]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id PAA01318 for ; Thu, 27 Jun 1996 15:10:33 -0700 (PDT) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id QAA11833; Thu, 27 Jun 1996 16:10:13 -0600 (MDT) Date: Thu, 27 Jun 1996 16:10:13 -0600 (MDT) Message-Id: <199606272210.QAA11833@rocky.mt.sri.com> From: Nate Williams To: "Jordan K. Hubbard" Cc: Scott Blachowicz , current@freebsd.org Subject: Re: Building inside of /usr/src? In-Reply-To: <7251.835912432@time.cdrom.com> References: <7251.835912432@time.cdrom.com> Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Jordan K. Hubbard writes: > > (totum)(root) # cd /usr/src/lib/libc > > (totum)(root) # unsetenv PWD > > (totum)(root) # make cleandir > > (totum)(root) # make obj > > /usr/obj/a/src/lib/libc created for /a/src/lib/libc > > AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRH > HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH > HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH > HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!! > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > > Ahem. Sorry, I feel better now! :-) > > Check this out in make: > > if ((pwd = getenv("PWD")) != NULL) { > if (stat(pwd, &sb) == 0 && sa.st_ino == sb.st_ino && > sa.st_dev == sb.st_dev) > (void) strcpy(curdir, pwd); > } > > Anyone else think that this is totally bogus and should be removed? > It certainly EXPLAINS a few things! :-) > > With all the shells in existance out there, I don't think that $PWD > should or can be trusted. Comments? Well, you already took it out, so I guess comments don't matter, but there's *probably* a reason for doing it. You're best bet would be to remove it *locally* and then test the change to see if bad things happen before spamming the repository making us find all the bugs. :( Nate