Cleaning obsolete files after make installworld
Herbert J. Skuhra
h.skuhra at gmail.com
Sun Dec 13 07:30:39 UTC 2015
On Sun, 13 Dec 2015 01:14:35 +0100,
Luís Fernando Schultz Xavier da Silveira <schultz at ime.usp.br> wrote:
>
> Hello,
>
> > Check out the /usr/src/Makefile, particularly the # check-old and the #
> > delete-old sections. I've never found a need to use these, so I really am
> > uncertain how they would be used. But it seems as if they might come into
> > play after a make buildworld but prior to a make installworld. I could be
> > very wrong about that. But if you can track down how to actually use these
> > targets I think it may remedy the problem.
>
> I did use the delete-old functionality. The problem is the files persist
> even after that.
>
> The delete-old command does not seem to take into account software that
> was disabled in /etc/src.conf and needs to be removed.
It does but there are some options (e.g. WITHOUT_INETD) missing in
/usr/src/tools/build/mk/OptionalObsoleteFiles.inc.
I think for WITHOUT_INETD the following change is required:
Index: tools/build/mk/OptionalObsoleteFiles.inc
===================================================================
--- tools/build/mk/OptionalObsoleteFiles.inc (revision 291770)
+++ tools/build/mk/OptionalObsoleteFiles.inc (working copy)
@@ -2200,6 +2200,13 @@
OLD_FILES+=rescue/ping6
.endif
+.if ${MK_INETD} == no
+OLD_FILES+=etc/inetd.conf
+OLD_FILES+=etc/rc.d/inetd
+OLD_FILES+=usr/sbin/inetd
+OLD_FILES+=usr/share/man/man8/inetd.8.gz
+.endif
+
#.if ${MK_INFO} == no
# to be filled in
#.endif
--
Herbert
More information about the freebsd-questions
mailing list