Return-Path: Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by mail.openembedded.org (Postfix) with ESMTP id E58CD7E542 for ; Wed, 21 Aug 2019 14:28:23 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id p77so4906566wme.0 for ; Wed, 21 Aug 2019 07:28:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=Lb3Dho61VNCgxkv/OE3DPZ8Mc1q08I8vid81uK2gbhA=; b=R5foUmLN2LXyoxOeRM8hpJjfzebtRviahU9AeFM48jc21vLEsU4MdUALxRgGvBLJvM 6ehCZlYnjiQPKuM11hVYUn2bsG0iBxUXkfwT01x9B05qK1LzwmkFJwC4K6hNH8hPg1g5 6KtbUio6kNZ0E/2TV8fuEwoXN2/qZV3S6+V6U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=Lb3Dho61VNCgxkv/OE3DPZ8Mc1q08I8vid81uK2gbhA=; b=PSUMLZu2YyISQHTC/AR1rMMp5eVqYvZvw36bj0LIx0QWs4cqBVjRIlxAt1BIrj0bLb XrnVXSRpRmvlLq1qoQCqQ5oSSk9DUCFcExGijWt54M+ts7gwF9xfX9k3TfWHD5fHStRO MRLczfMGOawvlhXxI0PXMid9WCni4C5I3nMrhcbVHpKkB/h8ckGSItuJfqpAj5l+CV/j sFJORFPdqIVA5gWrgM37nhcig0uBovpUSwJ6177JkCar0TU00zW1I818rcxVKZB8IamF D31seSo2v9RTOGvbFJy9gTyxkzTi577Tx3peL79ohKQwOBEp01dJoorHxXPmZQwbBpay g48g== X-Gm-Message-State: APjAAAXiZniPyskQ1GFsYEgBBg+rPz+Q7fsrlVmERJrP7hjuJxbX6UWb pRJq9VdxA6mpJ7mBzS77nekiyA== X-Google-Smtp-Source: APXvYqyC3F1mdB+SIuHJ0WV8qiJkNnvX85kZl1c1Jck4cIji18qZ20XI3PX56BH0Bon26vRkXfh6Ow== X-Received: by 2002:a7b:cbd3:: with SMTP id n19mr386689wmi.112.1566397704393; Wed, 21 Aug 2019 07:28:24 -0700 (PDT) Received: from hex (5751f4a1.skybroadband.com. [87.81.244.161]) by smtp.gmail.com with ESMTPSA id a141sm4609237wmd.0.2019.08.21.07.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2019 07:28:23 -0700 (PDT) Message-ID: <268e1658f4a122fc7edeefa63cc7d661f296ce3d.camel@linuxfoundation.org> From: Richard Purdie To: Chen Qi , bitbake-devel@lists.openembedded.org Date: Wed, 21 Aug 2019 15:28:22 +0100 In-Reply-To: <95ce0e9944624dbdceaa340b762a32e60f115679.1566378022.git.Qi.Chen@windriver.com> References: <95ce0e9944624dbdceaa340b762a32e60f115679.1566378022.git.Qi.Chen@windriver.com> User-Agent: Evolution 3.32.2-1 MIME-Version: 1.0 Subject: Re: [PATCH 1/1] cooker.py: use depends instead of tdepends to generate recipe-depends.dot X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Aug 2019 14:28:24 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Wed, 2019-08-21 at 17:01 +0800, Chen Qi wrote: > Currently recipe-depends.dot generated by `bitbake -g' is just > a variant of task-depends.dot. It could be generated by removing the > task names from task-depends.dot. In fact, the codes are using the > same data depgraph['tdepends'] to generate the dot files. > > In other words, the current recipe-depends.dot does not provide > additional > information than task-depends.dot. > > What's worse, this is confusing users when they try to find out the > dependencies among recipes. > > e.g. > $ grep xz recipe-depends.dot | grep bzip2 > "bzip2" -> "xz" > "xz" -> "bzip2" > > They would ask why 'bzip2' depends on 'xz' while 'xz' also > depends on 'bzip2'. It looks like a circular dependency. And it's not > helping user finding out which recipe depends on which. > > So change to use depgraph['depends'] to generate the recipe- > depends.dot. > After the change, there's no such confusing. We can't win with this and I'd rather remove it than give misleading information. "depends" doesn't account for rdepends or task dependencies so after this change, task-depends could show A -> B but recipe-depends.dot and this is even more confusing to the user. http://git.yoctoproject.org/cgit.cgi/poky/commit/bitbake/lib/bb/cooker.py?id=6cfc1c83b90c9c9dd5290749aed49896327739e6 is the commit where we attempted to fix this. Keeping a "flattened tree" was done to try and help users but I don't want to go back to where we had misleading information which using "depends" would do. Cheers, Richard