* [PATCH] classes/package: don't make locale pkgs depend on PN pkg if not in PACKAGES
@ 2012-07-31 11:33 Paul Eggleton
2012-07-31 13:12 ` Andreas Müller
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2012-07-31 11:33 UTC (permalink / raw)
To: openembedded-core
If ${PN} is not in PACKAGES then don't add it as an RDEPENDS for each
locale package. This fixes the installation of gcc-runtime locale
packages, for example.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta/classes/package.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 3aaf999..9c4e643 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -407,12 +407,13 @@ python package_do_split_locales() {
description = d.getVar('DESCRIPTION', True) or ""
locale_section = d.getVar('LOCALE_SECTION', True)
mlprefix = d.getVar('MLPREFIX', True) or ""
+ pndep = base_contains('PACKAGES', pn, '%s ' % pn, '', d)
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 %svirtual-locale-%s' % (pn, mlprefix, ln))
+ d.setVar('RDEPENDS_' + pkg, '%s%svirtual-locale-%s' % (pndep, 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))
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] classes/package: don't make locale pkgs depend on PN pkg if not in PACKAGES
2012-07-31 11:33 [PATCH] classes/package: don't make locale pkgs depend on PN pkg if not in PACKAGES Paul Eggleton
@ 2012-07-31 13:12 ` Andreas Müller
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Müller @ 2012-07-31 13:12 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, Jul 31, 2012 at 1:33 PM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> If ${PN} is not in PACKAGES then don't add it as an RDEPENDS for each
> locale package. This fixes the installation of gcc-runtime locale
> packages, for example.
>
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> ---
> meta/classes/package.bbclass | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
> index 3aaf999..9c4e643 100644
> --- a/meta/classes/package.bbclass
> +++ b/meta/classes/package.bbclass
> @@ -407,12 +407,13 @@ python package_do_split_locales() {
> description = d.getVar('DESCRIPTION', True) or ""
> locale_section = d.getVar('LOCALE_SECTION', True)
> mlprefix = d.getVar('MLPREFIX', True) or ""
> + pndep = base_contains('PACKAGES', pn, '%s ' % pn, '', d)
> 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 %svirtual-locale-%s' % (pn, mlprefix, ln))
> + d.setVar('RDEPENDS_' + pkg, '%s%svirtual-locale-%s' % (pndep, 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))
> --
> 1.7.9.5
Thanks for unbreaking do_rootfs part II
Acked-by: Andreas Müller <schnitzeltony@googlemail.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-31 13:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-31 11:33 [PATCH] classes/package: don't make locale pkgs depend on PN pkg if not in PACKAGES Paul Eggleton
2012-07-31 13:12 ` Andreas Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox