Date: Wed, 24 Oct 2001 09:59:32 +0300 From: Ruslan Ermilov <ru@FreeBSD.ORG> To: Mark Murray <mark@grondar.za> Cc: Peter Wemm <peter@wemm.org>, David Wolfskill <david@catwhisker.org>, current@FreeBSD.ORG Subject: Re: It's baaack... -- ("make: don't know how to make copies. Stop") Message-ID: <20011024095932.B92032@sunbay.com> In-Reply-To: <200110231943.f9NJhTY15110@grimreaper.grondar.org>; from mark@grondar.za on Tue, Oct 23, 2001 at 08:43:29PM %2B0100 References: <20011023152715.54182380A@overcee.netplex.com.au> <200110231943.f9NJhTY15110@grimreaper.grondar.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 23, 2001 at 08:43:29PM +0100, Mark Murray wrote: > > David Wolfskill wrote: > > > Found this in my typescript after a "make installworld" on today's > > > > There was a commit about a problem with a missing NOOBJ.. > > May I suggest either: > > - rm -rf /usr/obj/* > > - cd src/share; cd `make -V .OBJDIR`; rm -rf * (check that its not your > > srcdir first :-). > > Actually, it is possible for there to be no copies: target in > src/share/examples/<something>. The copies: (actually copies::) > target is built up in a .for loop that may be empty. > > The fix is a dummy copies:: target. > We don't descend that far into examples/<something>, we just stay in "examples" and build DIRS list dynamically. The problem is that even after my fix to examples/ipfilter/Makefile (which added NOOBJ to ipfilter subdir), the old "make world" may have left the .OBJDIR for examples/ipfilter. What it means for "examples" is that .OBJDIR != .CURDIR (as implied by the NOOBJ hint). The solution is to remove the stale objdir, as Peter have suggested. My (safe) version thus looks like this: cd /usr/src/share/examples; \ [ `make -V .OBJDIR ` != `make -V .CURDIR` ] && rm -rf `make -V .OBJDIR` Mark, please back your 1.32 revision from share/examples/Makefile out, as it only hides the problem with a wrong .OBJDIR. In the presence of the .OBJDIR for share/examples and revision 1.32, we just end up not installing anything from examples/* subdirs. Compare: # cd /usr/src/share/examples # mkdir /usr/obj/usr/src/share/examples # make -n copies # rmdir /usr/obj/usr/src/share/examples # make -n copies Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011024095932.B92032>