From owner-freebsd-questions@FreeBSD.ORG Fri Jul 11 09:50:43 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11E5437B401 for ; Fri, 11 Jul 2003 09:50:43 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id E961743F85 for ; Fri, 11 Jul 2003 09:50:41 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h6BGob2M098157; Fri, 11 Jul 2003 11:50:37 -0500 (CDT) (envelope-from dan) Date: Fri, 11 Jul 2003 11:50:37 -0500 From: Dan Nelson To: Jonathan Message-ID: <20030711165037.GC75508@dan.emsphone.com> References: <3F0EE62D.4010507@sirtis.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F0EE62D.4010507@sirtis.org.uk> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: freebsd-questions@freebsd.org Subject: Re: make continent X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2003 16:50:43 -0000 In the last episode (Jul 11), Jonathan said: > Having been using FreeBSD for a fair few years now, I quite happily > do a buildworld every now and then but one of the mysteries for me is > how to rebuild parts of the OS in isolation. > > My only interest in this is when a security update comes out and it > might only affect a certain part of the source tree. > > I appreciate that in the BSD model, the idea is that a widget can get > changed and making world will allow the new features of that widget > to permeate to all code, but is there any information on how to go > into the various "continents" and build those on their own? For most stuff, you can simply cd into /usr/src/usr.bin/programname, or /usr/src/lib/libname, and run "make obj && make depend && make && make install". If you rebuild a library, though, it's up to you to make sure that you also rebuild any statically-linked programs using that library. There may also be issues where buiding one program may require another program to be updated (the texinfo stuff, for example, or a new copy of sed or make). The reason there's a "make world" is to ensure that all these dependencies are taken care of. -- Dan Nelson dnelson@allantgroup.com