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 1SMIwj-0002h1-BE for garchives@archives.gentoo.org; Mon, 23 Apr 2012 13:04:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5428EE0C35; Mon, 23 Apr 2012 13:04:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 26D7DE0C35 for ; Mon, 23 Apr 2012 13:04:32 +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 86DE81B4139 for ; Mon, 23 Apr 2012 13:04:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 5033FE542C for ; Mon, 23 Apr 2012 13:04:30 +0000 (UTC) From: "Torsten Veller" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Torsten Veller" Message-ID: <1335183569.14b720dbd54ee634a0912e99ccb382c3149f7e2c.tove@gentoo> Subject: [gentoo-commits] proj/perl-overlay:master commit in: eclass/ X-VCS-Repository: proj/perl-overlay X-VCS-Files: eclass/perl-module.eclass X-VCS-Directories: eclass/ X-VCS-Committer: tove X-VCS-Committer-Name: Torsten Veller X-VCS-Revision: 14b720dbd54ee634a0912e99ccb382c3149f7e2c X-VCS-Branch: master Date: Mon, 23 Apr 2012 13:04:30 +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: 55b544f6-154e-4baa-919d-f2bfa78a6813 X-Archives-Hash: 41588c04b622bd6ba643d940edb89f0a commit: 14b720dbd54ee634a0912e99ccb382c3149f7e2c Author: Torsten Veller gentoo org> AuthorDate: Mon Apr 23 11:23:49 2012 +0000 Commit: Torsten Veller gentoo org> CommitDate: Mon Apr 23 12:19:29 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/perl-overlay.= git;a=3Dcommit;h=3D14b720db perl-module.eclass: Check if MODULE_VERSION and PV match --- eclass/perl-module.eclass | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index 4bb37ff..0a80a99 100644 --- a/eclass/perl-module.eclass +++ b/eclass/perl-module.eclass @@ -281,12 +281,25 @@ perlinfo() { perl_set_version } =20 +perl_check_module_version() { + local REAL_PV + local gpmv=3D"$(type -p gentoo-perlmod-version.pl)" + [[ -n ${MODULE_VERSION} && -n ${gpmv} && -x ${gpmv} ]] || return + REAL_PV=3D$( ${gpmv} --oneshot "${MODULE_VERSION}" ) + if [[ ${REAL_PV} !=3D ${PV} ]] ; then + eqawarn "QA Notice: Based on MODULE_VERSION=3D${MODULE_VERSION} the eb= uild version ${PV} is wrong!" + eqawarn " The ebuild version should be ${REAL_PV}" + fi +} + perl_set_version() { debug-print-function $FUNCNAME "$@" debug-print "$FUNCNAME: perlinfo_done=3D${perlinfo_done}" ${perlinfo_done} && return 0 perlinfo_done=3Dtrue =20 + perl_check_module_version + local f version install{{site,vendor}{arch,lib},archlib} eval "$(perl -V:{version,install{{site,vendor}{arch,lib},archlib}} )" PERL_VERSION=3D${version}