Date: Tue, 05 Oct 2010 15:29:50 +0200 From: Alexander Leidinger <Alexander@Leidinger.net> To: rank1seeker@gmail.com Cc: freebsd-hackers@freebsd.org Subject: Re: Improve OptionalObsoleteFiles.inc Message-ID: <20101005152950.16797j1h6ygogi88@webmail.leidinger.net> In-Reply-To: <20101005.124823.093.1@DEV> References: <AANLkTikXQmzE4r8wNbxp_Xp7u-5URj66DrOfC1JaK5jA@mail.gmail.com> <20101004122325.11342p9v1rnwp6w4@webmail.leidinger.net> <AANLkTimYCA3rRHgbtjPX=sGHd2mXURHBotNB=KHJi9AR@mail.gmail.com> <20101004123629.GA4308@straylight.ringlet.net> <AANLkTimWMUFrj1OfUVEaPKactWr9sWJhvVW2MfDPSB7T@mail.gmail.com> <AANLkTimsaWe-ZyUNW0Teg=%2B7w4TR=4hoOTk%2BeBOdHqSO@mail.gmail.com> <20101005113423.10801orcw6xef9s0@webmail.leidinger.net> <20101005.124823.093.1@DEV>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting rank1seeker@gmail.com (from Tue, 05 Oct 2010 14:48:23 +0200): > ----- Original Message ----- > From: Alexander Leidinger <Alexander@Leidinger.net> > To: Gonzalo Nemmi <gnemmi@gmail.com> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101005152950.16797j1h6ygogi88>