From owner-freebsd-current Thu Apr 19 1:49:32 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id B0F2137B422; Thu, 19 Apr 2001 01:49:17 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f3J8mrT87624; Thu, 19 Apr 2001 11:48:53 +0300 (EEST) (envelope-from ru) Date: Thu, 19 Apr 2001 11:48:53 +0300 From: Ruslan Ermilov To: Makoto MATSUSHITA Cc: current@FreeBSD.ORG, Will Andrews Subject: make -jN bug (was: Re: groff breaks "make -j N buildworld") Message-ID: <20010419114853.B84456@sunbay.com> Mail-Followup-To: Makoto MATSUSHITA , current@FreeBSD.ORG, Will Andrews References: <200104190322.f3J3M8w56668@wint.itfs.nsk.su> <200104190322.f3J3M8w56668@wint.itfs.nsk.su> <20010419110405.B75677@sunbay.com> <20010419171841Z.matusita@jp.FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010419171841Z.matusita@jp.FreeBSD.org>; from matusita@jp.FreeBSD.org on Thu, Apr 19, 2001 at 05:18:41PM +0900 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 19, 2001 at 05:18:41PM +0900, Makoto MATSUSHITA wrote: > > ru> I always thought that ``obj'', ``all'' and ``install'' should be > ru> executed in sequence, not together. Hey, this even does not work > ru> for bin/cat: > > IIRC, it is assumed that "make -jX install (where X > 1)" _doesn't_ work. > I've heard why, but I've forgotten :-) > Attached is the Makefile that demonstrates the problem. Run it like this: make obj; make all Then try: make install And then try: make -j2 install Note the difference. This fixes the problem: --- Makefile Thu Apr 19 11:33:04 2001 +++ Makefile Thu Apr 19 11:36:20 2001 @@ -8,6 +8,7 @@ beforeinstall: .SILENT cd ${.CURDIR}; \ ${INSTALL} ${COPY} -m ${NOBINMODE} Makefile ${DESTDIR}/tmp + cd ${.OBJDIR} pwd ${INSTALL} ${COPY} -m ${NOBINMODE} foo ${DESTDIR}/tmp I'm not sure if this a make(1) bug or a feature, as both NetBSD and OpenBSD behave the same. But I'm pretty sure this is a bug. Will? 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 --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=Makefile NOMAN= YES all: foo foo: touch ${.TARGET} beforeinstall: .SILENT cd ${.CURDIR}; \ ${INSTALL} ${COPY} -m ${NOBINMODE} Makefile ${DESTDIR}/tmp pwd ${INSTALL} ${COPY} -m ${NOBINMODE} foo ${DESTDIR}/tmp .include --FL5UXtIhxfXey3p5-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message