From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 1 13:20:03 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAFAD106566C for ; Mon, 1 Mar 2010 13:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2CD898FC0C for ; Mon, 1 Mar 2010 13:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o21DK2i6036280 for ; Mon, 1 Mar 2010 13:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o21DK2kB036279; Mon, 1 Mar 2010 13:20:02 GMT (envelope-from gnats) Date: Mon, 1 Mar 2010 13:20:02 GMT Message-Id: <201003011320.o21DK2kB036279@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Garrett Cooper Cc: Subject: Re: bin/144388: different behavior of make(1) between command line argument and .MAKEFLAGS special target X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Garrett Cooper List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 13:20:03 -0000 The following reply was made to PR bin/144388; it has been noted by GNATS. From: Garrett Cooper To: Jui-Nan Lin Cc: "FreeBSD-gnats-submit@FreeBSD.org" Subject: Re: bin/144388: different behavior of make(1) between command line argument and .MAKEFLAGS special target Date: Mon, 1 Mar 2010 05:14:20 -0800 On Mar 1, 2010, at 4:09 AM, Jui-Nan Lin wrote: > >> Number: 144388 >> Category: bin >> Synopsis: different behavior of make(1) between command line >> argument and .MAKEFLAGS special target >> Confidential: no >> Severity: non-critical >> Priority: low >> Responsible: freebsd-bugs >> State: open >> Quarter: >> Keywords: >> Date-Required: >> Class: sw-bug >> Submitter-Id: current-users >> Arrival-Date: Mon Mar 01 12:10:04 UTC 2010 >> Closed-Date: >> Last-Modified: >> Originator: Jui-Nan Lin >> Release: FreeBSD 8.0-RELEASE-p2 amd64 >> Organization: > FreeBSD Taiwan >> Environment: > System: FreeBSD Florence.tamama.org 8.0-RELEASE-p2 FreeBSD 8.0- > RELEASE-p2 #8: Thu Jan 7 11:34:24 CST 2010 root@Florence.tamama.org:/ > usr/obj/usr/src/sys/KERNEL amd64 > >> Description: > There's different behavior of specifying -j1 in command line > argument and special target ".MAKEFLAGS" >> How-To-Repeat: > > # cat Makefile > .MAKEFLAGS: -j1 > > all: > @/bin/sleep 10 & > @/bin/sleep 10 & > @wait > # time make > 0.000u 0.006s 0:00.01 0.0% 0+0k 0+0io 0pf+0w > # time make -j1 > 0.000u 0.006s 0:10.00 0.0% 0+0k 0+0io 0pf+0w >> Fix: > The behavior should be the same. (running for 10 seconds) Can you try adding a line continuation (\) to lines 1 and 2, and remove the @ from lines 2 and 3? I agree that behavior should be the same, or at least in the same ballpark, but I think the former version (0 seconds) is correct. Thanks, -Garrett