From owner-freebsd-bugs Thu Jul 11 11:50: 7 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0532A37B400 for ; Thu, 11 Jul 2002 11:50:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B664C43E31 for ; Thu, 11 Jul 2002 11:50:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6BIo3JU085703 for ; Thu, 11 Jul 2002 11:50:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6BIo3mJ085702; Thu, 11 Jul 2002 11:50:03 -0700 (PDT) Date: Thu, 11 Jul 2002 11:50:03 -0700 (PDT) Message-Id: <200207111850.g6BIo3mJ085702@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: bin/40448: [bmake bug] BSD make cannot find system mks (on new releases) Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/40448; it has been noted by GNATS. From: Bruce Evans To: Alex Dupre Cc: FreeBSD-gnats-submit@FreeBSD.ORG, Subject: Re: bin/40448: [bmake bug] BSD make cannot find system mks (on new releases) Date: Fri, 12 Jul 2002 04:52:14 +1000 (EST) On Thu, 11 Jul 2002, Alex Dupre wrote: > >Description: > On fresh installs of FreeBSD 4.6-STABLE (I tried with a 20020704-JPSNAP) bmake > has a different behaviour (I think it's a bug). It seems it cannot find system > makefiles, like bsd.lib.mk, located in /usr/share/mk. This avoids correct > building of some ports (until now I discovered pdflib and gd2...for the first > it's enough to use gmake, for the second I had to put complete paths to find > the mks), but I think it's more serious than that. > > >How-To-Repeat: > I tried to run "make -f bsd.lib.mk -d A" on an "old" machine and on the new > one, from my home dir. The outputs become to differ here: I think this _was_ a bug. I think "make -f foo" says to search for the makefile named "foo" in the current directory only. It was searched for in system directories, so bsd.lib.mk was found. This was fixed in rev.1.35.2.5 of make/main.c. "foo" is still searched for in the object directory. So is "./foo". The search order is undocumented. This is probably related to the bug that .depend is searched for in the current directory and the object directory in an undocumented order. Stale .depend files in the current directory can cause very confusing problems. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message