# To create/update the perl-rdepends_${PV}.inc use this piece of ugly script (modified for your arch/paths etc):

#[nitin@buildbox packages-split]$ pwd
#/home/nitin/build/build3/tmp/work/i586-poky-linux/perl-5.8.8-r21/packages-split
#/home/nitin/poky.git/build/tmp/work/x86_64-poky-linux/perl-5.12.2-r0/packages-split

#egrep -r "use|require" perl-module-* | grep ";" | egrep "\.pm:require | \.pm:use" | sed "s-/.*\.pm: *- += -g" | sed "s/[\"\']//g" | sed "s/;.*/\"/g" | sed "s/require */\"perl-module-/g" | sed "s/CPANPLUS::.*/cpanplus/g" | sed "s/CPAN::.*/cpan/g" | tr [:upper:] [:lower:] | sed "s/::/-/g" | grep -v perl-module-5 | sed "s/ [^+\"].*//g" | grep -v "\\$" | sed "s/_/-/g" | sed "s/\.pl\"$/\"/" | grep -v "\-vms\-" | sort -u > /tmp/1
#find . -type f | sed "s-\./--" | sed "s-/.*--" | sort -u > /tmp/2
#cat /tmp/1 | cut -f3 -d" " | sed "s/[\"\']//g" | sort -u > /tmp/3
## these dependancies do not exist
#diff -u /tmp/2 /tmp/3 | grep ^+perl-module


# Some additional dependencies that the above doesn't manage to figure out
RDEPENDS_perl-module-math-bigint += "perl-module-math-bigint-calc "
RDEPENDS_perl-module-math-bigint-calc += "perl-module-integer "

