* [PATCH] package.bbclass: Let pn be eglibc for eglibc-locale
@ 2012-07-26 18:49 Saul Wold
2012-07-26 18:58 ` Phil Blundell
0 siblings, 1 reply; 10+ messages in thread
From: Saul Wold @ 2012-07-26 18:49 UTC (permalink / raw)
To: openembedded-core
From: Khem Raj <raj.khem@gmail.com>
eglibc-locale is creating the individual locale files which have
runtime dependency on ${PN} which is 'eglibc-locale' but problem
is that eglibc-locale is an empty package and does not get created
so when one asks for adding locales to image then due to the missing
dependency in the feeds root file system can not be created.
This patch treates eglibc-locale as if it was eglibc and hence
the dependency then is created on libc6 and not not existing
eglibc-locale package.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
meta/classes/package.bbclass | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 0c7fe80..06e2e04 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -389,6 +389,8 @@ python package_do_split_locales() {
dvar = d.getVar('PKGD', True)
pn = d.getVar('PN', True)
+ if pn == "eglibc-locale":
+ pn = "eglibc"
if pn + '-locale' in packages:
packages.remove(pn + '-locale')
--
1.7.7.6
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH] package.bbclass: Let pn be eglibc for eglibc-locale
2012-07-26 18:49 [PATCH] package.bbclass: Let pn be eglibc for eglibc-locale Saul Wold
@ 2012-07-26 18:58 ` Phil Blundell
2012-07-26 20:16 ` Khem Raj
0 siblings, 1 reply; 10+ messages in thread
From: Phil Blundell @ 2012-07-26 18:58 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, 2012-07-26 at 11:49 -0700, Saul Wold wrote:
> diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
> index 0c7fe80..06e2e04 100644
> --- a/meta/classes/package.bbclass
> +++ b/meta/classes/package.bbclass
> @@ -389,6 +389,8 @@ python package_do_split_locales() {
>
> dvar = d.getVar('PKGD', True)
> pn = d.getVar('PN', True)
> + if pn == "eglibc-locale":
> + pn = "eglibc"
Bletch! There must surely be some way to solve this problem without
hacking recipe names into package.bbclass.
p.
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] package.bbclass: Let pn be eglibc for eglibc-locale
2012-07-26 18:58 ` Phil Blundell
@ 2012-07-26 20:16 ` Khem Raj
2012-07-26 20:38 ` Richard Purdie
0 siblings, 1 reply; 10+ messages in thread
From: Khem Raj @ 2012-07-26 20:16 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, Jul 26, 2012 at 11:58 AM, Phil Blundell <philb@gnu.org> wrote:
>
> Bletch! There must surely be some way to solve this problem without
> hacking recipe names into package.bbclass.
Yes making eglibc-locale base package to be non empty. So if we put in
something there that it never turns out to be empty is one way
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] package.bbclass: Let pn be eglibc for eglibc-locale
2012-07-26 20:16 ` Khem Raj
@ 2012-07-26 20:38 ` Richard Purdie
2012-07-26 20:52 ` Mark Hatle
2012-07-26 20:53 ` Phil Blundell
0 siblings, 2 replies; 10+ messages in thread
From: Richard Purdie @ 2012-07-26 20:38 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, 2012-07-26 at 13:16 -0700, Khem Raj wrote:
> On Thu, Jul 26, 2012 at 11:58 AM, Phil Blundell <philb@gnu.org> wrote:
> >
> > Bletch! There must surely be some way to solve this problem without
> > hacking recipe names into package.bbclass.
>
> Yes making eglibc-locale base package to be non empty. So if we put in
> something there that it never turns out to be empty is one way
Well, having things depending on eglibc-locale-locale is wrong in many
ways :/. eglibc is just the only package we split the locale generation
into a separate recipe for.
A more generic check in there which would work for multiple libcs would
be:
if pn.endswith("-locale"):
pn = pn[:-7]
the other alternative which comes to mind would be so set a variable
with the name we want used there, defaulting it to PN.
Cheers,
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] package.bbclass: Let pn be eglibc for eglibc-locale
2012-07-26 20:38 ` Richard Purdie
@ 2012-07-26 20:52 ` Mark Hatle
2012-07-26 20:53 ` Phil Blundell
1 sibling, 0 replies; 10+ messages in thread
From: Mark Hatle @ 2012-07-26 20:52 UTC (permalink / raw)
To: openembedded-core
On 7/26/12 3:38 PM, Richard Purdie wrote:
> On Thu, 2012-07-26 at 13:16 -0700, Khem Raj wrote:
>> On Thu, Jul 26, 2012 at 11:58 AM, Phil Blundell <philb@gnu.org> wrote:
>>>
>>> Bletch! There must surely be some way to solve this problem without
>>> hacking recipe names into package.bbclass.
>>
>> Yes making eglibc-locale base package to be non empty. So if we put in
>> something there that it never turns out to be empty is one way
>
> Well, having things depending on eglibc-locale-locale is wrong in many
> ways :/. eglibc is just the only package we split the locale generation
> into a separate recipe for.
>
> A more generic check in there which would work for multiple libcs would
> be:
>
> if pn.endswith("-locale"):
> pn = pn[:-7]
This sounds like a good alternative. It still enables breakups of the locales,
if appropriate, with the only rule being that the core part of the name be
consistent with whatever it's targeting.
i.e. eglibc and eglibc-locale
> the other alternative which comes to mind would be so set a variable
> with the name we want used there, defaulting it to PN.
I had suggested changing the PN of the eglibc-locale to "eglibc", but I believe
Khem ran into a number of problems doing this.
--Mark
> Cheers,
>
> Richard
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] package.bbclass: Let pn be eglibc for eglibc-locale
2012-07-26 20:38 ` Richard Purdie
2012-07-26 20:52 ` Mark Hatle
@ 2012-07-26 20:53 ` Phil Blundell
2012-07-26 21:27 ` Khem Raj
1 sibling, 1 reply; 10+ messages in thread
From: Phil Blundell @ 2012-07-26 20:53 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, 2012-07-26 at 21:38 +0100, Richard Purdie wrote:
> the other alternative which comes to mind would be so set a variable
> with the name we want used there, defaulting it to PN.
That sounds like the most wholesome plan to me.
p.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] package.bbclass: Let pn be eglibc for eglibc-locale
2012-07-26 20:53 ` Phil Blundell
@ 2012-07-26 21:27 ` Khem Raj
2012-07-26 21:47 ` Mark Hatle
0 siblings, 1 reply; 10+ messages in thread
From: Khem Raj @ 2012-07-26 21:27 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, Jul 26, 2012 at 1:53 PM, Phil Blundell <philb@gnu.org> wrote:
> On Thu, 2012-07-26 at 21:38 +0100, Richard Purdie wrote:
>> the other alternative which comes to mind would be so set a variable
>> with the name we want used there, defaulting it to PN.
>
> That sounds like the most wholesome plan to me.
can we use BPN, unless we generate locale for native and nativesdk
cross and crosssdk
class of recipes that should work too. I thought about it and thought
it was too
intrusive.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] package.bbclass: Let pn be eglibc for eglibc-locale
2012-07-26 21:27 ` Khem Raj
@ 2012-07-26 21:47 ` Mark Hatle
2012-07-29 20:22 ` Khem Raj
0 siblings, 1 reply; 10+ messages in thread
From: Mark Hatle @ 2012-07-26 21:47 UTC (permalink / raw)
To: openembedded-core
On 7/26/12 4:27 PM, Khem Raj wrote:
> On Thu, Jul 26, 2012 at 1:53 PM, Phil Blundell <philb@gnu.org> wrote:
>> On Thu, 2012-07-26 at 21:38 +0100, Richard Purdie wrote:
>>> the other alternative which comes to mind would be so set a variable
>>> with the name we want used there, defaulting it to PN.
>>
>> That sounds like the most wholesome plan to me.
>
> can we use BPN, unless we generate locale for native and nativesdk
> cross and crosssdk
> class of recipes that should work too. I thought about it and thought
> it was too
> intrusive.
There are cases for multilibs where locales for specific multilib packages will
be generated. We theoretically could generate them for native(sdk) and
cross(sdk) as well, but I don't believe we do that in the general cases.
--Mark
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] package.bbclass: Let pn be eglibc for eglibc-locale
2012-07-26 21:47 ` Mark Hatle
@ 2012-07-29 20:22 ` Khem Raj
2012-07-29 20:34 ` Khem Raj
0 siblings, 1 reply; 10+ messages in thread
From: Khem Raj @ 2012-07-29 20:22 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, Jul 26, 2012 at 2:47 PM, Mark Hatle <mark.hatle@windriver.com> wrote:
> On 7/26/12 4:27 PM, Khem Raj wrote:
>>
>> On Thu, Jul 26, 2012 at 1:53 PM, Phil Blundell <philb@gnu.org> wrote:
>>>
>>> On Thu, 2012-07-26 at 21:38 +0100, Richard Purdie wrote:
>>>>
>>>> the other alternative which comes to mind would be so set a variable
>>>> with the name we want used there, defaulting it to PN.
>>>
>>>
>>> That sounds like the most wholesome plan to me.
>>
>>
>> can we use BPN, unless we generate locale for native and nativesdk
>> cross and crosssdk
>> class of recipes that should work too. I thought about it and thought
>> it was too
>> intrusive.
>
>
> There are cases for multilibs where locales for specific multilib packages
> will be generated. We theoretically could generate them for native(sdk) and
> cross(sdk) as well, but I don't believe we do that in the general cases.
>
> --Mark
After RPs fix and Paul's root file system rework I am still seeing
temp/run.do_rootfs.25593: 932: local: locale-base-en-gb: bad variable name
>
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-07-29 20:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-26 18:49 [PATCH] package.bbclass: Let pn be eglibc for eglibc-locale Saul Wold
2012-07-26 18:58 ` Phil Blundell
2012-07-26 20:16 ` Khem Raj
2012-07-26 20:38 ` Richard Purdie
2012-07-26 20:52 ` Mark Hatle
2012-07-26 20:53 ` Phil Blundell
2012-07-26 21:27 ` Khem Raj
2012-07-26 21:47 ` Mark Hatle
2012-07-29 20:22 ` Khem Raj
2012-07-29 20:34 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox