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 4AD0E138A2F for ; Tue, 19 Aug 2014 07:01:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26022E08CD; Tue, 19 Aug 2014 07:01:07 +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 9E6ABE08CD for ; Tue, 19 Aug 2014 07:01:06 +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 C8434340230 for ; Tue, 19 Aug 2014 07:01:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7645E3A05 for ; Tue, 19 Aug 2014 07:01:04 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1406304684.ea2d9c5a7da408437d36c3f14112088f905d57f1.mgorny@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/repoman X-VCS-Directories: bin/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ea2d9c5a7da408437d36c3f14112088f905d57f1 X-VCS-Branch: master Date: Tue, 19 Aug 2014 07:01:04 +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: 810a824d-6558-4716-a084-a01279788db9 X-Archives-Hash: 2efaae9158a355c0e3208ab8c1644984 commit: ea2d9c5a7da408437d36c3f14112088f905d57f1 Author: Andreas K. Huettel (dilfridge) gentoo org> AuthorDate: Mon Jul 21 20:22:36 2014 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jul 25 16:11:24 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ea2d9c5a repoman: Warn if virtuals depend on perl-core, bug 516428 Reported-by: Andreas K. Hüttel gentoo.org> Authored-by: Andreas K. Hüttel gentoo.org> Reviewed-by: Alexander Berntsen gentoo.org> Signed-off-by: Alexander Berntsen gentoo.org> --- bin/repoman | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/repoman b/bin/repoman index c36ace1..9c5d720 100755 --- a/bin/repoman +++ b/bin/repoman @@ -299,6 +299,7 @@ qahelp = { "dependency.badindev": "User-visible ebuilds with unsatisfied dependencies (matched against *visible* ebuilds) in developing arch", "dependency.badmaskedindev": "Masked ebuilds with unsatisfied dependencies (matched against *all* ebuilds) in developing arch", "dependency.badtilde": "Uses the ~ dep operator with a non-zero revision part, which is useless (the revision is ignored)", + "dependency.perlcore": "This ebuild directly depends on a package in perl-core; it should use the corresponding virtual instead.", "dependency.syntax": "Syntax error in dependency string (usually an extra/missing space/parenthesis)", "dependency.unknown": "Ebuild has a dependency that refers to an unknown package (which may be valid if it is a blocker for a renamed/removed package, or is an alternative choice provided by an overlay)", "file.executable": "Ebuilds, digests, metadata.xml, Manifest, and ChangeLog do not need the executable bit", @@ -386,6 +387,7 @@ qawarnings = set(( "dependency.badindev", "dependency.badmaskedindev", "dependency.badtilde", +"dependency.perlcore", "DESCRIPTION.punctuation", "DESCRIPTION.toolong", "EAPI.deprecated", @@ -2058,6 +2060,13 @@ for x in effective_scanlist: relative_path + ": %s: consider using '%s' instead of '%s'" % (mytype, suspect_virtual[atom.cp], atom)) + if not is_blocker and \ + atom.cp.startswith("perl-core/"): + stats['dependency.perlcore'] += 1 + fails['dependency.perlcore'].append( + relative_path + + ": %s: please use '%s' instead of '%s'" % + (mytype, atom.replace("perl-core/","virtual/perl-"), atom)) if buildtime and \ not is_blocker and \