Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] package: Recommend virtual-locale-*, don't depend on it
@ 2012-10-08 15:49 Richard Purdie
  2012-10-10 14:45 ` Chris Larson
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2012-10-08 15:49 UTC (permalink / raw)
  To: openembedded-core

The virtual-locale-* packages are provided by libc which may or
may not have a matching locale for any given recipes's provided locales.
Certainly, we shouldn't get a failure if the locale package isn't
available.

This patch therefore makes the dependency optional rather than
required, allowing the locale packages in question to install. This
resolves errors like:

	virtual-locale-eo is needed by bash-locale-eo-4.2-r5.i586
	virtual-locale-en+boldquot is needed by bash-locale-en+boldquot-4.2-r5.i586
	virtual-locale-en+quot is needed by bash-locale-en+quot-4.2-r5.i586

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 73c4358..0300277 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -451,7 +451,7 @@ python package_do_split_locales() {
         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' % (pndep, mlprefix, ln))
+        d.setVar('RRECOMMENDS_' + 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))





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] package: Recommend virtual-locale-*, don't depend on it
  2012-10-08 15:49 [PATCH] package: Recommend virtual-locale-*, don't depend on it Richard Purdie
@ 2012-10-10 14:45 ` Chris Larson
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Larson @ 2012-10-10 14:45 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

On Mon, Oct 8, 2012 at 8:49 AM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> The virtual-locale-* packages are provided by libc which may or
> may not have a matching locale for any given recipes's provided locales.
> Certainly, we shouldn't get a failure if the locale package isn't
> available.
>
> This patch therefore makes the dependency optional rather than
> required, allowing the locale packages in question to install. This
> resolves errors like:
>
>         virtual-locale-eo is needed by bash-locale-eo-4.2-r5.i586
>         virtual-locale-en+boldquot is needed by bash-locale-en+boldquot-4.2-r5.i586
>         virtual-locale-en+quot is needed by bash-locale-en+quot-4.2-r5.i586
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

This looks helpful -- I know of at least one person internal at Mentor
being bit by this.
-- 
Christopher Larson



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-10 14:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-08 15:49 [PATCH] package: Recommend virtual-locale-*, don't depend on it Richard Purdie
2012-10-10 14:45 ` Chris Larson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox