Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Dec 2015 08:30:35 +0100
From:      "Herbert J. Skuhra" <h.skuhra@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Cleaning obsolete files after make installworld
Message-ID:  <86egeqls9w.wl-h.skuhra@gmail.com>
In-Reply-To: <20151213001435.GA6169@hpmini>
References:  <20151205201107.GA19335@hpmini> <CAA2O=b9j4X0WjpdDgBRbUn66qw%2BQGK1u-Ypt5kxqT3n9u9sofA@mail.gmail.com> <20151205204943.GA19890@hpmini> <n4i9hr$6aq$1@ger.gmane.org> <20151213001435.GA6169@hpmini>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sun, 13 Dec 2015 01:14:35 +0100,
Luís Fernando Schultz Xavier da Silveira <schultz@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86egeqls9w.wl-h.skuhra>