From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 5 13:30:03 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 867451065672 for ; Tue, 5 Oct 2010 13:30:03 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 10AFE8FC13 for ; Tue, 5 Oct 2010 13:30:02 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3B163.dip.t-dialin.net [87.179.177.99]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id A93E184400C; Tue, 5 Oct 2010 15:29:57 +0200 (CEST) Received: from webmail.leidinger.net (unknown [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 83B5A1726; Tue, 5 Oct 2010 15:29:51 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o95DTpht064591; Tue, 5 Oct 2010 15:29:51 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 05 Oct 2010 15:29:50 +0200 Message-ID: <20101005152950.16797j1h6ygogi88@webmail.leidinger.net> Date: Tue, 05 Oct 2010 15:29:50 +0200 From: Alexander Leidinger To: rank1seeker@gmail.com References: <20101004122325.11342p9v1rnwp6w4@webmail.leidinger.net> <20101004123629.GA4308@straylight.ringlet.net> <20101005113423.10801orcw6xef9s0@webmail.leidinger.net> <20101005.124823.093.1@DEV> In-Reply-To: <20101005.124823.093.1@DEV> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: A93E184400C.A63D9 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=1.274, required 6, autolearn=disabled, RDNS_NONE 1.27) X-EBL-MailScanner-SpamScore: s X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1286890199.24479@her5jXqYxqact/cVl4mjVA X-EBL-Spam-Status: No X-Mailman-Approved-At: Tue, 05 Oct 2010 14:03:15 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Improve OptionalObsoleteFiles.inc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 13:30:03 -0000 Quoting rank1seeker@gmail.com (from Tue, 05 Oct 2010 14:48:23 +0200): > ----- Original Message ----- > From: Alexander Leidinger > To: Gonzalo Nemmi > Cc: freebsd-hackers@freebsd.org > Date: Tue, 05 Oct 2010 11:34:23 +0200 > Subject: Re: Improve OptionalObsoleteFiles.inc >> As the one who wrote the functionailty: The delete-old stuff is >> designed to delete stuff which was installed by an installworld (or >> similar) before, but is not installed by installworld (or similar) >> now. As there may be old programs around which depend upon such a file >> or directory, you have to explicitely tell if you are ok to delete it >> or not (it is the responsability of the administrator to make sure >> everything is OK). If you are sure no program still depends upon it >> (make check-old), you can specify -DBATCH_DELETE_OLD_FILES to delete >> everything without being asked (see "man build"). >> >> As we've read in this thread that the files I would like to keep are >> not installed by an installworld if the corresponding option is >> specified, the patch is 100% correct and Peter and you want to use >> delete-old for something it was not designed for (and I should discuss >> somewhere else to install the files I talked about even if the >> corresponding option is specified). > ~2 months ago I've opened a thread called: Deinstalling parts of base > Take a look here: > http://forums.freebsd.org/showthread.php?t=17860 We do not have a target which allows to go to src/bin/XXX and run "make deinstall" or similar. What is correctly written in this thread is that "make check-old" and "make delete-old" (and "make delete-old-libs") is supposed to do what you want (given that there is already support in the src to exclude this part of FreeBSD during installation). The most up-to-date version is in -current, I do not know about the stable branches (I do not monitor if people which change the corresponding file have merged the changes to stable branches or not). What may not be 100% correct in src is the list of files to delete (= a bug). For this the suggestion in the thread is also correct, if there is something which does not work please send a PR. It would be great if you specify which files are left over or even better provide a patch for the /usr/src/tools/build/mk/OptionalObsoleteFiles.inc file (it's not hard to add files there, you just have to follow the real-world-examples there). Attention: only stuff which is already supported to be skipped during installworld belongs there. So if you specify WITHOUT_XXX and you do an installworld into a scratch-area (with "make installworld DESTDIR=/path/to/scratch" it shall not show up there). Bye, Alexander. -- Haste makes waste. -- John Heywood http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137