# Depends list
# copy contents of /tmp/1 in this file
RDEPENDS_perl-module-archive-tar += "perl-module-exporter"
RDEPENDS_perl-module-archive-tar-file += "perl-module-archive-tar"
RDEPENDS_perl-module-attributes += "perl-module-xsloader"
RDEPENDS_perl-module-b += "perl-module-exporter"
RDEPENDS_perl-module-b-debug += "perl-module-b"
RDEPENDS_perl-module-bignum += "perl-module-bigint"
RDEPENDS_perl-module-bigrat += "perl-module-bigint"
RDEPENDS_perl-module-bigrat += "perl-module-exporter"
RDEPENDS_perl-module-carp += "perl-module-exporter"
RDEPENDS_perl-module-cgi-util += "perl-module-exporter"
RDEPENDS_perl-module-class-struct += "perl-module-exporter"
RDEPENDS_perl-module-compress-raw-bzip2 += "perl-module-exporter"
RDEPENDS_perl-module-compress-raw-zlib += "perl-module-exporter"
RDEPENDS_perl-module-compress-zlib += "perl-module-exporter"
RDEPENDS_perl-module-config-extensions += "perl-module-exporter"
RDEPENDS_perl-module-cpanplus += "perl-module-base"
RDEPENDS_perl-module-cpanplus += "perl-module-exporter"
RDEPENDS_perl-module-cpanplus += "perl-module-tie-hash"
RDEPENDS_perl-module-data-dumper += "perl-module-exporter"
RDEPENDS_perl-module-data-dumper += "perl-module-overload"
RDEPENDS_perl-module-devel-peek += "perl-module-exporter"
RDEPENDS_perl-module-devel-selfstubber += "perl-module-selfloader"
RDEPENDS_perl-module-digest-md5 += "perl-module-exporter"
RDEPENDS_perl-module-digest-sha += "perl-module-dynaloader"
RDEPENDS_perl-module-digest-sha += "perl-module-exporter"
RDEPENDS_perl-module-dynaloader += "perl-module-autoloader"
RDEPENDS_perl-module-encode += "perl-module-encode-config"
RDEPENDS_perl-module-encode += "perl-module-exporter"
RDEPENDS_perl-module-encode-cjkconstants += "perl-module-exporter"
RDEPENDS_perl-module-encode-encoder += "perl-module-exporter"
RDEPENDS_perl-module-encode-encoding += "perl-module-encode"
RDEPENDS_perl-module-encode-unicode += "perl-module-encode"
RDEPENDS_perl-module-english += "perl-module-exporter"
RDEPENDS_perl-module-exporter-heavy += "perl-module-exporter"
RDEPENDS_perl-module-extutils-command += "perl-module-exporter"
RDEPENDS_perl-module-extutils-command-mm += "perl-module-exporter"
RDEPENDS_perl-module-extutils-constant-proxysubs += "perl-module-extutils-constant-xs"
RDEPENDS_perl-module-extutils-constant-xs += "perl-module-extutils-constant-base"
RDEPENDS_perl-module-extutils-embed += "perl-module-exporter"
RDEPENDS_perl-module-extutils-embed += "perl-module-filehandle"
RDEPENDS_perl-module-extutils-liblist += "perl-module-extutils-liblist-kid"
RDEPENDS_perl-module-extutils-makemaker += "perl-module-exporter"
RDEPENDS_perl-module-extutils-makemaker += "perl-module-extutils-mm"
RDEPENDS_perl-module-extutils-makemaker += "perl-module-extutils-my"
RDEPENDS_perl-module-extutils-manifest += "perl-module-exporter"
RDEPENDS_perl-module-extutils-miniperl += "perl-module-exporter"
RDEPENDS_perl-module-extutils-mkbootstrap += "perl-module-exporter"
RDEPENDS_perl-module-extutils-mm += "perl-module-extutils-liblist"
RDEPENDS_perl-module-extutils-mm += "perl-module-extutils-makemaker"
RDEPENDS_perl-module-extutils-mm-aix += "perl-module-extutils-mm-unix"
RDEPENDS_perl-module-extutils-mm-beos += "perl-module-extutils-mm-any"
RDEPENDS_perl-module-extutils-mm-beos += "perl-module-extutils-mm-unix"
RDEPENDS_perl-module-extutils-mm-cygwin += "perl-module-extutils-mm-unix"
RDEPENDS_perl-module-extutils-mm-cygwin += "perl-module-extutils-mm-win32"
RDEPENDS_perl-module-extutils-mm-dos += "perl-module-extutils-mm-any"
RDEPENDS_perl-module-extutils-mm-dos += "perl-module-extutils-mm-unix"
RDEPENDS_perl-module-extutils-mm-nw5 += "perl-module-extutils-mm-win32"
RDEPENDS_perl-module-extutils-mm-os2 += "perl-module-extutils-mm-any"
RDEPENDS_perl-module-extutils-mm-os2 += "perl-module-extutils-mm-unix"
RDEPENDS_perl-module-extutils-mm-qnx += "perl-module-extutils-mm-unix"
RDEPENDS_perl-module-extutils-mm-unix += "perl-module-extutils-mm-any"
RDEPENDS_perl-module-extutils-mm-uwin += "perl-module-extutils-mm-unix"
RDEPENDS_perl-module-extutils-mm-vms += "perl-module-exporter"
RDEPENDS_perl-module-extutils-mm-vms += "perl-module-extutils-mm-any"
RDEPENDS_perl-module-extutils-mm-vms += "perl-module-extutils-mm-unix"
RDEPENDS_perl-module-extutils-mm-vos += "perl-module-extutils-mm-unix"
RDEPENDS_perl-module-extutils-mm-win32 += "perl-module-extutils-mm-any"
RDEPENDS_perl-module-extutils-mm-win32 += "perl-module-extutils-mm-unix"
RDEPENDS_perl-module-extutils-mm-win95 += "perl-module-extutils-mm-win32"
RDEPENDS_perl-module-extutils-my += "perl-module-extutils-mm"
RDEPENDS_perl-module-extutils-parsexs += "perl-module-exporter"
RDEPENDS_perl-module-fcntl += "perl-module-exporter"
RDEPENDS_perl-module-file-basename += "perl-module-exporter"
RDEPENDS_perl-module-file-compare += "perl-module-exporter"
RDEPENDS_perl-module-file-copy += "perl-module-exporter"
RDEPENDS_perl-module-file-find += "perl-module-cwd"
RDEPENDS_perl-module-file-find += "perl-module-exporter"
RDEPENDS_perl-module-file-find += "perl-module-file-basename"
RDEPENDS_perl-module-file-find += "perl-module-file-spec"
RDEPENDS_perl-module-file-spec-cygwin += "perl-module-file-spec-unix"
RDEPENDS_perl-module-file-spec-epoc += "perl-module-file-spec-unix"
RDEPENDS_perl-module-file-spec-functions += "perl-module-exporter"
RDEPENDS_perl-module-file-spec-mac += "perl-module-file-spec-unix"
RDEPENDS_perl-module-file-spec-os2 += "perl-module-file-spec-unix"
RDEPENDS_perl-module-file-spec-vms += "perl-module-file-spec-unix"
RDEPENDS_perl-module-file-spec-win32 += "perl-module-file-spec-unix"
RDEPENDS_perl-module-file-temp += "perl-module-symbol"
RDEPENDS_perl-module-filehandle += "perl-module-io-file"
RDEPENDS_perl-module-filter-util-call += "perl-module-dynaloader"
RDEPENDS_perl-module-filter-util-call += "perl-module-exporter"
RDEPENDS_perl-module-findbin += "perl-module-exporter"
RDEPENDS_perl-module-getopt-std += "perl-module-exporter"
RDEPENDS_perl-module-hash-util += "perl-module-dynaloader"
RDEPENDS_perl-module-hash-util += "perl-module-exporter"
RDEPENDS_perl-module-hash-util-fieldhash += "perl-module-exporter"
RDEPENDS_perl-module-i18n-collate += "perl-module-exporter"
RDEPENDS_perl-module-i18n-langinfo += "perl-module-dynaloader"
RDEPENDS_perl-module-i18n-langinfo += "perl-module-exporter"
RDEPENDS_perl-module-i18n-langtags += "perl-module-exporter"
RDEPENDS_perl-module-inc-latest += "perl-module-inc-latest-private"
RDEPENDS_perl-module-io-compress-base-common += "perl-module-exporter"
RDEPENDS_perl-module-io-compress-bzip2 += "perl-module-exporter "
RDEPENDS_perl-module-io-compress-deflate += "perl-module-exporter "
RDEPENDS_perl-module-io-compress-gzip += "perl-module-exporter "
RDEPENDS_perl-module-io-compress-gzip-constants += "perl-module-exporter"
RDEPENDS_perl-module-io-compress-rawdeflate += "perl-module-exporter "
RDEPENDS_perl-module-io-compress-zip += "perl-module-exporter "
RDEPENDS_perl-module-io-compress-zip-constants += "perl-module-exporter"
RDEPENDS_perl-module-io-compress-zlib-constants += "perl-module-exporter"
RDEPENDS_perl-module-io-file += "perl-module-exporter"
RDEPENDS_perl-module-io-handle += "perl-module-exporter"
RDEPENDS_perl-module-io-seekable += "perl-module-exporter"
RDEPENDS_perl-module-io-select += "perl-module-exporter"
RDEPENDS_perl-module-io-socket += "perl-module-io-socket-inet"
RDEPENDS_perl-module-io-socket += "perl-module-io-socket-unix"
RDEPENDS_perl-module-io-uncompress-anyinflate += "perl-module-exporter "
RDEPENDS_perl-module-io-uncompress-anyuncompress += "perl-module-exporter "
RDEPENDS_perl-module-io-uncompress-bunzip2 += "perl-module-exporter "
RDEPENDS_perl-module-io-uncompress-gunzip += "perl-module-exporter "
RDEPENDS_perl-module-io-uncompress-inflate += "perl-module-exporter "
RDEPENDS_perl-module-io-uncompress-rawinflate += "perl-module-exporter "
RDEPENDS_perl-module-io-uncompress-unzip += "perl-module-exporter "
RDEPENDS_perl-module-ipc-cmd += "perl-module-carp"
RDEPENDS_perl-module-ipc-open2 += "perl-module-exporter"
RDEPENDS_perl-module-ipc-open2 += "perl-module-ipc-open3"
RDEPENDS_perl-module-ipc-open3 += "perl-module-exporter"
RDEPENDS_perl-module-ipc-sysv += "perl-module-exporter"
RDEPENDS_perl-module-list-util += "perl-module-exporter"
RDEPENDS_perl-module-list-util-pp += "perl-module-exporter"
RDEPENDS_perl-module-locale-constants += "perl-module-exporter"
RDEPENDS_perl-module-locale-country += "perl-module-exporter"
RDEPENDS_perl-module-locale-currency += "perl-module-exporter"
RDEPENDS_perl-module-locale-language += "perl-module-exporter"
RDEPENDS_perl-module-locale-script += "perl-module-exporter"
RDEPENDS_perl-module-math-bigfloat += "perl-module-exporter"
RDEPENDS_perl-module-math-complex += "perl-module-exporter"
RDEPENDS_perl-module-math-trig += "perl-module-exporter"
RDEPENDS_perl-module-mime-base64 += "perl-module-exporter"
RDEPENDS_perl-module-mime-base64 += "perl-module-xsloader"
RDEPENDS_perl-module-mime-quotedprint += "perl-module-exporter"
RDEPENDS_perl-module-mro += "perl-module-xsloader"
RDEPENDS_perl-module-net-cmd += "perl-module-exporter"
RDEPENDS_perl-module-net-config += "perl-module-exporter"
RDEPENDS_perl-module-net-domain += "perl-module-exporter"
RDEPENDS_perl-module-net-ftp-a += "perl-module-net-ftp-dataconn"
RDEPENDS_perl-module-net-ftp-e += "perl-module-net-ftp-i"
RDEPENDS_perl-module-net-ftp-i += "perl-module-net-ftp-dataconn"
RDEPENDS_perl-module-net-ftp-l += "perl-module-net-ftp-i"
RDEPENDS_perl-module-net-ping += "perl-module-exporter"
RDEPENDS_perl-module-net-time += "perl-module-exporter"
RDEPENDS_perl-module-object-accessor += "perl-module-overload"
RDEPENDS_perl-module-pod-escapes += "perl-module-exporter"
RDEPENDS_perl-module-pod-functions += "perl-module-exporter"
RDEPENDS_perl-module-pod-html += "perl-module-exporter"
RDEPENDS_perl-module-pod-latex += "perl-module-pod-parseutils"
RDEPENDS_perl-module-pod-simple-transcodesmart += "perl-module-encode"
RDEPENDS_perl-module-pod-usage += "perl-module-pod-select"
RDEPENDS_perl-module-posix += "perl-module-exporter"
RDEPENDS_perl-module-safe += "perl-module-utf8"
RDEPENDS_perl-module-scalar-util += "perl-module-exporter"
RDEPENDS_perl-module-scalar-util += "perl-module-list-util"
RDEPENDS_perl-module-scalar-util-pp += "perl-module-exporter"
RDEPENDS_perl-module-sdbm-file += "perl-module-tie-hash"
RDEPENDS_perl-module-search-dict += "perl-module-exporter"
RDEPENDS_perl-module-socket += "perl-module-exporter"
RDEPENDS_perl-module-storable += "perl-module-carp"
RDEPENDS_perl-module-storable += "perl-module-dynaloader"
RDEPENDS_perl-module-storable += "perl-module-exporter"
RDEPENDS_perl-module-symbol += "perl-module-exporter"
RDEPENDS_perl-module-sys-hostname += "perl-module-autoloader"
RDEPENDS_perl-module-sys-hostname += "perl-module-exporter"
RDEPENDS_perl-module-term-complete += "perl-module-exporter"
RDEPENDS_perl-module-test += "perl-module-exporter"
RDEPENDS_perl-module-test-builder-module += "perl-module-exporter"
RDEPENDS_perl-module-test-builder-tester-color += "perl-module-test-builder-tester"
RDEPENDS_perl-module-text-abbrev += "perl-module-exporter"
RDEPENDS_perl-module-text-tabs += "perl-module-exporter"
RDEPENDS_perl-module-text-wrap += "perl-module-exporter"
RDEPENDS_perl-module-thread += "perl-module-exporter"
RDEPENDS_perl-module-threads += "perl-module-config"
RDEPENDS_perl-module-threads += "perl-module-xsloader"
RDEPENDS_perl-module-time-hires += "perl-module-dynaloader"
RDEPENDS_perl-module-time-hires += "perl-module-exporter"
RDEPENDS_perl-module-time-local += "perl-module-exporter"
RDEPENDS_perl-module-time-piece += "perl-module-dynaloader"
RDEPENDS_perl-module-time-piece += "perl-module-exporter"
RDEPENDS_perl-module-unicode-normalize += "perl-module-dynaloader"
RDEPENDS_perl-module-unicode-normalize += "perl-module-exporter"
RDEPENDS_perl-module-unicode-ucd += "perl-module-exporter"
RDEPENDS_perl-module-universal += "perl-module-exporter"
RDEPENDS_perl-module-warnings-register += "perl-module-warnings"
