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+QGK1u-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=EDs Fernando Schultz Xavier da Silveira <schultz@ime.usp.br> wrote:
> =

> Hello,
> =

> > Check out the /usr/src/Makefile, particularly the # check-old and t=
he # =

> > delete-old sections. I've never found a need to use these, so I rea=
lly am =

> > uncertain how they would be used. But it seems as if they might com=
e into =

> > play after a make buildworld but prior to a make installworld. I co=
uld be =

> > very wrong about that. But if you can track down how to actually us=
e these =

> > targets I think it may remedy the problem.
> =

> I did use the delete-old functionality. The problem is the files pers=
ist
> even after that.
> =

> The delete-old command does not seem to take into account software th=
at
> 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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- tools/build/mk/OptionalObsoleteFiles.inc    (revision 291770)
+++ tools/build/mk/OptionalObsoleteFiles.inc    (working copy)
@@ -2200,6 +2200,13 @@
 OLD_FILES+=3Drescue/ping6
 .endif

+.if ${MK_INETD} =3D=3D no
+OLD_FILES+=3Detc/inetd.conf
+OLD_FILES+=3Detc/rc.d/inetd
+OLD_FILES+=3Dusr/sbin/inetd
+OLD_FILES+=3Dusr/share/man/man8/inetd.8.gz
+.endif
+
 #.if ${MK_INFO} =3D=3D no
 # to be filled in
 #.endif

--
Herbert



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