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 EE4331388E5 for ; Tue, 28 Oct 2014 17:11:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6BE4DE0899; Tue, 28 Oct 2014 17:11:17 +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 146D8E0899 for ; Tue, 28 Oct 2014 17:11:16 +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 9DE7E3403B9 for ; Tue, 28 Oct 2014 17:11:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DE2568F0F for ; Tue, 28 Oct 2014 17:11:13 +0000 (UTC) From: "Richard Farina" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Farina" Message-ID: <1414516347.e811a9d7c4e31dbbff9eabb0d76ebb8d700d09e6.zerochaos@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: zerochaos X-VCS-Committer-Name: Richard Farina X-VCS-Revision: e811a9d7c4e31dbbff9eabb0d76ebb8d700d09e6 X-VCS-Branch: master Date: Tue, 28 Oct 2014 17:11:13 +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: 2cbaff46-d1e2-4ebe-8ec1-4afeedf66496 X-Archives-Hash: 816be1871220583c090235a4cd69ca7a commit: e811a9d7c4e31dbbff9eabb0d76ebb8d700d09e6 Author: Michael Palimaka gentoo org> AuthorDate: Tue Oct 28 17:12:27 2014 +0000 Commit: Richard Farina gentoo org> CommitDate: Tue Oct 28 17:12:27 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=e811a9d7 dereference symlinks when needed sometimes things like eselect manipulate symlinks that packages are linked to, we need to dereference those symlinks to find the real package to verify the deps --- depcheck | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/depcheck b/depcheck index 265615c..1f669f9 100755 --- a/depcheck +++ b/depcheck @@ -145,8 +145,14 @@ check_atom() { local libowner=`qfile -vqC ${link} | uniq` if [ ! "${libowner}" ]; then - ewarn "Warning: installed file ${obj} is linked to ${link} which is not owned by any installed atom." - continue + local dereferenced=`qfile -vqC $(readlink -f ${link}) | uniq` + if [ "${dereferenced}" ]; then + debug "Deferenced symlink and found real lib owner" + libowner=${dereferenced} + else + ewarn "Warning: installed file ${obj} is linked to ${link} which is not owned by any installed atom." + continue + fi fi debug "Owning package for ${link} is ${libowner}"