From owner-freebsd-questions@freebsd.org Sat Dec 12 22:40:44 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BC095A14E7A for ; Sat, 12 Dec 2015 22:40:44 +0000 (UTC) (envelope-from schultz@ime.usp.br) Received: from iris.ime.usp.br (iris.ime.usp.br [143.107.45.5]) by mx1.freebsd.org (Postfix) with ESMTP id 793FC1C15 for ; Sat, 12 Dec 2015 22:40:44 +0000 (UTC) (envelope-from schultz@ime.usp.br) Received: from hpmini (unknown [187.65.219.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: schultz@iris.ime.usp.br) by iris.ime.usp.br (Postfix) with ESMTPSA id 1EF65290099B; Sat, 12 Dec 2015 20:40:39 -0200 (BRST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ime.usp.br; s=mail; t=1449960042; bh=B/ajRQlJgJidzEc/ValExW5d9RiAHgL2hEpRXoOIAnw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IDvBs6pSfVR5ip1YTPaaSExPRWHd4Ilm2c7G7QIQdxu04ZBKdyU3VfJPkJIemu+dj wQtQ39VcqHOn/ruiaqgukP/CVyKf9I9hMZM759RPx5FEyTCn56L/FDFYyn64TUBofj 6NUrW7hhPwNV68PiG8pucYtCyrrY03In52EHXcV8= Date: Sat, 12 Dec 2015 20:42:26 -0200 From: =?utf-8?B?THXDrXM=?= Fernando Schultz Xavier da Silveira To: Anton Sayetsky Cc: freebsd-questions@freebsd.org Subject: Re: Cleaning obsolete files after make installworld Message-ID: <20151212224226.GA4884@hpmini> References: <20151205201107.GA19335@hpmini> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on iris.ime.usp.br X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Dec 2015 22:40:44 -0000 Hi, Actually, I do not think what you said is quite right. The ObsoleteFiles.inc file seems to include only files that have been made obsolete because of a package upgrade. My problem is different. Suppose you just installed FreeBSD. Now you decide you do not want stack smashing protection or the sendmail program in the system, so you put WITHOUT_SENDMAIL = WITHOUT_SSP = in /etc/src.conf. When you recompile the system and issue `make installworld`, you expect the sendmail executable and the file /usr/lib/libssp_nonshared.a to be gone, but they do in fact remain in the system causing several problems. What I wish to know is what is the standard procedure for removing those files. It not wise to leave old files lingering in the system. Thanks, Luís Fernando On Sat, Dec 05, 2015 at 10:40:51PM +0200, Anton Sayetsky wrote: > Standard procedure is filing a PR, because it's a BUG. Someone adds > WITHOUT_XXX option and forgets to update ObsoleteFiles.inc. > > 2015-12-05 22:11 GMT+02:00 Luís Fernando Schultz Xavier da Silveira > : > > Hi, > > > > I have edited /etc/src.conf to remove software which is not useful > > to me. After compiling and installing the world, I have launched the > > check-old, delete-old and delete-old-libs targets of /usr/src/Makefile. > > > > However, several old files still remain in the system. For example, > > I have included WITHOUT_INETD in /etc/src.conf, but after peforming the > > above procedure, the file /usr/sbin/inetd was still there, with a > > modification time that predates the installation of the system. > > > > What is the standard procedure for removing these stale files? > > I have used the -mtime option of find to locate and remove them, but > > I doubt this is the recommended approach. > > > > Thanks. > > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >