From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by mail.openembedded.org (Postfix) with ESMTP id B51426A59F for ; Wed, 10 Jul 2013 12:38:09 +0000 (UTC) Received: by mail-ee0-f52.google.com with SMTP id c50so4878094eek.11 for ; Wed, 10 Jul 2013 05:38:09 -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=fx67+YnRAZBjd1Q6AfmfGgHIEW/15oAnk5fK9vIMS7c=; b=pNMSsfzINJZVFhN7ce4h8v32TACe5KampTUbDylLASBHZ3n5Z3N9r/8xMrUvVHOIrr lqZUyWHgKCEthuciT8+7CEz8uNM2kaWmE+GEYisw3rtkmrlwBY6LqKU+t/7/etVTSizm uEq5puQ+VCYusFc0Bs8OBcjKkpfJfxfos6dyExLjjzT1R6q7Kk/3NITei4QCL+YzG4Ow c2Y7LTKueC5lzh+eHOhEewSRH24eWz3hZFfl6xTGaJDNikHj2ZBsRpmG9pP0s9duScey 4dqQzYdtJkSIG+mqBk9atDbyMt285ookNy8VNYQ8ZEO2vBwGSCpFT3mm3jz8VkH6VxYX Puyw== X-Received: by 10.14.47.196 with SMTP id t44mr24979599eeb.18.1373459889386; Wed, 10 Jul 2013 05:38:09 -0700 (PDT) Received: from localhost (ip-62-24-80-145.net.upcbroadband.cz. [62.24.80.145]) by mx.google.com with ESMTPSA id a4sm59746994eez.0.2013.07.10.05.38.07 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 10 Jul 2013 05:38:08 -0700 (PDT) From: Martin Jansa To: openembedded-core@lists.openembedded.org Date: Wed, 10 Jul 2013 14:38:13 +0200 Message-Id: <1373459893-23611-1-git-send-email-Martin.Jansa@gmail.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <20130706213931.GD3288@jama> References: <20130706213931.GD3288@jama> Subject: [PATCHv2] 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: Wed, 10 Jul 2013 12:38:10 -0000 Signed-off-by: Martin Jansa --- scripts/test-dependencies.sh | 253 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 253 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..405c14e --- /dev/null +++ b/scripts/test-dependencies.sh @@ -0,0 +1,253 @@ +#!/bin/sh + +# Author: Martin Jansa +# +# Copyright (c) 2013 Martin Jansa + +# 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