From owner-freebsd-current@FreeBSD.ORG Sat Jan 24 03:46:36 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA4601065670 for ; Sat, 24 Jan 2009 03:46:36 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 5A32A8FC17 for ; Sat, 24 Jan 2009 03:46:36 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl205-109.kln.forthnet.gr [79.103.18.109]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id n0O3QZpR032756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 24 Jan 2009 05:26:44 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n0O3QZUX017531; Sat, 24 Jan 2009 05:26:35 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n0O3QY8Q017530; Sat, 24 Jan 2009 05:26:34 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Luigi Rizzo References: <20090123233611.GA58363@onelab2.iet.unipi.it> Date: Sat, 24 Jan 2009 05:26:33 +0200 In-Reply-To: <20090123233611.GA58363@onelab2.iet.unipi.it> (Luigi Rizzo's message of "Sat, 24 Jan 2009 00:36:11 +0100") Message-ID: <877i4lo046.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: n0O3QZpR032756 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.963, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.44, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: current@freebsd.org Subject: Re: quickly build a single program ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2009 03:46:37 -0000 On Sat, 24 Jan 2009 00:36:11 +0100, Luigi Rizzo wrote: > how hard would it be to modify the build scripts so that they only try > to rebuild a single program from a tree where you already made a buildworld ? > > i usually do modifications to a single program at a time and it is > slightly annoying to wait for the build process to scan through all > the already-built programs to find there is nothing to do for them. Most of the time, when there are small changes I just change into the program's directory and `make'. But this doesn't work when there are dependencies with other parts of buildworld. > I guess one would have to override SUBDIR in the main Makefile.inc1, > and then again in the children Makefiles, taking each time the next > component of the filename... Overriding SUBDIR might be a bit hard to do `right' when there are libraries or header files involved. For example libexec/sendmail depends on stuff from contrib/ but rebuilding *only* the final `sendmail' binary may not work if it links with a stable static library like libsm.a from the OBJDIR. But it sounds like an interesting thing :)