From owner-freebsd-questions@FreeBSD.ORG Wed Aug 26 01:16:40 2009 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 00635106568B for ; Wed, 26 Aug 2009 01:16:39 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-bw0-f206.google.com (mail-bw0-f206.google.com [209.85.218.206]) by mx1.freebsd.org (Postfix) with ESMTP id 85BDA8FC1A for ; Wed, 26 Aug 2009 01:16:39 +0000 (UTC) Received: by bwz2 with SMTP id 2so2148971bwz.43 for ; Tue, 25 Aug 2009 18:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=LgtECowNGr6yHPYke+gfFpErHr0RGSkbuAM5DNxKF3I=; b=gIFMc5JzfEnQrEUheHdaHaDKkrmYegry0/axzz/6VFhd5lA0I+1II8TE6WZeZcquNX kG4bmD+zfpIWMaqfvW+U+WQ2RdEcA+xUA+TtZ6+wvuPHUBnweM+/wpA0+heiQ8d3tnWo SIjFFls076IT+UsInzTAybN7SavuUUk/VbE8A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=tNbxQydVrsdh5UgL6LUgpW5kMBH1SnRJ1Q2LGkF+MWdahPlktyl6r6YjNA9evHcu72 qGg53iD8C+t+cbaLYtj4MlG4xW/wxSacKh5OaSr3aGc+0Z0xKwaioeOjCoGVJ0QIIH2z dr4PLmqi+EjnQabIz0aQ2PRoCoZIzR0Mx2qRg= MIME-Version: 1.0 Received: by 10.239.130.160 with SMTP id 32mr681517hbj.58.1251249398149; Tue, 25 Aug 2009 18:16:38 -0700 (PDT) Date: Wed, 26 Aug 2009 01:16:38 +0000 Message-ID: From: "b. f." To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: src.conf and cleaning up of base? 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: Wed, 26 Aug 2009 01:16:40 -0000 >I enabled a few WITHOUT_ options in src.conf. However, the >binaries for that still exists after a installworld. Is there an >automatic way to "clean up" the base install? Yes and no. These files are supposed to be removed by running: make delete-old make delete-old-libs (see /usr/src/UPDATING). However, some of the less-commonly used knobs from src.conf do not receive routine testing, and are broken: either they break the build, or they leave files behind. There are PRs for some of these problems, and others remain to be fixed. The best solution for now is to run the commands above, and then do a separate cleaning of the base system, using the timestamps as a guide. Here find(1) is your friend. I usually use something like: find /bin /sbin /lib /libexec /rescue /usr/bin /usr/sbin /usr/include /usr/lib /usr/lib32 \ /usr/libdata /usr/libexec /usr/share ! -ctime 1 soon after the installation, and then inspect the output before deleting. Be careful when cleaning, and don't forget that there are a few commonly-installed ports, like perl, that leave important files in base system directories. b.