* [PATCH 0/3] Misc fixes for multilib
@ 2012-05-17 9:25 Lianhao Lu
2012-05-17 9:25 ` [PATCH 1/3] (libc-)package.bbclass: Added MLPREFIX to locale packages Lianhao Lu
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Lianhao Lu @ 2012-05-17 9:25 UTC (permalink / raw)
To: openembedded-core
This patch set added a package QA function to detect the potential incorrected
package dependencies for multilib packages.
It also fixed the locale related package name in multilib case reported by the
new package QA function.
The following changes since commit 2cf6e7cf81c0b864b5d51be60094a6eb3e584383:
Andrei Gherzan (1):
fotowall: Add #include ui_wizard.h to ExportWizard.cpp
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib llu/multilib2
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=llu/multilib2
Lianhao Lu (3):
(libc-)package.bbclass: Added MLPREFIX to locale packages.
multilib.conf: Added multilib support for kmod.
multilib.bbclass: Added multilib specific package QA.
meta/classes/libc-package.bbclass | 4 ++--
meta/classes/multilib.bbclass | 31 +++++++++++++++++++++++++++++++
meta/classes/package.bbclass | 5 +++--
meta/conf/multilib.conf | 1 +
4 files changed, 37 insertions(+), 4 deletions(-)
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH 1/3] (libc-)package.bbclass: Added MLPREFIX to locale packages. 2012-05-17 9:25 [PATCH 0/3] Misc fixes for multilib Lianhao Lu @ 2012-05-17 9:25 ` Lianhao Lu 2012-05-17 18:12 ` Khem Raj 2012-05-17 9:25 ` [PATCH 2/3] multilib.conf: Added multilib support for kmod Lianhao Lu ` (2 subsequent siblings) 3 siblings, 1 reply; 7+ messages in thread From: Lianhao Lu @ 2012-05-17 9:25 UTC (permalink / raw) To: openembedded-core Added multilib prefix to the locale related package names/dependencies. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> --- meta/classes/libc-package.bbclass | 4 ++-- meta/classes/package.bbclass | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index 57b6fd9..10f5f87 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass @@ -308,10 +308,10 @@ python package_do_split_gconvs () { pkgname = d.getVar('MLPREFIX') + 'locale-base-' + legitimize_package_name(name) d.setVar('ALLOW_EMPTY_%s' % pkgname, '1') d.setVar('PACKAGES', '%s %s' % (pkgname, d.getVar('PACKAGES', True))) - rprovides = ' virtual-locale-%s' % legitimize_package_name(name) + rprovides = ' %svirtual-locale-%s' % (mlprefix, legitimize_package_name(name)) m = re.match("(.*)_(.*)", name) if m: - rprovides += ' virtual-locale-%s' % m.group(1) + rprovides += ' %svirtual-locale-%s' % (mlprefix, m.group(1)) d.setVar('RPROVIDES_%s' % pkgname, rprovides) if use_bin == "compile": diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 99836e9..6fba5b6 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -400,13 +400,14 @@ python package_do_split_locales() { summary = d.getVar('SUMMARY', True) or pn description = d.getVar('DESCRIPTION', True) or "" locale_section = d.getVar('LOCALE_SECTION', True) + mlprefix = d.getVar('MLPREFIX', True) or "" for l in sorted(locales): ln = legitimize_package_name(l) pkg = pn + '-locale-' + ln packages.append(pkg) d.setVar('FILES_' + pkg, os.path.join(datadir, 'locale', l)) - d.setVar('RDEPENDS_' + pkg, '%s virtual-locale-%s' % (pn, ln)) - d.setVar('RPROVIDES_' + pkg, '%s-locale %s-translation' % (pn, ln)) + d.setVar('RDEPENDS_' + pkg, '%s %svirtual-locale-%s' % (pn, mlprefix, ln)) + d.setVar('RPROVIDES_' + pkg, '%s-locale %s%s-translation' % (pn, mlprefix, ln)) d.setVar('SUMMARY_' + pkg, '%s - %s translations' % (summary, l)) d.setVar('DESCRIPTION_' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l)) if locale_section: -- 1.7.0.4 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] (libc-)package.bbclass: Added MLPREFIX to locale packages. 2012-05-17 9:25 ` [PATCH 1/3] (libc-)package.bbclass: Added MLPREFIX to locale packages Lianhao Lu @ 2012-05-17 18:12 ` Khem Raj 2012-05-17 19:44 ` Richard Purdie 0 siblings, 1 reply; 7+ messages in thread From: Khem Raj @ 2012-05-17 18:12 UTC (permalink / raw) To: Patches and discussions about the oe-core layer On Thu, May 17, 2012 at 2:25 AM, Lianhao Lu <lianhao.lu@intel.com> wrote: > Added multilib prefix to the locale related package names/dependencies. > > Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Does mlprefix already has a leading '-' ? otherwise I think adding a - would make is more readable. > --- > meta/classes/libc-package.bbclass | 4 ++-- > meta/classes/package.bbclass | 5 +++-- > 2 files changed, 5 insertions(+), 4 deletions(-) > > diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass > index 57b6fd9..10f5f87 100644 > --- a/meta/classes/libc-package.bbclass > +++ b/meta/classes/libc-package.bbclass > @@ -308,10 +308,10 @@ python package_do_split_gconvs () { > pkgname = d.getVar('MLPREFIX') + 'locale-base-' + legitimize_package_name(name) > d.setVar('ALLOW_EMPTY_%s' % pkgname, '1') > d.setVar('PACKAGES', '%s %s' % (pkgname, d.getVar('PACKAGES', True))) > - rprovides = ' virtual-locale-%s' % legitimize_package_name(name) > + rprovides = ' %svirtual-locale-%s' % (mlprefix, legitimize_package_name(name)) > m = re.match("(.*)_(.*)", name) > if m: > - rprovides += ' virtual-locale-%s' % m.group(1) > + rprovides += ' %svirtual-locale-%s' % (mlprefix, m.group(1)) > d.setVar('RPROVIDES_%s' % pkgname, rprovides) > > if use_bin == "compile": > diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass > index 99836e9..6fba5b6 100644 > --- a/meta/classes/package.bbclass > +++ b/meta/classes/package.bbclass > @@ -400,13 +400,14 @@ python package_do_split_locales() { > summary = d.getVar('SUMMARY', True) or pn > description = d.getVar('DESCRIPTION', True) or "" > locale_section = d.getVar('LOCALE_SECTION', True) > + mlprefix = d.getVar('MLPREFIX', True) or "" > for l in sorted(locales): > ln = legitimize_package_name(l) > pkg = pn + '-locale-' + ln > packages.append(pkg) > d.setVar('FILES_' + pkg, os.path.join(datadir, 'locale', l)) > - d.setVar('RDEPENDS_' + pkg, '%s virtual-locale-%s' % (pn, ln)) > - d.setVar('RPROVIDES_' + pkg, '%s-locale %s-translation' % (pn, ln)) > + d.setVar('RDEPENDS_' + pkg, '%s %svirtual-locale-%s' % (pn, mlprefix, ln)) > + d.setVar('RPROVIDES_' + pkg, '%s-locale %s%s-translation' % (pn, mlprefix, ln)) > d.setVar('SUMMARY_' + pkg, '%s - %s translations' % (summary, l)) > d.setVar('DESCRIPTION_' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l)) > if locale_section: > -- > 1.7.0.4 > > > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] (libc-)package.bbclass: Added MLPREFIX to locale packages. 2012-05-17 18:12 ` Khem Raj @ 2012-05-17 19:44 ` Richard Purdie 0 siblings, 0 replies; 7+ messages in thread From: Richard Purdie @ 2012-05-17 19:44 UTC (permalink / raw) To: Patches and discussions about the oe-core layer On Thu, 2012-05-17 at 11:12 -0700, Khem Raj wrote: > On Thu, May 17, 2012 at 2:25 AM, Lianhao Lu <lianhao.lu@intel.com> wrote: > > Added multilib prefix to the locale related package names/dependencies. > > > > Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> > > Does mlprefix already has a leading '-' ? > otherwise I think adding a - would make is more readable. mlprefix adds this. Trying to do this the other way makes things too difficult and potentially inconsistent. Cheers, Richard ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/3] multilib.conf: Added multilib support for kmod. 2012-05-17 9:25 [PATCH 0/3] Misc fixes for multilib Lianhao Lu 2012-05-17 9:25 ` [PATCH 1/3] (libc-)package.bbclass: Added MLPREFIX to locale packages Lianhao Lu @ 2012-05-17 9:25 ` Lianhao Lu 2012-05-17 9:25 ` [PATCH 3/3] multilib.bbclass: Added multilib specific package QA Lianhao Lu 2012-05-18 14:33 ` [PATCH 0/3] Misc fixes for multilib Richard Purdie 3 siblings, 0 replies; 7+ messages in thread From: Lianhao Lu @ 2012-05-17 9:25 UTC (permalink / raw) To: openembedded-core Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> --- meta/conf/multilib.conf | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/meta/conf/multilib.conf b/meta/conf/multilib.conf index f60a890..9fc5a90 100644 --- a/meta/conf/multilib.conf +++ b/meta/conf/multilib.conf @@ -470,6 +470,7 @@ BBCLASSEXTEND_append_pn-mktemp = " ${MULTILIBS}" BBCLASSEXTEND_append_pn-mobile-broadband-provider-info = " ${MULTILIBS}" BBCLASSEXTEND_append_pn-module-init-tools-cross = " ${MULTILIBS}" BBCLASSEXTEND_append_pn-module-init-tools = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-kmod = " ${MULTILIBS}" BBCLASSEXTEND_append_pn-modutils-initscripts = " ${MULTILIBS}" BBCLASSEXTEND_append_pn-mpeg2dec = " ${MULTILIBS}" BBCLASSEXTEND_append_pn-mpfr = " ${MULTILIBS}" -- 1.7.0.4 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] multilib.bbclass: Added multilib specific package QA. 2012-05-17 9:25 [PATCH 0/3] Misc fixes for multilib Lianhao Lu 2012-05-17 9:25 ` [PATCH 1/3] (libc-)package.bbclass: Added MLPREFIX to locale packages Lianhao Lu 2012-05-17 9:25 ` [PATCH 2/3] multilib.conf: Added multilib support for kmod Lianhao Lu @ 2012-05-17 9:25 ` Lianhao Lu 2012-05-18 14:33 ` [PATCH 0/3] Misc fixes for multilib Richard Purdie 3 siblings, 0 replies; 7+ messages in thread From: Lianhao Lu @ 2012-05-17 9:25 UTC (permalink / raw) To: openembedded-core Added a new PACKAGEFUNCS function to check the multilib packages' dependency. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> --- meta/classes/multilib.bbclass | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass index c2d2f85..f3e7618 100644 --- a/meta/classes/multilib.bbclass +++ b/meta/classes/multilib.bbclass @@ -66,3 +66,34 @@ python __anonymous () { clsextend.map_variable("PACKAGE_INSTALL") clsextend.map_variable("INITSCRIPT_PACKAGES") } + +PACKAGEFUNCS_append = "do_package_qa_multilib" + +python do_package_qa_multilib() { + + def check_mlprefix(pkg, var, mlprefix): + values = bb.utils.explode_dep_versions(d.getVar('%s_%s' % (var, pkg), True) or d.getVar(var, True) or "") + candidates = [] + for i in values.keys(): + if i.startswith('virtual/'): + i = i[len('virtual/'):] + if (not i.startswith('kernel-module')) and (not i.startswith(mlprefix)): + candidates.append(i) + if len(candidates) > 0: + bb.warn("Multilib QA Issue: %s package %s - suspicious values '%s' in %s" + % (d.getVar('PN', True), pkg, ' '.join(candidates), var)) + + ml = d.getVar('MLPREFIX', True) + if not ml: + return + + packages = d.getVar('PACKAGES', True) + for pkg in packages.split(): + check_mlprefix(pkg, 'RDEPENDS', ml) + check_mlprefix(pkg, 'RPROVIDES', ml) + check_mlprefix(pkg, 'RRECOMMENDS', ml) + check_mlprefix(pkg, 'RSUGGESTS', ml) + check_mlprefix(pkg, 'RREPLACES', ml) + check_mlprefix(pkg, 'RCONFLICTS', ml) +} + -- 1.7.0.4 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] Misc fixes for multilib 2012-05-17 9:25 [PATCH 0/3] Misc fixes for multilib Lianhao Lu ` (2 preceding siblings ...) 2012-05-17 9:25 ` [PATCH 3/3] multilib.bbclass: Added multilib specific package QA Lianhao Lu @ 2012-05-18 14:33 ` Richard Purdie 3 siblings, 0 replies; 7+ messages in thread From: Richard Purdie @ 2012-05-18 14:33 UTC (permalink / raw) To: Patches and discussions about the oe-core layer On Thu, 2012-05-17 at 17:25 +0800, Lianhao Lu wrote: > This patch set added a package QA function to detect the potential incorrected > package dependencies for multilib packages. > > It also fixed the locale related package name in multilib case reported by the > new package QA function. > > The following changes since commit 2cf6e7cf81c0b864b5d51be60094a6eb3e584383: > Andrei Gherzan (1): > fotowall: Add #include ui_wizard.h to ExportWizard.cpp > > are available in the git repository at: > > git://git.yoctoproject.org/poky-contrib llu/multilib2 > http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=llu/multilib2 > > Lianhao Lu (3): > (libc-)package.bbclass: Added MLPREFIX to locale packages. > multilib.conf: Added multilib support for kmod. > multilib.bbclass: Added multilib specific package QA. Merged to master, thanks. Richard ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-05-18 14:43 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-05-17 9:25 [PATCH 0/3] Misc fixes for multilib Lianhao Lu 2012-05-17 9:25 ` [PATCH 1/3] (libc-)package.bbclass: Added MLPREFIX to locale packages Lianhao Lu 2012-05-17 18:12 ` Khem Raj 2012-05-17 19:44 ` Richard Purdie 2012-05-17 9:25 ` [PATCH 2/3] multilib.conf: Added multilib support for kmod Lianhao Lu 2012-05-17 9:25 ` [PATCH 3/3] multilib.bbclass: Added multilib specific package QA Lianhao Lu 2012-05-18 14:33 ` [PATCH 0/3] Misc fixes for multilib Richard Purdie
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox