From owner-freebsd-current@FreeBSD.ORG Sun May 27 14:05:44 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47847106564A for ; Sun, 27 May 2012 14:05:44 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (unknown [IPv6:2a03:6f00:1::5c35:743c]) by mx1.freebsd.org (Postfix) with ESMTP id CA15E8FC14 for ; Sun, 27 May 2012 14:05:43 +0000 (UTC) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1SYe6I-0005EZ-8E for freebsd-current@FreeBSD.org; Sun, 27 May 2012 18:05:42 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id E1F50B84F for ; Sun, 27 May 2012 18:05:41 +0400 (MSK) Received: by hades.panopticon (Postfix, from userid 1000) id D47E1942; Sun, 27 May 2012 18:05:41 +0400 (MSK) Date: Sun, 27 May 2012 18:05:41 +0400 From: Dmitry Marakasov To: freebsd-current@FreeBSD.org Message-ID: <20120527140541.GL2987@hades.panopticon> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: OptionalObsoleteFiles.inc completeness X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 May 2012 14:05:44 -0000 Hi! I'm running a little pet project of improving completeness of tools/build/mk/OptionalObsoleteFiles.inc file and thus delete-old* targets with regard to all possible WITHOUT_* knobs. E.g. when WITHOUT_foo is defined in src.conf, make delete-old should remove related files completely, to make a system look exactly like it's world was installed with that knob set. First of all, an automatic script to check for leftovers after delete-old for all possible knobs is available from [2]. Feel free to run in on different architectures and FreeBSD branches; I'm currently running it on amd64. I also think that it should be run during preparation of each FreeBSD release. There are some questions I'd like to discuss. 1) named config file var/named/etc/namedb/named.conf was intentionally left out from OptionalObsoleteFiles.inc, so I did the same for other configs which may be changed by users. Since this approach requires maintaining a whitelist of such files to ignore them in checking leftovers, I think it'd be better to introduce special variable for config files, e.g. OLD_CONFIGS and corresponding target, delete-old-configs, which will by default remove configs interactively, with an option to remove them in batch mode. 2) Is this ok to backport the list from current to stable branches? Pro - it's really simple, con - it will contain files never installed with this (old) branch. I also plan to make similar script for checking completeness of delete-old* targets for the case of system update. [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/168341 [2] https://github.com/AMDmi3/obsolete-files-checker -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://www.amdmi3.ru