summaryrefslogtreecommitdiff
path: root/recipes/perl/perl_5.8.8.bb
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-08-03 17:09:25 -0700
committerChris Larson <chris_larson@mentor.com>2010-08-03 17:41:44 -0700
commitd67c4e5ba499a054f67d665733d29f873e426db9 (patch)
tree7b0962f2b01ce7a6640f15bd540840b0b86d8d00 /recipes/perl/perl_5.8.8.bb
parent2de66c5504eae14528acd28832fde969672c631c (diff)
Recipe fixups for package_dbg usage
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'recipes/perl/perl_5.8.8.bb')
-rw-r--r--recipes/perl/perl_5.8.8.bb9
1 files changed, 8 insertions, 1 deletions
diff --git a/recipes/perl/perl_5.8.8.bb b/recipes/perl/perl_5.8.8.bb
index 0b9135d0d2..ed489f4ac5 100644
--- a/recipes/perl/perl_5.8.8.bb
+++ b/recipes/perl/perl_5.8.8.bb
@@ -210,11 +210,18 @@ FILES_${PN}-doc = "${datadir}/perl/${PV}/*/*.txt \
RPROVIDES_perl-lib = "perl-lib"
+def all_perl_packages(d):
+ depchains = (d.getVar("DEPCHAIN_POST", True) or "").split()
+ blacklist = ["perl-modules", "perl-misc", "perl-pod", "perl-doc"]
+ for pkg in d.getVar("PACKAGES", True).split():
+ if not pkg in blacklist and not any(pkg.endswith(post) for post in depchains):
+ yield pkg
+
# Create a perl-modules package recommending all the other perl
# packages (actually the non modules packages and not created too)
ALLOW_EMPTY_perl-modules = "1"
PACKAGES_append = " perl-modules "
-RRECOMMENDS_perl-modules = "${@bb.data.getVar('PACKAGES', d, 1).replace('perl-modules ', '').replace('perl-dbg ', '').replace('perl-misc ', '').replace('perl-dev ', '').replace('perl-pod ', '').replace('perl-doc ', '')}"
+RRECOMMENDS_perl-modules = "${@' '.join(all_perl_packages(d))}"
python populate_packages_prepend () {
libdir = bb.data.expand('${libdir}/perl/${PV}', d)