From owner-freebsd-questions Sun Feb 23 0:33:28 2003 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 8E99737B401 for ; Sun, 23 Feb 2003 00:33:26 -0800 (PST) Received: from falcon.midgard.homeip.net (h76n3fls20o913.telia.com [213.67.148.76]) by mx1.FreeBSD.org (Postfix) with SMTP id 46E8843F93 for ; Sun, 23 Feb 2003 00:33:24 -0800 (PST) (envelope-from ertr1013@student.uu.se) Received: (qmail 71471 invoked by uid 1001); 23 Feb 2003 08:33:17 -0000 Date: Sun, 23 Feb 2003 09:33:17 +0100 From: Erik Trulsson To: Terry J Dunlap Jr Cc: FreeBSD Questions Subject: Re: Compiling Question Message-ID: <20030223083317.GA71439@falcon.midgard.homeip.net> Mail-Followup-To: Terry J Dunlap Jr , FreeBSD Questions References: <002501c2dae6$a6631600$0201a8c0@barney> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002501c2dae6$a6631600$0201a8c0@barney> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 22, 2003 at 09:52:48PM -0500, Terry J Dunlap Jr wrote: > Hi all! > > Tonight I synced my source with Release 4.7 and recompiled. Prior to > recompiling, I modified the make.conf file to NOT compile a number of items, > like games, sendmail, etc. I'd like to try to build a lean system from > source. > > After the entire source compilation process, I still found those items on my > system. A review of the man page for make.conf leads me to believe that > those items did not compile, yet the old versions still remain on the > system. Am I correct? Yes, you are correct. The buildworld/installworld does not remove old files that are not overwritten by new files. > > If this is true, how does one go about compiling a lean system with the > essentials only? Can the make.conf file be modified in such a way to remove > items from the system, like sendmail, games, etc.? I read the man page for > make.conf then searched it for the word "remove", but nothing is there. There is no option for that. You will have to delete the undesired files by hand. (Using 'ls -t' can be useful to find files that are older than the latest installworld. Just be careful: Some files (especially the include files) are normally not touched unless they have been changed. The purpose of the various NO_XXXXX options in make.conf is not primarily to allow for a minimal system but rather to either a) Not spend a lot of time compiling unused components (on modern systems this is not much of a problem, but on old machines it can make quiet a difference in compile time.) b) Not overwrite programs where the user might have (by hand or port) installed a newer version than that available in the base system. And before you ask: Yes, an option to remove files that are excluded from compilation by NO_XXXXX options would be useful but so far no such mechanism exists. Patches would probably be welcomed. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message