diff options
author | Justin Davis <jrcd83@gmail.com> | 2011-10-11 01:35:37 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2011-10-11 01:35:37 +0200 |
commit | 149f290407cb1c1904f098dc2872544655f242a6 (patch) | |
tree | b81595b08683596a8aefface782c4681a3092238 /bin | |
parent | a025c50766562ac95a3c469c17b544ddfb081b08 (diff) | |
download | genpkg-149f290407cb1c1904f098dc2872544655f242a6.tar.gz genpkg-149f290407cb1c1904f098dc2872544655f242a6.tar.xz |
Include dependencies on core perl modules. Use the new provides list.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/metas/perl.d/perl-dist | 26 |
1 files changed, 0 insertions, 26 deletions
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); |