Improve OptionalObsoleteFiles.inc

Alexander Leidinger Alexander at Leidinger.net
Tue Oct 5 13:30:03 UTC 2010


Quoting rank1seeker at gmail.com (from Tue, 05 Oct 2010 14:48:23 +0200):

> ----- Original Message -----
> From: Alexander Leidinger <Alexander at Leidinger.net>
> To: Gonzalo Nemmi <gnemmi at gmail.com>
> Cc: freebsd-hackers at 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


More information about the freebsd-hackers mailing list