From owner-freebsd-questions@freebsd.org Tue Jan 26 17:12:54 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CB23A465E5 for ; Tue, 26 Jan 2016 17:12:54 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C7E8D1442 for ; Tue, 26 Jan 2016 17:12:53 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u0QHCfxt005029 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 26 Jan 2016 10:12:41 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u0QHCfhK005026; Tue, 26 Jan 2016 10:12:41 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 26 Jan 2016 10:12:41 -0700 (MST) From: Warren Block To: "Brandon J. Wandersee" cc: Tim Daneliuk , Terje Elde , FreeBSD Mailing List Subject: Re: [installworld] Do We need /usr/obj In-Reply-To: <86oac8fg5t.fsf@WorkBox.Home> Message-ID: References: <56A532AC.3050803@tundraware.com> <56A53AA1.1010405@tundraware.com> <9D1058C8-6599-44B7-9C20-1A0F3DA48FE0@elde.net> <56A53EC5.3040805@tundraware.com> <86zivus1yv.fsf@WorkBox.Home> <86oac8fg5t.fsf@WorkBox.Home> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Tue, 26 Jan 2016 10:12:41 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jan 2016 17:12:54 -0000 On Tue, 26 Jan 2016, Brandon J. Wandersee wrote: > > Warren Block writes: > >> On Sun, 24 Jan 2016, Brandon J. Wandersee wrote: >>> >>> Second: placing NO_CLEAN="YES" in /etc/make.conf will greatly reduce >>> build time, though using it on anything but -RELEASE would probably be a >>> bad idea. >> >> Why? I use NO_CLEAN routinely to update between versions of 10-stable. >> If there is ever a problem, it's easy enough to delete /usr/obj (faster >> than 'make clean') and try again. >> >> Actually, this is part of a fairly involved build script that automates >> the normal process. > > Well, my reasoning was that changes between builds of the releng/* > branches are fewer, farther between, and usually trivial (from a code > management perspective), while changes between builds on development > branches might involve more drastic fundamental changes, moreso the > longer one goes without building. Since the OP wants to always minimize > build time (and prefers unattended builds), the increased risk of a > failed build probably wouldn't be worth it. If a build fails one can > always just demolish what's already been built and start over, sure, but > that's not really a favorable argument if always minimizing build time > is the ultimate goal. > > But I have to admit I've never tried it, and if it works, then I stand > corrected. It rarely has a problem for me, and typically takes only a third or a fourth of the time of a clean build. That comes at the cost of having about 5G of disk space permanently tied up in /usr/obj. An unattended build should be fine, nothing harmed if it fails. I would resist doing an unattended install.