[oe-commits] [openembedded-core] 17/31: perl: use PACKAGESPLITFUNCS instead of populate_packages_prepend

git at git.openembedded.org git at git.openembedded.org
Mon May 16 22:25:14 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit f424deb6d14ad35ccbf21424781b08432c8e6cfa
Author: Guojian Zhou <guojian.zhou at windriver.com>
AuthorDate: Mon May 16 16:53:38 2016 +0800

    perl: use PACKAGESPLITFUNCS instead of populate_packages_prepend
    
    This is cleaner and leads to more accurate profiles.
    
    Signed-off-by: Guojian Zhou <guojian.zhou at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/perl/perl_5.22.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/perl/perl_5.22.1.bb b/meta/recipes-devtools/perl/perl_5.22.1.bb
index bf8b3b6..f955e6f 100644
--- a/meta/recipes-devtools/perl/perl_5.22.1.bb
+++ b/meta/recipes-devtools/perl/perl_5.22.1.bb
@@ -340,7 +340,9 @@ FILES_perl-module-unicore += "${libdir}/perl/${PV}/unicore"
 ALLOW_EMPTY_perl-modules = "1"
 PACKAGES_append = " perl-modules "
 
-python populate_packages_prepend () {
+PACKAGESPLITFUNCS_prepend = "split_perl_packages "
+
+python split_perl_packages () {
     libdir = d.expand('${libdir}/perl/${PV}')
     do_split_packages(d, libdir, 'auto/([^.]*)/[^/]*\.(so|ld|ix|al)', 'perl-module-%s', 'perl module %s', recursive=True, match_path=True, prepend=False)
     do_split_packages(d, libdir, 'Module/([^\/]*)\.pm', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True, prepend=False)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list