From owner-freebsd-current@freebsd.org Sat Apr 9 12:35:57 2016 Return-Path: Delivered-To: freebsd-current@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 7AF87B09C35 for ; Sat, 9 Apr 2016 12:35:57 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from vps.amdmi3.ru (vps.amdmi3.ru [109.234.38.216]) by mx1.freebsd.org (Postfix) with ESMTP id 457D1187E; Sat, 9 Apr 2016 12:35:56 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from hive.panopticon (unknown [78.153.152.119]) by vps.amdmi3.ru (Postfix) with ESMTPS id 93D33B0582; Sat, 9 Apr 2016 15:35:49 +0300 (MSK) Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 72689C68; Fri, 8 Apr 2016 16:01:19 +0300 (MSK) Received: by hades.panopticon (Postfix, from userid 1000) id 80E90ADA; Fri, 8 Apr 2016 15:59:03 +0300 (MSK) Date: Fri, 8 Apr 2016 15:59:03 +0300 From: Dmitry Marakasov To: Ngie Cooper Cc: Olivier =?utf-8?Q?Cochard-Labb=C3=A9?= , "freebsd-current@freebsd.org" Subject: Re: Keeping OptionalObsoleteFiles.inc up to date Message-ID: <20160408125903.GD11361@hades.panopticon> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 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: Sat, 09 Apr 2016 12:35:57 -0000 * Ngie Cooper (yaneurabeya@gmail.com) wrote: > > I'm trying to use "make delete-old" specifying WITHOUT_ keyword for > > removing some no-more used set of files. > > > > I've start by testing WITHOUT_TOOLCHAIN: > > - Some of files related to clang are correctly delete > > - But there are still lot's of others (like /usr/bin/cc) > > > > Then I've checked tools/build/mk/OptionalObsoleteFiles.in and found that > > lot's files are missing in the ".if ${MK_TOOLCHAIN} == no" section. > > > > I've started a new run of phk's build_options_survey script: > > https://people.freebsd.org/~olivier/build_option_survey_20160406/ > > > > And wonder if it's possible to automatically generate the list of > > conditional files to be put in OptionalObsoleteFiles.in from the result of > > a build_option_survey script ? > > amdmi3 had a method for doing this, but I think it was a bit of a > brute force approach (I could be wrong). You are not. https://github.com/AMDmi3/obsolete-files-checker > The release-pkg project branch method seems like the best way to go > about it though because it would kind of do the sanity checking for > us... Agreed. make delete-old + OptionalObsoleteFiles.in will never be complete and work correctly. I'm waiting for packaged base too. -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://amdmi3.ru