From owner-freebsd-questions@freebsd.org Sun Dec 13 07:30:39 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3FC4BA428D1 for ; Sun, 13 Dec 2015 07:30:39 +0000 (UTC) (envelope-from h.skuhra@gmail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D07EC1310 for ; Sun, 13 Dec 2015 07:30:38 +0000 (UTC) (envelope-from h.skuhra@gmail.com) Received: by wmnn186 with SMTP id n186so82698476wmn.0 for ; Sat, 12 Dec 2015 23:30:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:to:subject:in-reply-to:references:user-agent :mime-version:content-type:content-transfer-encoding; bh=d8Or5ozLz7Ej8Fdfy7RBlusLzcvLNQZ1RJ8gzTXwAQk=; b=GQyzz6eVkvwDDocVTmzwaIhM8ldvaBot4/69Xfm/pedbO7a74vTwKL05LOWCVnuZNr L3xtrnBMTWdzQ68jYllTD8cuJ4nuHEtRIoDa1MAEJ5c21GAu+V0RNf9x6StA1nQm2dui zZElM/WcU+u+dEn3cB9Rm31l1n7dRtMgeNR1a4ULaDHRJgjRLsFsD9GHHwPgT7OoGKT/ +PLCV84/J/OKuYvXlWTyERboLt/zPkYfkI1yjvtR/kNGoD1bfT02EaHc3txPKJJRkCYw /IpnvF12g42tXsMQC+AbI6D7L0G8BY9lNaGuHVJRQfIxR1SqE8VTuyMfCLxQykHaOAy9 obkQ== X-Received: by 10.28.173.133 with SMTP id w127mr5086883wme.61.1449991837392; Sat, 12 Dec 2015 23:30:37 -0800 (PST) Received: from oslo.ath.cx ([2a02:b18:581:10:e1a7:fd26:e473:d2d1]) by smtp.gmail.com with ESMTPSA id jm4sm24021478wjb.7.2015.12.12.23.30.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Dec 2015 23:30:36 -0800 (PST) Date: Sun, 13 Dec 2015 08:30:35 +0100 Message-ID: <86egeqls9w.wl-h.skuhra@gmail.com> From: "Herbert J. Skuhra" To: freebsd-questions@freebsd.org Subject: Re: Cleaning obsolete files after make installworld In-Reply-To: <20151213001435.GA6169@hpmini> References: <20151205201107.GA19335@hpmini> <20151205204943.GA19890@hpmini> <20151213001435.GA6169@hpmini> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.0.50 (i386-pc-freebsd10.2) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Dec 2015 07:30:39 -0000 On Sun, 13 Dec 2015 01:14:35 +0100, Lu=EDs Fernando Schultz Xavier da Silveira 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