[oe-commits] Hongxu Jia : perl_5.14.2.bb: use PACKAGES_DYNAMIC as regexp

git at git.openembedded.org git at git.openembedded.org
Tue Apr 23 12:00:31 UTC 2013


Module: openembedded-core.git
Branch: danny
Commit: a9b639c061faa9a9a4840218c8c44a71b246373e
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a9b639c061faa9a9a4840218c8c44a71b246373e

Author: Hongxu Jia <hongxu.jia at windriver.com>
Date:   Mon Mar 11 14:38:10 2013 +0800

perl_5.14.2.bb: use PACKAGES_DYNAMIC as regexp

bitbake uses PACKAGES_DYNAMIC as regexp
1, use `^' to make matching faster (and it will be more clear
that we're expecting regexp not glob)

2, use `*' to made all those last '-' optional, use .* (or nothing)

3, use `+=' instead of `=' to to keep ${PN}-locale from
bitbake.conf:PACKAGES_DYNAMIC = "^${PN}-locale-.*"

Cherry-pick commit 33b31640bf485bcfefee015e9df81aa9989b322c
Cherry-pick commit fadb4079014514beb7d2d3e6c66f63397d4ebce2

Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>

---

 meta/recipes-devtools/perl/perl_5.14.2.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/perl/perl_5.14.2.bb b/meta/recipes-devtools/perl/perl_5.14.2.bb
index 860080c..3c3a6b8 100644
--- a/meta/recipes-devtools/perl/perl_5.14.2.bb
+++ b/meta/recipes-devtools/perl/perl_5.14.2.bb
@@ -311,8 +311,8 @@ python populate_packages_prepend () {
     d.setVar("RRECOMMENDS_${PN}-modules", d.getVar('PACKAGES', True).replace('${PN}-modules ', '').replace('${PN}-dbg ', '').replace('${PN}-misc ', '').replace('${PN}-dev ', '').replace('${PN}-pod ', '').replace('${PN}-doc ', ''))
 }
 
-PACKAGES_DYNAMIC = "perl-module-*"
-PACKAGES_DYNAMIC_virtclass-nativesdk = "nativesdk-perl-module-*"
+PACKAGES_DYNAMIC += "^perl-module-.*"
+PACKAGES_DYNAMIC_virtclass-nativesdk += "^nativesdk-perl-module-.*"
 
 RPROVIDES_perl-lib = "perl-lib"
 





More information about the Openembedded-commits mailing list