commit afbc3b99fdbe6e58dcb5d01fc1e15d974a5575a2
Author: Arkadiusz Miƛkiewicz <[email protected]>
Date:   Sun Jan 12 22:38:39 2014 +0100

    - specialcase ExtUtils::CBuilder|Compress::Raw::Bzip2|Compress::Raw::Zlib 
checking (instead of ignoring)

 perl-modules |  1 -
 perl.spec    | 22 +++++++++++++++-------
 2 files changed, 15 insertions(+), 8 deletions(-)
---
diff --git a/perl.spec b/perl.spec
index aeb1075..a8cd80b 100644
--- a/perl.spec
+++ b/perl.spec
@@ -911,8 +911,12 @@ for m in $(awk '!/^#/ && !/^$/{print $1}' %{SOURCE3}); do
        libnet)
                v=$(awk '/^libnet /{print $2; exit}' cpan/libnet/Changes)
                ;;
+       # special cased since do eval on VERSION
+       ExtUtils::CBuilder|Compress::Raw::Bzip2|Compress::Raw::Zlib)
+               v=$(%{__perl} -M$m -e "print 
version->parse(\$$m::VERSION)->numify")
+               ;;
        *)
-               v=$(%{__perl} -M$m -e "print $m->VERSION" )
+               v=$(%{__perl} -M$m -e "print \$$m::VERSION")
                ;;
        esac
        echo "$m = $v"
@@ -921,15 +925,19 @@ echo '# Non-straight named module versions from Perl 
%{ver} distribution.' > per
 for m in $(awk '!/^#/ && !/^$/{print $1"!"$2}' %{SOURCE4}); do
        mn="${m##*!}"
        mp="${m%%!*}"
-       v=$(%{__perl} -M$mn -e "print $mn->VERSION" )
+       case $m in
+       # special cased since do eval on VERSION
+       ExtUtils::CBuilder|Compress::Raw::Bzip2|Compress::Raw::Zlib)
+               v=$(%{__perl} -M$mn -e "print 
version->parse(\$$mn::VERSION)->numify")
+               ;;
+       *)
+               v=$(%{__perl} -M$mn -e "print \$$mn::VERSION")
+               ;;
+       esac
        echo "$mp       $mn = $v"
 done | LC_ALL=C sort >> perl-modules2
 
-# ExtUtils::CBuilder Compress::Raw::Bzip2 Compress::Raw::Zlib ignored due to 
VERSION from the loop above
-# is missing ending '0'
-grep -Ev '^([  ]*$|[;#])' %{SOURCE3} | grep -Ev 
'ExtUtils::CBuilder|Compress::Raw::Bzip2|Compress::Raw::Zlib' > .mods1
-grep -Ev '^([  ]*$|[;#])' perl-modules | grep -Ev 
'ExtUtils::CBuilder|Compress::Raw::Bzip2|Compress::Raw::Zlib' > .mods2
-if ! cmp -s .mods1 .mods2; then
+if ! cmp -s %{SOURCE3} perl-modules; then
        : %{SOURCE3} outdated with $(pwd)/perl-modules
        exit 1
 fi
diff --git a/perl-modules b/perl-modules
index f25746e..dd7d206 100644
--- a/perl-modules
+++ b/perl-modules
@@ -1,5 +1,4 @@
 # Module versions from Perl 5.18.2 distribution.
-# DO NOT REMOVE TRAILING '0' FROM Compress::Raw::* AND ExtUtils::CBuilder 
WITHOUT VERYFYING!
 Archive::Tar = 1.90
 Attribute::Handlers = 0.94
 CGI = 3.63
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl.git/commitdiff/afbc3b99fdbe6e58dcb5d01fc1e15d974a5575a2

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to