From patchwork Mon Feb 26 22:38:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Korsgaard X-Patchwork-Id: 878190 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=korsgaard.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MYlZVzdv"; 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 3zqxYs31Tmz9s1j for ; Tue, 27 Feb 2018 09:38:25 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 265A887419; Mon, 26 Feb 2018 22:38:22 +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 ZQj1pSQamElE; Mon, 26 Feb 2018 22:38:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id F02AF87BE1; Mon, 26 Feb 2018 22:38:18 +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 8C5BC1C0EFA for ; Mon, 26 Feb 2018 22:38:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8976285E40 for ; Mon, 26 Feb 2018 22:38:16 +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 r-ZFTdjIox3z for ; Mon, 26 Feb 2018 22:38:14 +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 5AD9A85E44 for ; Mon, 26 Feb 2018 22:38:14 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id z9so20139940wmb.3 for ; Mon, 26 Feb 2018 14:38:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=HHhQ4GEDB4WAUP4kF2VF6CVQoor9R73yeT5V2c+UkLg=; b=MYlZVzdvhKdANc9KCOLAHyNaW5z6sIjNgLiMHB1HZNKwmgWyQuSA4fU1zPZ4mMNK6z gvLIerB0Xu/EZUo5vQRYI5eVGLQk5DFdIWvMYCFd5+mLZYNV868VrwgVkin88zym+DCl pEXYG+lre5pRIqK7D4J1/rexNpkfTtxyW4FxEdCf6RY+wsfYZbog5yUKVODuqPPExEWM Xc54ejISoXixQYjrw+R0O4NQqAWrq+UJ7pMkK7pG1l60IAHrMt4M3rUM6D97yKEGO0xc a67QTWMx9aQ5jjs/+ihx6QWqAHhxpzJrs75+EQiZa2xTbwBp9/peCvzKrBUDNEX48JP/ oDWw== 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; bh=HHhQ4GEDB4WAUP4kF2VF6CVQoor9R73yeT5V2c+UkLg=; b=cnPyQ5ccSkU7wMcJFu8Hi3/wXIb6jlWPRhY2KyKnxw+NAiOOHaf/DCDCGMb2ewQzd5 AKMx3OEVesIADe1I/xmcZ2xrpfap2iBCVPfW2zBRTMg6sVeaWEHBk9X/GQnhZa6az2z+ e1L/5FfTsGGM4MQT6NlnOitcdBsuzuPPa7BY27GX5BpGmEv0txQ0ASkK+YcVg1ZthD8L mV9RqnCyy54VRicg0gLoFcPuw69CT5ZmMzTaZEVVzJAOh7TZr2ARwFOPcpqUAVwSg8NY HiC3AMTmGOlmFaux4N1OMnCHPEOROIb4TrA60ClsCKtMVh39Vvzoqv1FpkrzkdKj6rqL ePHg== X-Gm-Message-State: APf1xPBnhOLG20y39RsDsetI12zrxYceRvk2sZhLVTb/vnrjCwwYBPXE CiodBe+mA0/gadxpB514X8Tm/S/0 X-Google-Smtp-Source: AH8x226QySh6rjEs5/4Y5ycsuzWogUm0NTTaD3eP4FOZxHB9nPkV9hW2wbPaGyHwxBzl7yXNfBeyoA== X-Received: by 10.80.153.13 with SMTP id k13mr16293948edb.298.1519684692203; Mon, 26 Feb 2018 14:38:12 -0800 (PST) Received: from dell.be.48ers.dk (d51A5BC31.access.telenet.be. [81.165.188.49]) by smtp.gmail.com with ESMTPSA id a102sm8208613edf.16.2018.02.26.14.38.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Feb 2018 14:38:11 -0800 (PST) Received: from peko by dell.be.48ers.dk with local (Exim 4.89) (envelope-from ) id 1eqRPN-0004ZQ-Ue; Mon, 26 Feb 2018 23:38:10 +0100 From: Peter Korsgaard To: buildroot@buildroot.org, yann.morin.1998@free.fr, thomas.petazzoni@bootlin.com Date: Mon, 26 Feb 2018 23:38:04 +0100 Message-Id: <20180226223805.17496-1-peter@korsgaard.com> X-Mailer: git-send-email 2.11.0 Subject: [Buildroot] [PATCH 1/2] dependencies.mk: reverse check-host-*.mk include to work around lzip -> tar dependency 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" host-lzip needs host-tar to extract the source code tarball, so we need to ensure that host-tar gets added to DEPENDENCIES_HOST_PREREQ before host-lzip in case they are both available, otherwise host-lzip will fail to extract. With the upcoming change to blacklist modern tar versions this situation is likely to trigger more often. The real solution to this issue is the _EXTRACT_DEPENDENCIES rework, but that series is a bit too intrusive to add this close to 2018.02, so therefore this hack. Signed-off-by: Peter Korsgaard --- support/dependencies/dependencies.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/support/dependencies/dependencies.mk b/support/dependencies/dependencies.mk index 4f606f849d..dfdc1fa116 100644 --- a/support/dependencies/dependencies.mk +++ b/support/dependencies/dependencies.mk @@ -12,7 +12,9 @@ define suitable-host-package $(shell support/dependencies/check-host-$(1).sh $(2)) endef --include $(sort $(wildcard support/dependencies/check-host-*.mk)) +# host-lzip needs host-tar to extract the source code tarball, so +# ensure check-host-tar.mk is included before check-host-lzip.mk. +-include $(call reverse,$(sort $(wildcard support/dependencies/check-host-*.mk))) ifeq ($(BR2_CCACHE),y) DEPENDENCIES_HOST_PREREQ += host-ccache