From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A6417138A2F for ; Thu, 28 Aug 2014 03:48:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0F4F1E0844; Thu, 28 Aug 2014 03:48:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 94452E0844 for ; Thu, 28 Aug 2014 03:48:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 96F1333BDEA for ; Thu, 28 Aug 2014 03:48:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1F23341AD for ; Thu, 28 Aug 2014 03:48:01 +0000 (UTC) From: "Michael Palimaka" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" Message-ID: <1409195980.d23d93380b5e9beccde37b016e4490a32de7db04.kensington@gentoo> Subject: [gentoo-commits] proj/qa-scripts:master commit in: / X-VCS-Repository: proj/qa-scripts X-VCS-Files: depcheck X-VCS-Directories: / X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: d23d93380b5e9beccde37b016e4490a32de7db04 X-VCS-Branch: master Date: Thu, 28 Aug 2014 03:48:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b2ef9f1d-9aa2-4e1c-a86d-7d699a3673e7 X-Archives-Hash: 755aabf579a7103fa4efab283f7f841f commit: d23d93380b5e9beccde37b016e4490a32de7db04 Author: Michael Palimaka gentoo org> AuthorDate: Thu Aug 28 03:19:40 2014 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Thu Aug 28 03:19:40 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=d23d9338 depcheck: add simple virtual resolution. --- depcheck | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/depcheck b/depcheck index 39cd29c..549fe52 100755 --- a/depcheck +++ b/depcheck @@ -146,6 +146,18 @@ check_atom() { isdep=`qdepends -r ${atom} | grep ${libowner_pn}` if [ $? -ne 0 ]; then + + debug Checking if ${libowner_pn} is provided by a virtual + for virtual in $(qdepends --nocolor --name-only --rdepend --query ${libowner_pn} | grep ^virtual/) + do + debug Checking if ${virtual} is in dependencies + local isvirtualdep=$(qdepends -r ${atom} | grep ${virtual}) + + if [ $? -eq 0 ]; then + continue 2 + fi + done + eerror "${obj} links to ${link}" eindent eerror Missing dependency on $(bold ${libowner_pn})