From owner-freebsd-current@FreeBSD.ORG Sun Jan 25 07:41:38 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 7219A106566B for ; Sun, 25 Jan 2009 07:41:38 +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 D5F368FC0A for ; Sun, 25 Jan 2009 07:41:37 +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 n0P7fObn013529 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 25 Jan 2009 09:41:30 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n0P7fO9S025429; Sun, 25 Jan 2009 09:41:24 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n0P7fMbR025428; Sun, 25 Jan 2009 09:41:22 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Luigi Rizzo References: <20090123233611.GA58363@onelab2.iet.unipi.it> <877i4lo046.fsf@kobe.laptop> <20090125072341.GA22319@onelab2.iet.unipi.it> Date: Sun, 25 Jan 2009 09:41:22 +0200 In-Reply-To: <20090125072341.GA22319@onelab2.iet.unipi.it> (Luigi Rizzo's message of "Sun, 25 Jan 2009 08:23:41 +0100") Message-ID: <877i4j7rz1.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: n0P7fObn013529 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.991, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.41, 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: Sun, 25 Jan 2009 07:41:38 -0000 On Sun, 25 Jan 2009 08:23:41 +0100, Luigi Rizzo wrote: >On Sat, Jan 24, 2009 at 05:26:33AM +0200, Giorgos Keramidas wrote: >>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. > > ... or when you work on a different tree than the one installed, > unless there is an easy way to set the environment variables > to point to the correct toolchain and headers/libraries ? > > Maybe that's all i need in the end. Yes, that would probably be nice. We have `make buildenv' now, but IIRC it does not actually *build* anything. It only set up environment vars to point to the correct places in /usr/obj and spawns sh. I think it may be useful to add a few bits in `Makefile.inc1' to actually *build* the stages up to _depend with -DNO_CLEAN and then spawn a shell. That would be cool :-)