Return-Path: Received: from mail.hundeboll.net (mail.hundeboll.net [88.198.92.70]) by mail.openembedded.org (Postfix) with ESMTP id 9EA2779DF9 for ; Thu, 8 Nov 2018 12:07:30 +0000 (UTC) Received: from zen.localdomain (unknown [85.184.147.232]) by mail.hundeboll.net (Postfix) with ESMTPSA id 5035E1C1AE4; Thu, 8 Nov 2018 13:07:31 +0100 (CET) From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= To: OE Core mailing list Date: Thu, 8 Nov 2018 13:07:27 +0100 Message-Id: <20181108120727.60237-1-martin@geanix.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [PATCH] busybox: make busybox.links.{suid, nosuid} reproducible X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2018 12:07:31 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The busybox.link.* files are generated from autoconf.h and applets.h, which are both auto-generated by the build system. The contents of the two files might be in different order, and so the link files are not reproducble as is. Fix this by sorting the lists using `sort`. Signed-off-by: Martin Hundebøll --- meta/recipes-core/busybox/busybox.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index 10582a7534..09433dd824 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc @@ -184,7 +184,8 @@ do_compile() { oe_runmake busybox_unstripped mv busybox_unstripped busybox.$s oe_runmake busybox.links - mv busybox.links busybox.links.$s + sort busybox.links > busybox.links.$s + rm busybox.links done # hard fail if sh is being linked to the suid busybox (detects bug 10346) -- 2.19.1