summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2011-10-11 01:35:37 +0200
committerJustin Davis <jrcd83@gmail.com>2011-10-11 01:35:37 +0200
commit149f290407cb1c1904f098dc2872544655f242a6 (patch)
treeb81595b08683596a8aefface782c4681a3092238 /bin
parenta025c50766562ac95a3c469c17b544ddfb081b08 (diff)
downloadgenpkg-149f290407cb1c1904f098dc2872544655f242a6.tar.gz
genpkg-149f290407cb1c1904f098dc2872544655f242a6.tar.xz
Include dependencies on core perl modules. Use the new provides list.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/metas/perl.d/perl-dist26
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);