Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2002 11:50:03 -0700 (PDT)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/40448: [bmake bug] BSD make cannot find system mks (on new releases)
Message-ID:  <200207111850.g6BIo3mJ085702@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/40448; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: Alex Dupre <sysadmin@alexdupre.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, <jmallett@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207111850.g6BIo3mJ085702>