From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SahlN-0002pS-L0 for garchives@archives.gentoo.org; Sat, 02 Jun 2012 06:24:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A54C8E0486; Sat, 2 Jun 2012 06:24:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 63A41E0486 for ; Sat, 2 Jun 2012 06:24:30 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D26C1B4018 for ; Sat, 2 Jun 2012 06:24:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C253FE5428 for ; Sat, 2 Jun 2012 06:24:27 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1338618109.f32f9308393fe9e6ef9143ac852479ec63bc8a70.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/checks.py X-VCS-Directories: pym/repoman/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: f32f9308393fe9e6ef9143ac852479ec63bc8a70 X-VCS-Branch: master Date: Sat, 2 Jun 2012 06:24:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 355db756-85b8-487c-b269-5128c5835fb4 X-Archives-Hash: c224d5e73466b6a9f6c13bc7b7eec366 commit: f32f9308393fe9e6ef9143ac852479ec63bc8a70 Author: Zac Medico gentoo org> AuthorDate: Sat Jun 2 06:21:49 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Jun 2 06:21:49 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Df32f9308 InheritEclass: exempt eclasses that export src_* We really need to annotate exceptions like these directly in the eclasses, but hardcode them for now. --- pym/repoman/checks.py | 38 +++++++++++++++++++++++++++++++++++--- 1 files changed, 35 insertions(+), 3 deletions(-) diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index ab93ac9..62c735e 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -481,7 +481,8 @@ class InheritEclass(LineCheck): self._inherit =3D False self._func_call =3D False if self._exempt_eclasses is not None: - self._disabled =3D any(x in pkg.inherited for x in self._exempt_eclas= ses) + inherited =3D pkg.inherited + self._disabled =3D any(x in inherited for x in self._exempt_eclasses) else: self._disabled =3D False =20 @@ -504,6 +505,37 @@ class InheritEclass(LineCheck): self.repoman_check_name =3D 'inherit.unused' yield 'no function called from %s.eclass; please drop' % self._eclass =20 +# eclasses that export ${ECLASS}_src_(compile|configure|install) +_eclass_export_functions =3D ( + 'ant-tasks', 'apache-2', 'apache-module', 'aspell-dict', + 'autotools-utils', 'base', 'bsdmk', 'cannadic', + 'clutter', 'cmake-utils', 'db', 'distutils', 'elisp', + 'embassy', 'emboss', 'emul-linux-x86', 'enlightenment', + 'font-ebdftopcf', 'font', 'fox', 'freebsd', 'freedict', + 'games', 'games-ggz', 'games-mods', 'gdesklets', + 'gems', 'gkrellm-plugin', 'gnatbuild', 'gnat', 'gnome2', + 'gnome-python-common', 'gnustep-base', 'go-mono', 'gpe', + 'gst-plugins-bad', 'gst-plugins-base', 'gst-plugins-good', + 'gst-plugins-ugly', 'gtk-sharp-module', 'haskell-cabal', + 'horde', 'java-ant-2', 'java-pkg-2', 'java-pkg-simple', + 'java-virtuals-2', 'kde4-base', 'kde4-meta', 'kernel-2', + 'latex-package', 'linux-mod', 'mozlinguas', 'myspell', + 'myspell-r2', 'mysql', 'mysql-v2', 'mythtv-plugins', + 'oasis', 'obs-service', 'office-ext', 'perl-app', + 'perl-module', 'php-ext-base-r1', 'php-ext-pecl-r2', + 'php-ext-source-r2', 'php-lib-r1', 'php-pear-lib-r1', + 'php-pear-r1', 'python-distutils-ng', 'python', + 'qt4-build', 'qt4-r2', 'rox-0install', 'rox', 'ruby', + 'ruby-ng', 'scsh', 'selinux-policy-2', 'sgml-catalog', + 'stardict', 'sword-module', 'tetex-3', 'tetex', + 'texlive-module', 'toolchain-binutils', 'toolchain', + 'twisted', 'vdr-plugin-2', 'vdr-plugin', 'vim', + 'vim-plugin', 'vim-spell', 'virtuoso', 'vmware', + 'vmware-mod', 'waf-utils', 'webapp', 'xemacs-elisp', + 'xemacs-packages', 'xfconf', 'x-modular', 'xorg-2', + 'zproduct' +) + _eclass_info =3D { 'autotools': { 'funcs': ( @@ -531,7 +563,7 @@ _eclass_info =3D { 'comprehensive': False, =20 # These are "eclasses are the whole ebuild" type thing. - 'exempt_eclasses': ('base', 'cmake-utils', 'kde4-base', 'toolchain', '= toolchain-binutils', 'vim'), + 'exempt_eclasses': _eclass_export_functions, =20 #'inherited_api': ('multilib', 'user',), }, @@ -557,7 +589,7 @@ _eclass_info =3D { ), =20 # These are "eclasses are the whole ebuild" type thing. - 'exempt_eclasses': ('cmake-utils', 'kde4-base'), + 'exempt_eclasses': _eclass_export_functions, =20 'comprehensive': False },