From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by mail.openembedded.org (Postfix) with ESMTP id E492562009 for ; Wed, 10 Jul 2013 12:41:07 +0000 (UTC) Received: by mail-ee0-f53.google.com with SMTP id c41so4854447eek.12 for ; Wed, 10 Jul 2013 05:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=6Gn2UsQ+7Dkue9IN6B2L5lHxAqmKFZ7bxco6PhHCAVU=; b=xlC0Ftmbvs7w5oPRd7ARwd718V23xRzPlHlNtzsZNf5nXgr8soEJJiUVKi9Oof2eFR jH/bJvma2hd/bPjSm1j3PEfizSBeTi+1Ev00I+vgy/uE7fZ28aS6A/aiLGXbZd59mwkX IZTBW+gRpeTHwS0fz4KCa4pSzVkGEXksKju2qTxS9WOpVumV2tUwCXCfVaXW5yHW+iEK Mhll+PyOV9ZP5T2n2yV31VQdaaO4JLnNjkaZ00TRpjZtXsGeSUMDCCHd/c9+hRYC8KIm GXwLbXcoQXKJMfurVQIJKLbAqBibfm91+Z/rXqylHM4aoUCS9nbtF0dtSfJrpytmi7WD aYdQ== X-Received: by 10.15.33.13 with SMTP id b13mr36282334eev.0.1373460067809; Wed, 10 Jul 2013 05:41:07 -0700 (PDT) Received: from localhost (ip-62-24-80-145.net.upcbroadband.cz. [62.24.80.145]) by mx.google.com with ESMTPSA id e44sm59637702eeh.11.2013.07.10.05.41.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 10 Jul 2013 05:41:07 -0700 (PDT) Date: Wed, 10 Jul 2013 14:41:15 +0200 From: Martin Jansa To: openembedded-core@lists.openembedded.org Message-ID: <20130710124115.GB3288@jama> References: <20130706213931.GD3288@jama> <1373459893-23611-1-git-send-email-Martin.Jansa@gmail.com> MIME-Version: 1.0 In-Reply-To: <1373459893-23611-1-git-send-email-Martin.Jansa@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [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:41:08 -0000 X-Groupsio-MsgNum: 41735 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fGPQ8TN6VVAOY/Hs" Content-Disposition: inline --fGPQ8TN6VVAOY/Hs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 10, 2013 at 02:38:13PM +0200, Martin Jansa wrote: > Signed-off-by: Martin Jansa > --- > scripts/test-dependencies.sh | 253 +++++++++++++++++++++++++++++++++++++= ++++++ > 1 file changed, 253 insertions(+) > create mode 100755 scripts/test-dependencies.sh Build with last version of this script is still running (after 37 hours) Building recipe: gnome-desktop (485/1848) but I've tested it in smaller builds and I'm happy with current functionality, I'll send found issues in tomorrow or day after that when the build is complete. > 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=3D > +targets=3D > +recipes=3D > +buildhistory=3D > +buildtype=3D > +default_targets=3D"world" > +default_buildhistory=3D"buildhistory" > +default_buildtype=3D"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