From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ea0-f176.google.com (mail-ea0-f176.google.com [209.85.215.176]) by mail.openembedded.org (Postfix) with ESMTP id 1DFFC6AD31 for ; Sat, 6 Jul 2013 21:24:40 +0000 (UTC) Received: by mail-ea0-f176.google.com with SMTP id z15so2102042ead.21 for ; Sat, 06 Jul 2013 14:24:41 -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:x-mailer:in-reply-to:references; bh=e3QdhqqdP7xzLU1Qosb8beKABkecUN2/3Gt5Mz4DzbI=; b=OJJjd5xAH1/o+js0qWpb5JtkFphVxXk8spT3JEdpgasWXhS9LjpckGY4HTohl8k0QC bIbvbaVmF4kp3K0L0osyH1a9xOrJBGLtZV1Wp6ewOdk39hHbc4v8K2jKYSBwmvq2aB+6 mBghXF6k/DCgHA7f3Vy6iKGvkG5NdiQ1YRvkQb0gv8NaaCVjN1WJ0r7niSmUwRUTJq0J NmHCVmYanbaeCGLKJ9ivrozwhw2iKZSi9JLoWAgwlxxhxHpfqfJtPHpeAsaualPJHYW9 qDTs6qF8DImOsMflxGJputLyJSSI+jxn3e+zZKcIPmBXiZDh1Bz1+Hs5B2KDb7zTced3 OlLg== X-Received: by 10.14.220.66 with SMTP id n42mr17708431eep.67.1373145881241; Sat, 06 Jul 2013 14:24:41 -0700 (PDT) Received: from localhost (ip-62-24-80-145.net.upcbroadband.cz. [62.24.80.145]) by mx.google.com with ESMTPSA id e44sm27059407eeh.11.2013.07.06.14.24.40 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 06 Jul 2013 14:24:40 -0700 (PDT) From: Martin Jansa To: openembedded-core@lists.openembedded.org Date: Sat, 6 Jul 2013 23:24:46 +0200 Message-Id: <1373145886-26565-1-git-send-email-Martin.Jansa@gmail.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <20130706122934.GC3288@jama> References: <20130706122934.GC3288@jama> Subject: [RFC][PATCH] test-dependencies: add simple script to detect missing or autoenabled dependencies 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: Sat, 06 Jul 2013 21:24:41 -0000 Signed-off-by: Martin Jansa --- scripts/test-dependencies.sh | 250 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 250 insertions(+) create mode 100755 scripts/test-dependencies.sh diff --git a/scripts/test-dependencies.sh b/scripts/test-dependencies.sh new file mode 100755 index 0000000..99e2ca0 --- /dev/null +++ b/scripts/test-dependencies.sh @@ -0,0 +1,250 @@ +#!/bin/sh + +# Used to detect missing dependencies or automagically +# enabled dependencies which aren't explicitly enabled +# or disabled. + +# It does 3 builds of +# 1st to populate sstate-cache directory and sysroot +# 2nd to rebuild each recipe with every possible +# dependency found in sysroot (which stays populated +# from 1st build +# 3rd to rebuild each recipe only with dependencies defined +# in DEPENDS +# 4th (optional) repeat build like 3rd to make sure that +# minimal versions of dependencies defined in DEPENDS +# is also enough + +# Global vars +tmpdir= +targets= +recipes= +buildhistory= +buildtype= +default_targets="world" +default_buildhistory="buildhistory" +default_buildtype="1 2 3 c" + +usage () { + cat << EOF +Welcome to utility to detect missing or autoenabled dependencies. +WARNING: this utility will completely remove your tmpdir (make sure + you don't have important buildhistory or persistent dir there). +$0