From owner-freebsd-current@freebsd.org Thu Apr 7 22:14:10 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 99B8BB08B15 for ; Thu, 7 Apr 2016 22:14:10 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-lb0-x234.google.com (mail-lb0-x234.google.com [IPv6:2a00:1450:4010:c04::234]) (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 21DE41D62; Thu, 7 Apr 2016 22:14:10 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-lb0-x234.google.com with SMTP id os9so14316189lbb.2; Thu, 07 Apr 2016 15:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-transfer-encoding; bh=BpqTQLO5RlcQxsQT0I7nLWsIwaFcSujPvPhb7I0AKBw=; b=HEePJbgIz5touNTEC3TpcHQL9lAP3WiuqT32Q/ZbyEpBhvULYRYMXnr5xRdzL3Gjtw 5uRKbDq3iR80hi/fdpkNydAlXU0DshXk3tQN86s1RIfxDNz4zeJfSVV/yEQOsvGtU3QF TrKDwafyTallgiwYkQ52l0msmBAogqKV1sLLOTsOjuroi6dETJu/j3CX+AVsVXFWNCG3 z4IcUHMdbE75DZ9NyHZ3FgI/GraxaIm94hqSIoYm6/7M0+VEHHMzGEp/fO48qd1RCuG0 neP88i6kc944dxMSe5faoaJn57mpdGlKvMd4bl3zn6/0tzYgq3lVGySwRoWf2RwE6oAD D/Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-transfer-encoding; bh=BpqTQLO5RlcQxsQT0I7nLWsIwaFcSujPvPhb7I0AKBw=; b=bN3i/TV5yN4PYoOVUFjTXLEh5clyrzPNcTaqXBpiknrNIrDhDdZU/Bqp7m7gYnskdS MB0kHHyWFHQ8z78n5B+CCkusoYTwRET8KGEdYRtD3WuZYR3Gh36Ect/miLdsZKStC2vk Sgm625Fu/E2XRGeoYQ6BsUbul1sJLhvWElifNr//gptvfsVnVboNBeCEoP97nvqpU/DS On8N6/NiFJGUvW0LkozHfqX9iQ13/Bdd22ALlZ4+kCrw1o9ZgRMU+ORrhvxfogevP7zT pz9E75i4+HtZeIgbrAESVHUzmPqd7vjKozOoK+8gIUfqIitillEJbT148pP9nFPtCs+x k4WQ== X-Gm-Message-State: AD7BkJKlBGPv6y4F163rj/PaN2yKSZYfG91rk5Rvyf1IxuVIwCWBuWqTuXq9l6wFWTR9WQrrKYW0pQr2/n9pkw== MIME-Version: 1.0 X-Received: by 10.112.140.41 with SMTP id rd9mr2357938lbb.138.1460067248376; Thu, 07 Apr 2016 15:14:08 -0700 (PDT) Received: by 10.112.236.33 with HTTP; Thu, 7 Apr 2016 15:14:08 -0700 (PDT) In-Reply-To: References: Date: Thu, 7 Apr 2016 15:14:08 -0700 Message-ID: Subject: Re: Keeping OptionalObsoleteFiles.inc up to date From: Ngie Cooper To: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Cc: "freebsd-current@freebsd.org" , Dmitry Marakasov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Thu, 07 Apr 2016 22:14:10 -0000 On Thu, Apr 7, 2016 at 1:59 PM, Olivier Cochard-Labb=C3=A9 wrote: > Hi, > > 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} =3D=3D 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 o= f > 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). 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... Thanks! -Ngie