From patchwork Tue May 8 20:40:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 910457 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="opzgigkJ"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40gWb674GLz9s3q for ; Wed, 9 May 2018 06:40:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 90B848677C; Tue, 8 May 2018 20:40:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id abgbH9-PpfkS; Tue, 8 May 2018 20:40:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id EF66386784; Tue, 8 May 2018 20:40:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id A312D1CF14E for ; Tue, 8 May 2018 20:40:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4E966866C9 for ; Tue, 8 May 2018 20:40:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fKCE920irK5Q for ; Tue, 8 May 2018 20:40:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 325BA86661 for ; Tue, 8 May 2018 20:40:24 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id a8so20898138wmg.5 for ; Tue, 08 May 2018 13:40:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ImG1i3Jw1dhrpMrn5zAVsFkgCpShu1xI/qMPOZb1mdM=; b=opzgigkJXcdBx2B5k3RHZV/M42HH+fSKxHSVfoNUlrotq36i+wC8QU0kEz/0yhyKdP n2/WhL3b8aD0noylABotlp0/J2Q8vKu1sgoO6E3J2Jn8LV8oXc1lHa4aBzupNH0/uAKC K5LxTyfQkFfaYeC8S/0ij4KQUPz2VPOzYriVtmoJ6NWy+bcbGPJ4efvvurio7GdOSBPo kqsjMxZSOsYIZUVS6qBTZA9IUjKcfIEFAjFvuB/ZVN5DQjnBTx8SlMzwtIMG74QaxGf4 UO7LY67AvlVEJatzDYryiorVERvawVBq6syEulnAaZGO95/+NrU1zjajbm60C/pm7CzI xAEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=ImG1i3Jw1dhrpMrn5zAVsFkgCpShu1xI/qMPOZb1mdM=; b=ZhT7AYkG6yikoiAUQLPRgl2w5qaf+PM/GaeOaqVgDdOKlgS24CKQzbTO+5aBV60kFJ UylqzKY9Orvb2hmd+c17FLULT362BQ1VtTZQzUzb2KWORBVIkcmuXPlT2TXy+C4L64a2 0EAxvnK0cafvs9u1lPLzjt4H1eVolRavRfpVbgVxYprQDfyTF8fhxFudBxCzOTCWGhW3 zOoMA/LehCYg1LynojVLC7sWB5uHVn32HneeGBtJE719fMWy2gelI0/gpxfoNjULZWBe A1Y2416G0c0iuOY833ATpk7GNCVFXFGIpzrinUQGRyRDBh+DE40XLG1Yfwm02oGf6lSS xBsA== X-Gm-Message-State: ALKqPwdyztrP+ogq7/FPQQW7/Sxp2x6giJN8fuhgMLyvOF+/gSl3ykQC K9mUdUi51bSpmr6YwOHeCRZCdg== X-Google-Smtp-Source: AB8JxZrPf80QN2wdF8pSwcT6I32vSYVHveOrDfnqHDoI9wMUsMF+t/dGPGlpk8XKtnVCSHCej6DqHw== X-Received: by 2002:a1c:d6c9:: with SMTP id n192-v6mr4424162wmg.125.1525812022527; Tue, 08 May 2018 13:40:22 -0700 (PDT) Received: from scaer.bzh.lan (2a01cb0886107300517c0c28e3b77189.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:517c:c28:e3b7:7189]) by smtp.gmail.com with ESMTPSA id v75-v6sm38772308wrc.65.2018.05.08.13.40.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 13:40:21 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Tue, 8 May 2018 22:40:15 +0200 Message-Id: <97d44edd183389f6a31b3d85132bf6d6094a0f22.1525812011.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [Buildroot] [PATCH 2/7 v2] support/graph-depends: also cut on host-skeleton X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Yann E. MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" host-skeleton is a dependency of almost all packages, except a very few. As such, it clutters the dependency graph uselessly. Do with it as we do for the skeleton: cut the dependency chains. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni --- support/scripts/graph-depends | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends index 6ce90d872c..40a8eee5e9 100755 --- a/support/scripts/graph-depends +++ b/support/scripts/graph-depends @@ -175,10 +175,17 @@ def remove_transitive_deps(pkg, deps): return new_d +CUT_ON_PACKAGES = [ + 'toolchain', + 'skeleton', + 'host-skeleton', +] + + # This function removes the dependency on some 'mandatory' package, like the # 'toolchain' package, or the 'skeleton' package def remove_mandatory_deps(pkg, deps): - return [p for p in deps[pkg] if p not in ['toolchain', 'skeleton']] + return [p for p in deps[pkg] if p not in CUT_ON_PACKAGES] # This function will check that there is no loop in the dependency chain