From patchwork Tue May 8 20:40:14 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: 910453 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.133; helo=hemlock.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="hmYEvjUd"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40gWb211qrz9s37 for ; Wed, 9 May 2018 06:40:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B0AC088CF7; Tue, 8 May 2018 20:40:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zoC9Ed9Jemdh; Tue, 8 May 2018 20:40:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 2881988648; Tue, 8 May 2018 20:40:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 223F01C26CB for ; Tue, 8 May 2018 20:40:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1FB0885BAE for ; Tue, 8 May 2018 20:40:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JBfbSIdX6gIk for ; Tue, 8 May 2018 20:40:23 +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 whitealder.osuosl.org (Postfix) with ESMTPS id 3EAD685AE1 for ; Tue, 8 May 2018 20:40:23 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id l1-v6so23868275wmb.2 for ; Tue, 08 May 2018 13:40:23 -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=sfNGZGbGfazRrPpQIuOCkDAx2kJpC5N4B1d99Dw3bYw=; b=hmYEvjUdCLPWnu1VW0sVaIv1FIkC9BXBj4SCsSZP2QYz2KHKnrK4QiZaKdBc7kC4d/ oT6ez5FUHCFyeg9Gc9a5lMYpd6bq0CKHI7Jrxqxq2DgiFAadY9oT+i+RXFf2MrAtm3Bj qs81NAFtL/pJYy34Wxeh/8RP0mSFxx5TUIehqz0Bva+0adrq4V+zgl7lIvM/UbS11Gkc mXNhsjdH4ViSDXuiUiRZXy7JLGoVWBEMvB81pILsCIS4f2pBTB+Wm5ukptRntsIaygw0 8R5OVhLc0xigQK7/UOwUHFcPwaBNMRFu4KBzS1l+cXgBUVLUJi2y53p6/pcKoruJFsFc IU4g== 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=sfNGZGbGfazRrPpQIuOCkDAx2kJpC5N4B1d99Dw3bYw=; b=MH5QrjFwbea6LPTvYOjcgVU3SUR4hG43fkrmnKwpqCX78K8chkrmZIeXS0lJBGBrvc ShrJAo9BfNsUQHFQk71lriCBHB4C1BAsY6OkSixESMKQ1X6zV4/g0rGhT95rxEjx8q2e VKOiJvBCXbr9IAuptLyLeCjGiNXY1YJWspQHnJC1+8v8mNkuWGUdaZe1dMY5JQkoEhBQ qcPEQAw974eHM9STQX/9WcpNc8KoMO9IbelxLiWa7bUaXmIqk/X1XNSYJz/7HIQEu/Io sYWEx0yUPUEhg/dKZkT0eWsVGqYW7Kr3/ksH7aDgpg01Pei4mk1eJWAbnUXgZWTPauVi C4GA== X-Gm-Message-State: ALKqPwfz3MZ8ww4ElAbQMz+Yo8t21SnxElZ+IkG7qjygZHtjO7ShZB0l TQaeeisp4uPOvxfb+aZnvZPuEQ== X-Google-Smtp-Source: AB8JxZo3ufIX0DWzVJ613xxrD3O2Twlmly9b3ay8dh3xSHu1U+rL2NHK5B7FBNPAtWGjCawWnLUSKQ== X-Received: by 10.28.9.17 with SMTP id 17mr3799720wmj.5.1525812021573; Tue, 08 May 2018 13:40:21 -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.20 (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:14 +0200 Message-Id: <48649e34b8cfb9fffac892da495452a4c519decb.1525812011.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [Buildroot] [PATCH 1/7 v2] support/graph-depends: ensure all packages get graphed 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" When a package: - has no dependency, - is not a first-level target, - is a cut-off point, then this package is omitted from the dependency graph. We currently have no such package, but the next commit will make host-skeleton, which already matches the first two conditions, a cut-off point too, and thus host-skeleton would not appear on the graph. To ensure that all packages, whatever their conditions, are displayed, we add them as a dependency of 'all'. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni --- support/scripts/graph-depends | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends index 621e603278..6ce90d872c 100755 --- a/support/scripts/graph-depends +++ b/support/scripts/graph-depends @@ -391,6 +391,15 @@ def main(): deps = get_all_depends(filtered_targets, get_depends_func) if deps is not None: dependencies += deps + # 'all' depends on everything, so add any newly discovered + # package. d[0] was a target, above, or a d[1] of another + # tuple, so it's already in the list. + for d in deps: + if d[1] in TARGET_EXCEPTIONS: + continue + if ('all', d[1]) in dependencies: + continue + dependencies.append(('all', d[1])) rootpkg = 'all' # In pkg mode, start directly with get_all_depends() on the requested 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 From patchwork Tue May 8 20:40:16 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: 910454 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="ek46r+AY"; 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 40gWb40Zzmz9s37 for ; Wed, 9 May 2018 06:40:31 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 629F886768; Tue, 8 May 2018 20:40:28 +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 JpZwhW_5I7Uc; Tue, 8 May 2018 20:40:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3CF90866A9; Tue, 8 May 2018 20:40:27 +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 A31681CF17A 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 844CE86661 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 S2KwNKz_iY9h for ; Tue, 8 May 2018 20:40:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by fraxinus.osuosl.org (Postfix) with ESMTPS id E7354866A9 for ; Tue, 8 May 2018 20:40:24 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id a67so20812090wmf.3 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=TmZPRazZeTu5mYvwfXGicezxhYUJnihztRn5M5dNu0w=; b=ek46r+AYbIH8U10cQtON8bzqcWA8vzzRq0kbQtnAxNeasStlY3ku14g9MbgL5jKbk9 eVvUyWT1hNwNHcMhN6Jafwki7VZwnGhyVNgJzoN6wEBqAQ05ou3PDnr2KtJuvipftsXr FF+QqghP5qX7GpXhx28L7eeEla9OpVzsEZ4sF4uDCNLA8sjpy9oTo2TPDIGvnE12IRi9 D7UEkDL39jAZ+iTJqYW7o9a0vv8ly9cgq/FCG+SL6xWNmpEqECLq8WvPD4b4o8RLnmDJ i3k85IEJTQvwl1wp5IKuRwsseHZWGMXnQDG3xkORGhhqVJUSMyua/DvlShst66gU+Zfh gHgw== 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=TmZPRazZeTu5mYvwfXGicezxhYUJnihztRn5M5dNu0w=; b=YY+haAf5MrcHLclURNlwEYVj4HcP8WGtssYzZWsb0rgowAaqjkD/YZgUSbl6tCREyo qa8uNTvqKJ7w3fg2goV4h3278+ndgMKqCnyJp+Umx+n4YYePCX7IzbyWMaTmvf7Q3kmb t6QhGcq7F5qeUEQlXC34rsYyXNhGbgiBF0jfS/ssFQ/l9mwPYU8OdmnIJ0uwkjpBFLRN 6LdmhumVTMwp3yhgqkd1Vqv0DFeN0XjmX0qAEOp+66wBmMCvXxO29Ununh2Y6RZff8bo 4oxCg01tESnU4ZS2gwWxORNdxvkDpPYNw5x7+zZld5MxAn/9xlvtfQPo+uOBbWa0IZD1 +SnA== X-Gm-Message-State: ALKqPwdcf3fKMt/adCDqZovsLY6+oDge7N6km8jHIDJBefc5SW0/iQIe Ye9FYEzuaJ1tMcEYZqqCVTd18Q== X-Google-Smtp-Source: AB8JxZqgX6YYsZCTd9XXrh6nEsV03JRFcVbPS6bZKC4Jg+NiVwa2bII/8x2gACWlRROOirt0PICwBA== X-Received: by 2002:a1c:3341:: with SMTP id z62-v6mr4016697wmz.63.1525812023328; Tue, 08 May 2018 13:40:23 -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.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 13:40:22 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Tue, 8 May 2018 22:40:16 +0200 Message-Id: <1720de1106c56f93ceb24c31cdf9b2039080d26c.1525812011.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [Buildroot] [PATCH 3/7 v2] support/graph-depends: also cut on host-tar 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" When host-tar is needed, it is a mandatory dependency of all packages. As such, drawing the dependency lines toward host-tar would uselessly clutter the graph. So, like for the skeleton and host-skeleton, we cut the dependency chains toward host-tar. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni --- support/scripts/graph-depends | 1 + 1 file changed, 1 insertion(+) diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends index 40a8eee5e9..46ff164262 100755 --- a/support/scripts/graph-depends +++ b/support/scripts/graph-depends @@ -179,6 +179,7 @@ CUT_ON_PACKAGES = [ 'toolchain', 'skeleton', 'host-skeleton', + 'host-tar', ] From patchwork Tue May 8 20:40:17 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: 910455 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.133; helo=hemlock.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="rRThSTrW"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40gWb56wKmz9s37 for ; Wed, 9 May 2018 06:40:33 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 260F988648; Tue, 8 May 2018 20:40:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rXm2AvD6euL6; Tue, 8 May 2018 20:40:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 94A7488A2F; Tue, 8 May 2018 20:40:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B56231C26CB for ; Tue, 8 May 2018 20:40:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B2CBE85BAE for ; Tue, 8 May 2018 20:40:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SXGFxhFlsa1U for ; Tue, 8 May 2018 20:40:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 02B0685AE1 for ; Tue, 8 May 2018 20:40:26 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id j5-v6so23836853wme.5 for ; Tue, 08 May 2018 13:40:25 -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=qB+hLZbpCqFu9FHVurmshzHWQ7X06wheldtsAKjx8Us=; b=rRThSTrWWu8hxoY+vy9cv43Lhpet8BGqCIUOZsCsARUWqMs9Rmm2IW2uoNAa70Q4zF pD7P3KPG/t2I10dD4XjfiRSbcyYvc56Kn2SbgYOxnAWfXy4GxLb7h141ZzEV67TlraBI pddM3koeC+zo1qpANxg0uixWL71JjuII2A8qLyFomagqgRfLsFyss0atUZOcUgB6li4V m1gSaTGl9V/T7yQlqITWOs0H30lwmWDCH0eEPp4C1egnV9QshzbSMDdu6r4NjNXjFKnM aCrWFQlxNcXVSttGQ6Hf0UUM0yvGpRM9YDYfbr5J+euyJtc1CiJO1EnRUnpQmG7R8RqF 6hOQ== 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=qB+hLZbpCqFu9FHVurmshzHWQ7X06wheldtsAKjx8Us=; b=XIecOvoh/4Jt/kKUTMOPKSmxtC9wDN3tJ6qKwLGqaN83tsxfe9dIB52/uU54FRFhMZ pcsyaVA/SqYTd7rv1KUVTgYHcKsqsOyl93TRNDfwLBvBdeXPx4imJPDEYH2BbK5SJuco YaUxNISDcFtmsBKq6Kufo0H5NdjW+fS6bOPwami/KvLWTOpwDxalmEqLnuTKjIUXPdX9 3pC+BYidOtRoIYo75vxN1udQQCeI6oP1NF2rXuSMVmSmHWCKMAcZk1iOEShXEbhq6IIt lXDtlpuLJYWcc0/C2DamVB23SA9fz/GItLPqgKSbzhrPdAV54mNtAlhUshoJKdAwq6JV 3zSQ== X-Gm-Message-State: ALKqPwdfbTEpyjcMasFuTaYFaFjigRchQfMf40WdY6ZryttZ/fpd69eI xdTbh5kC8xi9DddvxEb1iIiuDw== X-Google-Smtp-Source: AB8JxZp6stZVT7h3hGYKkhJ2eIOG/hf/GYv4rNECR0c0kI/qG3pxWr5yl9k1Vkzn5mMPJq78ZEsmGA== X-Received: by 2002:a1c:e58a:: with SMTP id c132-v6mr4074806wmh.23.1525812024291; Tue, 08 May 2018 13:40:24 -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.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 13:40:23 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Tue, 8 May 2018 22:40:17 +0200 Message-Id: <30f2e071d783a9d6a5312fcb0da773ec091b5095.1525812011.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [Buildroot] [PATCH 4/7 v2] core/package: postpone evaluation of dependency conditions 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" In the pkg-inner macro, all variables, but he positional arguments, must be $$-prefixed, so that they are expanded only when the macro is evaluated in each package, not when the macro is parsed. It is to be noted, though, that the current code, even though incorrect by the above rules, seemed to work. However, the upcoming addition of download dependencies, mimicking that code, would not work unless it was $$-prefixed. So, for consistency sake, and for correctness sake, let's always use the $$-prefix in the inner macro. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Cc: Arnout Vandecappelle --- Changes v1 -> v2: - also fix BR2_{TAR,XZCAT,LZIP}_HOST_DEPENDENCY (Arnout) --- package/pkg-generic.mk | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 8a3b5f90a9..9d1fec396a 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -567,26 +567,26 @@ ifneq ($(1),host-skeleton) $(2)_DEPENDENCIES += host-skeleton endif -ifeq ($(filter host-tar host-skeleton host-fakedate,$(1)),) -$(2)_EXTRACT_DEPENDENCIES += $(BR2_TAR_HOST_DEPENDENCY) +ifeq ($$(filter host-tar host-skeleton host-fakedate,$(1)),) +$(2)_EXTRACT_DEPENDENCIES += $$(BR2_TAR_HOST_DEPENDENCY) endif -ifeq ($(filter host-tar host-skeleton host-xz host-lzip host-fakedate,$(1)),) -$(2)_EXTRACT_DEPENDENCIES += $(BR2_XZCAT_HOST_DEPENDENCY) +ifeq ($$(filter host-tar host-skeleton host-xz host-lzip host-fakedate,$(1)),) +$(2)_EXTRACT_DEPENDENCIES += $$(BR2_XZCAT_HOST_DEPENDENCY) endif -ifeq ($(filter host-tar host-skeleton host-xz host-lzip host-fakedate,$(1)),) -$(2)_EXTRACT_DEPENDENCIES += $(BR2_LZIP_HOST_DEPENDENCY) +ifeq ($$(filter host-tar host-skeleton host-xz host-lzip host-fakedate,$(1)),) +$(2)_EXTRACT_DEPENDENCIES += $$(BR2_LZIP_HOST_DEPENDENCY) endif -ifeq ($(BR2_CCACHE),y) -ifeq ($(filter host-tar host-skeleton host-xz host-lzip host-fakedate host-ccache,$(1)),) +ifeq ($$(BR2_CCACHE),y) +ifeq ($$(filter host-tar host-skeleton host-xz host-lzip host-fakedate host-ccache,$(1)),) $(2)_DEPENDENCIES += host-ccache endif endif -ifeq ($(BR2_REPRODUCIBLE),y) -ifeq ($(filter host-skeleton host-fakedate,$(1)),) +ifeq ($$(BR2_REPRODUCIBLE),y) +ifeq ($$(filter host-skeleton host-fakedate,$(1)),) $(2)_DEPENDENCIES += host-fakedate endif endif From patchwork Tue May 8 20:40:18 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: 910458 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.136; helo=silver.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="QS0rMgki"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40gWb805vlz9s37 for ; Wed, 9 May 2018 06:40:35 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 0E7C421F68; Tue, 8 May 2018 20:40:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d5JjwRcfh-3y; Tue, 8 May 2018 20:40:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C1D1025048; Tue, 8 May 2018 20:40:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 89ED51C26CB for ; Tue, 8 May 2018 20:40:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8772488648 for ; Tue, 8 May 2018 20:40:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1YMH+T1BQH6o for ; Tue, 8 May 2018 20:40:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id BB41E885DB for ; Tue, 8 May 2018 20:40:26 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id x12-v6so20594915wmc.0 for ; Tue, 08 May 2018 13:40:26 -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=2RZY9IXSY+YNe+R3MRBqHbWpeWOMP3x1byfy9xl8qhU=; b=QS0rMgkiXNtZPEtIrX/HALdleTkNPm5Dw2mtG1L9xK1aPHdZHA/sGYSJRYDDo5AZzc UX7ngBREk6Exm5dcM6AzjNEJmUmTS7mZJN/Ltai22rkAms3ZwAFlGEqIgkCR4lYEDsw7 5ngNHF4/AtSxYTr16Wn1DlQ7ZqD+jDMMEBAvat8l8LiNR3waf5pFI4sMg7//dCmNLiOK kKVps2wKsRkse5mqr6qgT5zG8ZYuwt+sz9YhO5TwOWKfuCW62BIrMf4Ws+ZetQHV6DbC A4u/ynrabkyF6PUT/8wTKl+xLxNiS+jRnYOdl34csaDnIEPDI2AovvfzH0BnKLIqUPdo 5qFg== 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=2RZY9IXSY+YNe+R3MRBqHbWpeWOMP3x1byfy9xl8qhU=; b=sDO2q/MSxj/UiSqfbUCZ45JEOyhXfQP73ox1ycYgITvMr10ij4wUq1aCoadRL+hBXt k/5arrMcmIGhD1b+G7L8YeEuterkO32mgG7bsoEywuEnQy9Vpl/fAPGwUZCz3Iv+DvfK Eu+9hIweIQURy1JneOfELzh+u41SkZz7L+4xRsBrjFF7b6BlyBQ63bkOvTDvtnrOzu6g x8Htl0q8zgFLNG7yT2Bn1JJLm6jYXi3kd2USgQZnNyTwxBTh7JRm7woyv/dFXHVRrkPi NHYIiUqXQcuwGkYqodP15Ilp1r1D+L+cwhoGPeYiLJbKou9CcCT77pOdP0JEwOgpNOUu 3szw== X-Gm-Message-State: ALKqPwe9EYyDcNG5jML1tumFU3is/Np1tr3FhuWlZO43RcfS6kSZTPSn mMjU8SXo5wcJIX/7ernniv8v0Q== X-Google-Smtp-Source: AB8JxZo5fnySVvaoH+FdNiwh3R0OQ/4KCAOx7oJjUdmM9BjHjC/LVA07lzLRezs01VLYblSZHbUSMQ== X-Received: by 10.28.13.202 with SMTP id 193mr4003634wmn.36.1525812025138; Tue, 08 May 2018 13:40:25 -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.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 13:40:24 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Tue, 8 May 2018 22:40:18 +0200 Message-Id: <3af4779f52443d88c1c324e847403de63a206efe.1525812011.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [Buildroot] [PATCH 5/7 v2] core/package: add possibility to declare download dependencies 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" For some packages, we may need to have a certain set of host-tools built before the download of said packages are attempted. For example, when the system tar is not suitable, we will want to build our own tar before we attempt a git download (because we generate a tarball in the git backend). Mimick the _EXTRACT_DEPENDENCIES, and introduce _DOWNLOAD_DEPENDENCIES. As for _EXTRACT_DEPENDENCIES, we do not document _DOWNLOAD_DEPENDENCIES, on the assumption that it is mostly for internal use. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Cc: Arnout Vandecappelle Cc: Peter Korsgaard --- package/pkg-generic.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 9d1fec396a..78aa751b0d 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -593,11 +593,13 @@ endif # Eliminate duplicates in dependencies $(2)_FINAL_DEPENDENCIES = $$(sort $$($(2)_DEPENDENCIES)) +$(2)_FINAL_DOWNLOAD_DEPENDENCIES = $$(sort $$($(2)_DOWNLOAD_DEPENDENCIES)) $(2)_FINAL_EXTRACT_DEPENDENCIES = $$(sort $$($(2)_EXTRACT_DEPENDENCIES)) $(2)_FINAL_PATCH_DEPENDENCIES = $$(sort $$($(2)_PATCH_DEPENDENCIES)) $(2)_FINAL_ALL_DEPENDENCIES = \ $$(sort \ $$($(2)_FINAL_DEPENDENCIES) \ + $$($(2)_FINAL_DOWNLOAD_DEPENDENCIES) \ $$($(2)_FINAL_EXTRACT_DEPENDENCIES) \ $$($(2)_FINAL_PATCH_DEPENDENCIES)) @@ -730,6 +732,7 @@ $$($(2)_TARGET_EXTRACT): | $$($(2)_FINAL_EXTRACT_DEPENDENCIES) $(1)-depends: $$($(2)_FINAL_DEPENDENCIES) $(1)-source: $$($(2)_TARGET_SOURCE) +$$($(2)_TARGET_SOURCE): | $$($(2)_FINAL_DOWNLOAD_DEPENDENCIES) $(1)-all-source: $(1)-legal-source $(1)-legal-info: $(1)-legal-source From patchwork Tue May 8 20:40:19 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: 910459 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="HJIZZasV"; 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 40gWbB5H3dz9s37 for ; Wed, 9 May 2018 06:40:38 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A5D2E867E8; Tue, 8 May 2018 20:40:34 +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 jiOEh8jHevDG; Tue, 8 May 2018 20:40:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 15F64867C5; Tue, 8 May 2018 20:40:34 +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 96E801CF14E for ; Tue, 8 May 2018 20:40:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8B867866A9 for ; Tue, 8 May 2018 20:40:29 +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 Jf6W4abfgyU6 for ; Tue, 8 May 2018 20:40:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by fraxinus.osuosl.org (Postfix) with ESMTPS id ABAC8866D1 for ; Tue, 8 May 2018 20:40:27 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id f8-v6so23851259wmc.4 for ; Tue, 08 May 2018 13:40:27 -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=dnJareMKt+lGK8ySUFQ3rlhcjHA8ivoO98HmgujIfjY=; b=HJIZZasVPX/qQMeTNfiEDq40EKv9MUqtGxm8cVAL2hWYCC+9nkUaE7WaLdtsptKI4s 45QQ3sDOueOsoo33GQOet35IfBXRlGfAYOTyw4BjoXCwGLNIEVirZ3xYAttaaZhVe1ZK IgWbK4WXjOS7p2DSMF0Zr7QnJ6ocGHqbmQYuhkaqMDkkNp5Edc9jqp8VVUjCS0DywAsm GsovKoE9Ud1/SEoZOWCLGgqQVDBjeu4LdJdV0ZNluUgOIV2Xa8iVTHeuqHXD8WekkhfR Ue+yLlyez36/kRlFSjGFflMl12Xfs/GYvCULX6Ym6wtZFoyK5YX0VD0WLXYY2kPaLkoM 5LdQ== 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=dnJareMKt+lGK8ySUFQ3rlhcjHA8ivoO98HmgujIfjY=; b=JUIAUTSgiHw3x4QdjKqir4nowMqM/qnI5qw244sr2VNW1Rw13YqsJjYpOM1LZrO6kv 6F9mJ5v3R6cmz6UpoXIEZkvlVqJDF3SYnhlOVSLlmhFKhMvqR7OQoIoy/cUIVQ9RsYUS c2tIRqxh7nEkVYFwR05mzFrBzZxHdBTXs3gl/8QbAijPhypARGGIqOa7MM96sT1NeOpB 6+7Gjoaz0Ce3jFkIlo1RHGUn6SNOcKbBS88Qiadfweb03/KcjgZzMOjbGHGWWkw46SFH BaZJ44aoxxtCHY5emcBjtpQWU22YNviKTy4bAtNTPBeaTyHOnxmPZ3fIts07SCA4Xy5j 37LA== X-Gm-Message-State: ALKqPweTfC/zJMXT6plnoxkB/P0R9FdZTgL6m1nYrlZe3xO/BeGPw4jZ hTPnP0ip2Tn8guxot1oDqMeNIw== X-Google-Smtp-Source: AB8JxZqzqQU8XIgpcguqRQvMVzHgbtHR7FP/bx6Zq5zgIfNhV6w+c6gKoiCUMBNwgSREkrjlNfiLDw== X-Received: by 10.28.166.23 with SMTP id p23mr3801778wme.152.1525812026061; Tue, 08 May 2018 13:40:26 -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.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 13:40:25 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Tue, 8 May 2018 22:40:19 +0200 Message-Id: <03be0fca5aee707e535261e66588d3b47bed4e0c.1525812011.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [Buildroot] [PATCH 6/7 v2] core/package: add host-tar dependency for downloads from repositories 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" Three of our download backends need a host tar that can generate reproducible archives: cvs, git, and svn. The other two, hbzr and hg, use their internal implementation. So, for those three that need it, and a dependency on host-tar when the system tar is not appropriate. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Cc: Arnout Vandecappelle Cc: Peter Korsgaard --- package/pkg-generic.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 78aa751b0d..f654241bf7 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -567,6 +567,10 @@ ifneq ($(1),host-skeleton) $(2)_DEPENDENCIES += host-skeleton endif +ifneq ($$(filter cvs git svn,$$($(2)_SITE_METHOD)),) +$(2)_DOWNLOAD_DEPENDENCIES += $(BR2_TAR_HOST_DEPENDENCY) +endif + ifeq ($$(filter host-tar host-skeleton host-fakedate,$(1)),) $(2)_EXTRACT_DEPENDENCIES += $$(BR2_TAR_HOST_DEPENDENCY) endif From patchwork Tue May 8 20:40:20 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: 910460 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.136; helo=silver.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="cQcdHn9+"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40gWbG5NYwz9s3G for ; Wed, 9 May 2018 06:40:42 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4B65225CFE; Tue, 8 May 2018 20:40:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8KyRiGxBf2MF; Tue, 8 May 2018 20:40:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 6849125B0F; Tue, 8 May 2018 20:40:33 +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 885581C26CB for ; Tue, 8 May 2018 20:40:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 819DF86793 for ; Tue, 8 May 2018 20:40:29 +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 wUg6FcCIpJdw for ; Tue, 8 May 2018 20:40:28 +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 831A0866A9 for ; Tue, 8 May 2018 20:40:28 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id w194so20833298wmf.2 for ; Tue, 08 May 2018 13:40:28 -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=LBfFIseE6bkcIOghkPJWmjZ3ex0cCNlvrbdyAc6zDSA=; b=cQcdHn9+1dmxOzx7Q2IcXXVBBSGHV6QsbnO+JYmOhFm9VToYQkeVYgIHh//jCDnzEx GQXmnMpwjQwe3thp/wPAB9VZIBfndO7cGsPJ5fc6fROQopGJEhdLOvYVb1HpFGc5I5ZY 0wu5oWeeFqM3LA1JKzrWzwyiQxNn6XoyhCfMkdlZ1voXTz6fATNnIN0kvnfTGkG+ock/ 224es8KliMvS8cohdTN2KC8TqGfOdr/O4RJDNtgW/TrlhCT/zc7tn3zwACmfsycD1KPO G/vnwXiE9XkJXc8uFl1VNSjXIPSjfoSSPKkRLNj8ic4oOnKqzEo+718N1miS0lCqWt8Q uWcw== 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=LBfFIseE6bkcIOghkPJWmjZ3ex0cCNlvrbdyAc6zDSA=; b=N60FYnUPJrVHYlaEi43czcZjSv0RvyWeLob4bf2rLvT2o7rlBJlzLL6AABit/6+rHO iiEqDk1ijMO4031+R1rKlRM0kN9Zkl4VryBvTIAk/UhAIkRGXNnBHvFJhFMx0unG2HkW xKvhEJpYsX1+fjXaF6ZcX+6oQPkrpxNOH9YqlDHPYXTPmI6kSF2cNhpIYooomMufKxUW 9naeGcTSk5m4/fVSOHp57nXhsmeaUwxXOyhY+YqThK7uvoAIM0qGESiYPYComTp8dFxd rOWwpOAUOXJmGoI1YAgiaHxZnSLJigQ+g+wJSLdEbfkjZ1Dyy1xax3hsFZ0b8XwGAdjc 5tQQ== X-Gm-Message-State: ALKqPwcsuq4inRLt0ShW8tYrqs4Q31Hny9XbF2KsjLmQzluTpT4CuFdm HEhMjxef7pLW8Ac1ncVmKLsciw== X-Google-Smtp-Source: AB8JxZqUE0y8NEy0TnNIYTnu9ISu/kdTaLH1qLC63N58ue7Mif3lKBjJq8g2aw9yNtRhMf2NIBS+/w== X-Received: by 10.28.111.82 with SMTP id k79mr3869312wmc.38.1525812026885; Tue, 08 May 2018 13:40:26 -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.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 13:40:26 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Tue, 8 May 2018 22:40:20 +0200 Message-Id: X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [Buildroot] [PATCH 7/7 v2] fs: always depend on build host-tar if needed 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" Currently, the filesystems do not depend on building host-tar when it is needed, even though all of them have to extract the intermediate tarball. However, in degenerate (but legally valid) configurations with no user-selectable package selected, host-tar would not be built, so the rootfs images would use whatever improper tar the system has. Add the conditional dependency to host-tar to the rootfs-common intermediate image. Since this is the internal step that all real rootfs generators depend on, they now properly depend on host-tar when needed. In practice, when host-tar is needed, it will always be built before the rootfs inages, because it is a dependency of all packages (except a very few, like the skeleton), of which host-fakeroot, which is a mandatory dependency of rootfs-comon anyway. But for consistency sake, let's explicitly add host-tar as a dependency to rootfs-common too. Note that rootfs-tar already had that dependency, and we leave it as-is because it is semantically correct, even if superfluous. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni --- Note: yes, I had a randpackageconfig turn up a configuration with no user-selectable package enabled... I should just stop coding and go play bingo. Too bad there is no big jackpot tonight... ;-] --- fs/common.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/common.mk b/fs/common.mk index 9baf367729..d106783813 100644 --- a/fs/common.mk +++ b/fs/common.mk @@ -63,6 +63,7 @@ ROOTFS_COMMON_TARGET_DIR = $(FS_DIR)/target ROOTFS_COMMON_DEPENDENCIES = \ host-fakeroot host-makedevs \ + $(BR2_TAR_HOST_DEPENDENCY) \ $(if $(PACKAGES_USERS)$(ROOTFS_USERS_TABLES),host-mkpasswd) $(ROOTFS_COMMON_TAR): ROOTFS=COMMON