From 149f290407cb1c1904f098dc2872544655f242a6 Mon Sep 17 00:00:00 2001 From: Justin Davis Date: Mon, 10 Oct 2011 19:35:37 -0400 Subject: Include dependencies on core perl modules. Use the new provides list. --- bin/metas/perl.d/perl-dist | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'bin') diff --git a/bin/metas/perl.d/perl-dist b/bin/metas/perl.d/perl-dist index a27ee7b..c6ae35b 100755 --- a/bin/metas/perl.d/perl-dist +++ b/bin/metas/perl.d/perl-dist @@ -176,32 +176,6 @@ sub _reqs2deps next CPAN_DEP_LOOP; } -# Ideally we could take advantage of the perl package's provides list -# and add dependencies for core modules. - -# This is more robust and handles the problem of packages built -# with a different version of perl than the perl that is present -# when the package is installed. - -# The problem is that the perl package provides list still needs work. -# While I was trying to generate a provides list I noticed the -# Module::CoreList module had some incorrect version numbers -# as well. So until I get around to reporting these bugs I will -# just go back to not depending on packages provided by perl. - - # 0+$] is needed to force the perl version into number-dom - # otherwise trailing zeros cause problems - my $bundled_version = $Module::CoreList::version{0+$]}->{$name}; - if($bundled_version) { - # Avoid parsing an empty string (causes an error) or 0. - next CPAN_DEP_LOOP unless($ver); - - # Avoid parsing a bundled version of 0. Is this possible? - my $bundle_vobj = version->parse($bundled_version); - my $dep_vobj = version->parse($ver); - next CPAN_DEP_LOOP if($bundle_vobj >= $dep_vobj); - } - my $dist = _distofmod($name); my $pkgname = dist_pkgname($dist); -- cgit v1.2.3-24-g4f1b