From patchwork Sun Nov 12 17:45:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 837221 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="knsKL16l"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yZh5Y4v1Qz9t1G for ; Mon, 13 Nov 2017 04:46:09 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 02C8988424; Sun, 12 Nov 2017 17:46:05 +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 a9nGteyOtZhh; Sun, 12 Nov 2017 17:46:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 83074883F6; Sun, 12 Nov 2017 17:46:02 +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 ECC261C3EFF for ; Sun, 12 Nov 2017 17:45:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id DB8C988587 for ; Sun, 12 Nov 2017 17:45:58 +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 z5NKT1F0NQEj for ; Sun, 12 Nov 2017 17:45:57 +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 hemlock.osuosl.org (Postfix) with ESMTPS id 93F3B8857D for ; Sun, 12 Nov 2017 17:45:57 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id r68so11048296wmr.3 for ; Sun, 12 Nov 2017 09:45:57 -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:in-reply-to:references; bh=rQ2fSCqGOfLki7lL8hXPYYcXq1/hCc906i+qqDmtNok=; b=knsKL16lilu/2y4NqUOAT9/WEnl7b6MmSdTWSYOuhgnXLk+hRM+TvDFuHirPYkN2cA xRFB2G9bpl+yAa5Wh2JZrztyrFpD8z2mged0H6cBJFVWFgIxOq4JiiIxd6Pd8fZcFmY+ JeXnoOJn9QqXZMQUC5lYF+FguOrg9oy8OHRxb9KlZOdgRSOVHBKcAI3BbkgGeiYS2i+u YcgIgjMLVOX+5hYeCSJyA0VY5P0JeDGINmx14iUimBVvCLeP9yXXTz5MGKtUChrcg56+ M+TZIuhPZwiQczTdP3kDOf7bCQfCyXefkZxMPf5BGHCpyAKpbrp5YPDZoa7rk6w3goiI n4AQ== 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=rQ2fSCqGOfLki7lL8hXPYYcXq1/hCc906i+qqDmtNok=; b=VprNItFFvVsApB3PW54VOmyZS9JMt44xRQ6tbH0u2d68cIOYG3Ah21cjwUqMARMSbc cxIrEZnRUPGFf4nIR4/aze30xCXClgXY8Gh2+tHF/M9z7fvrWQDcek8Wz5wjODw4MmNx 03mdND4eWs4N1/UjWkVbXHjEUuEe3xg+Q74DcYpefCftGK8xQJZwp3AanPdpVxhebIZR EpDb+l/7wyYNAwBLUWpBSgZdKAbJREQ4MO0ODJUYQhJsd+wxw1RohDEmtwnbyBWkPHzr viMG752QKkc1/1FLNpHkgQvmDD/iO7cB6jBhfTG65nnXUWvYyZLq8Ok65dWQAzKlrARo JoFA== X-Gm-Message-State: AJaThX5uxCKCFxB9b0j/vOScWke8q2ctNuwcZD5aP08041T1WlwQnNCx t5BeIB02Jf/jfBsrOfk3ZGE20w== X-Google-Smtp-Source: AGs4zMZ8S9DaYjTuLpw1ufMT4WNmaON7UXDV4vrOKZ+xsMkz85dZKpl0NV5/crIusRWRKx+Cn03Tvg== X-Received: by 10.28.30.151 with SMTP id e145mr4203963wme.8.1510508755825; Sun, 12 Nov 2017 09:45:55 -0800 (PST) Received: from localhost.localdomain (2a01cb0886107300fc501d253e69f7ad.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:fc50:1d25:3e69:f7ad]) by smtp.gmail.com with ESMTPSA id b15sm14334449wrh.35.2017.11.12.09.45.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Nov 2017 09:45:54 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 12 Nov 2017 18:45:39 +0100 Message-Id: <9fd0b864668a90afaf2c40774451219068ca7547.1510508733.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: Subject: [Buildroot] [PATCH 01/14] core: sort packages and eliminate duplicates in show-targets 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: Thomas Petazzoni , "Yann E. MORIN" , Peter Korsgaard MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Currently, enabling more than one filesystem image will make 'show-targets' list a few host packages more than once. This is because all filesystem images add the same set of host-packages to their dependencies, which are then added as-is to the package list. Thus, host-fakeroot, host-makedevs and, if needed, host-mkpasswd will appear as many times as there are filesystem images enabled. Fix that by sorting the package list, thus eliminating duplicates from that list. Also sort the rootfs list for good measure. Sort the two separately, so that rootfses are last. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Cc: Arnout Vandecappelle Cc: Peter Korsgaard Reviewed-by: Romain Naour --- Changes v1 -> v2: - don't toch the variable; just sort the list when dumping it --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9240d0aeeb..19bfcfbee3 100644 --- a/Makefile +++ b/Makefile @@ -789,7 +789,7 @@ legal-info: dirs legal-info-clean legal-info-prepare $(foreach p,$(PACKAGES),$(p .PHONY: show-targets show-targets: - @echo $(PACKAGES) $(TARGETS_ROOTFS) + @echo $(sort $(PACKAGES)) $(sort $(TARGETS_ROOTFS)) .PHONY: show-build-order show-build-order: $(patsubst %,%-show-build-order,$(PACKAGES))