From owner-freebsd-questions@FreeBSD.ORG Thu Nov 3 20:20:33 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD905106564A for ; Thu, 3 Nov 2011 20:20:33 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp04.sth.basefarm.net (ch-smtp04.sth.basefarm.net [80.76.153.5]) by mx1.freebsd.org (Postfix) with ESMTP id 36C038FC13 for ; Thu, 3 Nov 2011 20:20:32 +0000 (UTC) Received: from c83-255-51-20.bredband.comhem.se ([83.255.51.20]:43647 helo=falcon.midgard.homeip.net) by ch-smtp04.sth.basefarm.net with esmtp (Exim 4.76) (envelope-from ) id 1RM3Xa-0003do-FF for freebsd-questions@freebsd.org; Thu, 03 Nov 2011 21:05:36 +0100 Received: (qmail 90566 invoked from network); 3 Nov 2011 21:05:32 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 3 Nov 2011 21:05:32 +0100 Received: (qmail 29709 invoked by uid 1001); 3 Nov 2011 21:05:32 +0100 Date: Thu, 3 Nov 2011 21:05:32 +0100 From: Erik Trulsson To: Robert Bonomi Message-ID: <20111103200532.GA29669@owl.midgard.homeip.net> References: <4EB2CF62.1070107@my.gd> <201111031848.pA3ImlMT019623@mail.r-bonomi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201111031848.pA3ImlMT019623@mail.r-bonomi.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: 83.255.51.20 X-Scan-Result: No virus found in message 1RM3Xa-0003do-FF. X-Scan-Signature: ch-smtp04.sth.basefarm.net 1RM3Xa-0003do-FF e30351d4e84015a844999fd9329dbca8 Cc: freebsd-questions@freebsd.org Subject: Re: Is it safe to interrupt (Ctrl + C) while building a port or kernel? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2011 20:20:33 -0000 On Thu, Nov 03, 2011 at 01:48:47PM -0500, Robert Bonomi wrote: > > On Thu, 03 Nov 2011 18:29:06 +0100, Damien Fleuriot > On 11/3/11 6:20 PM, Robert Bonomi wrote: > > >> From owner-freebsd-questions@freebsd.org Thu Nov 3 12:10:08 2011 > > >> From: =?koi8-r?B?4c7Uz84g68zF09M=?= > > >> To: freebsd-questions@freebsd.org > > >> Date: Thu, 03 Nov 2011 21:10:19 +0400 > > >> Subject: Is it safe to interrupt (Ctrl + C) while building a port or kernel? > > >> > > >> Sometimes, while building process of some port or system kernel are in progress, you suddenly remember that you did something wrong and have to stop, solve your mistake and start one more time. > > >> > > >> Is it clear to interrupt the building process just by pressing Ctrl + ? > > > > > > Yes. > > > > > >> If it's so, do I need to run "make clean" before I start "make" one more time? > > > > > > Authoritative answer: "It depends". > > > > > > On what you 'did wrong", and what it takes to fix it. > > > > > > e.g., if you're building a kernel the 'classial' way, that is 'configure, > > > make depend, cd , make', and realize you left something out of the config > > > file, after you edit the config file, you have to rerun _all_ those steps. > > > > > > > Is it even advisable to build the kernel the "old" way ? > > On a slow processor, it makes a *BIG* differnence. > Even more so if you build everything you need into the kernel. > > 'make buildkernel' always recompiles an relinks *everything*. whether or > not any dependenies for the module have changed. If that is a problem then just use 'make -DNO_CLEAN buildkernel' and it won't reompile stuff that doesn't need to be recompiled. (Works for buildworld as well.) -- Erik Trulsson ertr1013@student.uu.se