From patchwork Mon Jul 13 21:00:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 494743 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 59BA41402D7 for ; Tue, 14 Jul 2015 07:00:29 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=HlWuwSao; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 83877A3C81; Mon, 13 Jul 2015 21:00: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 pwXDijm9jmK6; Mon, 13 Jul 2015 21:00:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 46ABFA3BC1; Mon, 13 Jul 2015 21:00:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 4B05A1C2893 for ; Mon, 13 Jul 2015 21:00:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 481D23366C for ; Mon, 13 Jul 2015 21:00:25 +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 XkAFbqqLXX9w for ; Mon, 13 Jul 2015 21:00:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by silver.osuosl.org (Postfix) with ESMTPS id 2DFD833673 for ; Mon, 13 Jul 2015 21:00:24 +0000 (UTC) Received: by widjy10 with SMTP id jy10so80967054wid.1 for ; Mon, 13 Jul 2015 14:00:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=T6X+/Wz8jGtq9Jt7paG6O2oc1yWjyVrOE2Bq8FWk9vE=; b=HlWuwSaobQr1hL4SVCajqIqxW3/5VymJrBzpXWh9AoYM6KTtksiYqJdCYgq1WOPcqc YNF8sQv82a89RlRBNhId94lm+oefH/YSi0mN8jPxVKcmYCzOm9f+zPlW7YNoRbVnS8l7 aJJEooMmeAvhiaNcEDgP4Hd1HBifsrc2dQ5Dxw7EBAyTlAxkw7oCljFMF5HhqIUIc8nO tiLdc3N/sTBmyBZMTN7weOzPX2naIuf+IaGd6OVAlGyiRZR4BlU4P55jBS7dsMGg4IJI tIrdoIBeMvSjxs+aXRqByDnazCzwvGjXV53klFS+O5x8wXfzlQa1fo2RN4TxVJk6CTaF 282A== X-Received: by 10.194.142.209 with SMTP id ry17mr74859204wjb.5.1436821222845; Mon, 13 Jul 2015 14:00:22 -0700 (PDT) Received: from cerise.home (AToulouse-657-1-1031-128.w92-134.abo.wanadoo.fr. [92.134.9.128]) by smtp.gmail.com with ESMTPSA id x10sm31270062wjr.25.2015.07.13.14.00.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Jul 2015 14:00:22 -0700 (PDT) From: Maxime Hadjinlian To: buildroot@buildroot.org Date: Mon, 13 Jul 2015 23:00:09 +0200 Message-Id: <1436821211-4446-2-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1436821211-4446-1-git-send-email-maxime.hadjinlian@gmail.com> References: <1436821211-4446-1-git-send-email-maxime.hadjinlian@gmail.com> Subject: [Buildroot] [PATCH 2/4] pkg-generic: Package can't depends on themselves X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" So filter out the current package name from the dependencies list. Signed-off-by: Maxime Hadjinlian --- package/pkg-generic.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index beff2d7..ebaa48f 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -415,8 +415,8 @@ endif endif # Eliminate duplicates in dependencies -$(2)_FINAL_DEPENDENCIES = $$(sort $$($(2)_DEPENDENCIES)) -$(2)_FINAL_PATCH_DEPENDENCIES = $$(sort $$($(2)_PATCH_DEPENDENCIES)) +$(2)_FINAL_DEPENDENCIES = $$(filter-out $(1),$$(sort $$($(2)_DEPENDENCIES))) +$(2)_FINAL_PATCH_DEPENDENCIES = $$(filter-out $(1),$$(sort $$($(2)_PATCH_DEPENDENCIES))) $(2)_FINAL_ALL_DEPENDENCIES = $$(sort $$($(2)_FINAL_DEPENDENCIES) $$($(2)_FINAL_PATCH_DEPENDENCIES)) $(2)_INSTALL_STAGING ?= NO