[yocto] PACKAGES_DYNAMIC handling in multilib
Xu, Dongxiao
dongxiao.xu at intel.com
Mon Jul 11 19:55:41 PDT 2011
Hi Richard,
Recently I am doing some work related with multilib.
In current code logic, I see packages that defined in "PACKAGES" variable will be automatically tagged with libxx-PN.
However there seems no logic to handle the PACKAGES_DYNAMIC case. Is it missed?
Besides, there is runtime package split code, for example in perl recipe, there are perl-module-* packages split by the following code.
python populate_packages_prepend () {
libdir = bb.data.expand('${libdir}/perl/${PV}', d)
do_split_packages(d, libdir, 'auto/(Encode/.[^/]*)/.*', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True, prepend=False)
do_split_packages(d, libdir, 'auto/([^/]*)/.*', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True, prepend=False)
do_split_packages(d, libdir, 'Module/([^\/]*).*', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True, prepend=False)
do_split_packages(d, libdir, '(^(?!(CPAN\/|CPANPLUS\/|Module\/|unicore\/|auto\/)[^\/]).*)\.(pm|pl|e2x)', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True, prepend=False)
}
To support lib32-perl/lib64-perl and other similar recipes, I think we may have to specifically handle such pieces of code in current poky.
Do you have suggestions on the above?
Thanks,
Dongxiao
More information about the yocto
mailing list