Quoting [email protected] (from Tue, 05 Oct 2010 14:48:23 +0200):

----- Original Message -----
From: Alexander Leidinger <[email protected]>
To: Gonzalo Nemmi <[email protected]>
Cc: [email protected]
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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"

Reply via email to