* [PATCH] eglibc: Add gettext-native to DEPENDS
@ 2013-04-23 16:44 Phil Blundell
2013-04-23 21:45 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Phil Blundell @ 2013-04-23 16:44 UTC (permalink / raw)
To: oe-core
Otherwise you get:
| msgfmt -o be.mo be.po
| msgfmt -o bg.mo bg.po
| msgfmt -o ca.mo ca.po
| /bin/bash: msgfmt: command not found
| make[2]: *** [be.mo] Error 127
| make[2]: *** Waiting for unfinished jobs....
| /bin/bash: msgfmt: command not found
| make[2]: *** [ca.mo] Error 127
| /bin/bash: msgfmt: command not found
| make[2]: *** [bg.mo] Error 127
if msgfmt isn't available in the host environment.
Signed-off-by: Phil Blundell <philb@gnu.org>
---
meta/recipes-core/eglibc/eglibc.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/eglibc/eglibc.inc b/meta/recipes-core/eglibc/eglibc.inc
index 1e04197..38d8c44 100644
--- a/meta/recipes-core/eglibc/eglibc.inc
+++ b/meta/recipes-core/eglibc/eglibc.inc
@@ -33,7 +33,7 @@ siteconfig_do_siteconfig_gencache_prepend = " \
"
# nptl needs unwind support in gcc, which can't be built without glibc.
-DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers virtual/${TARGET_PREFIX}libc-initial"
+DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers virtual/${TARGET_PREFIX}libc-initial gettext-native"
# nptl needs libgcc but dlopens it, so our shlibs code doesn't detect this
#RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"
PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] eglibc: Add gettext-native to DEPENDS
2013-04-23 16:44 [PATCH] eglibc: Add gettext-native to DEPENDS Phil Blundell
@ 2013-04-23 21:45 ` Richard Purdie
2013-04-24 7:58 ` Phil Blundell
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2013-04-23 21:45 UTC (permalink / raw)
To: Phil Blundell; +Cc: oe-core
On Tue, 2013-04-23 at 17:44 +0100, Phil Blundell wrote:
> Otherwise you get:
>
> | msgfmt -o be.mo be.po
> | msgfmt -o bg.mo bg.po
> | msgfmt -o ca.mo ca.po
> | /bin/bash: msgfmt: command not found
> | make[2]: *** [be.mo] Error 127
> | make[2]: *** Waiting for unfinished jobs....
> | /bin/bash: msgfmt: command not found
> | make[2]: *** [ca.mo] Error 127
> | /bin/bash: msgfmt: command not found
> | make[2]: *** [bg.mo] Error 127
>
> if msgfmt isn't available in the host environment.
>
> Signed-off-by: Phil Blundell <philb@gnu.org>
> ---
> meta/recipes-core/eglibc/eglibc.inc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/eglibc/eglibc.inc b/meta/recipes-core/eglibc/eglibc.inc
> index 1e04197..38d8c44 100644
> --- a/meta/recipes-core/eglibc/eglibc.inc
> +++ b/meta/recipes-core/eglibc/eglibc.inc
> @@ -33,7 +33,7 @@ siteconfig_do_siteconfig_gencache_prepend = " \
> "
>
> # nptl needs unwind support in gcc, which can't be built without glibc.
> -DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers virtual/${TARGET_PREFIX}libc-initial"
> +DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers virtual/${TARGET_PREFIX}libc-initial gettext-native"
> # nptl needs libgcc but dlopens it, so our shlibs code doesn't detect this
> #RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"
> PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
This will have a significant adverse affect on build speed due to build
dependency bottlenecks :(
Are there any good options for avoiding this?
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] eglibc: Add gettext-native to DEPENDS
2013-04-23 21:45 ` Richard Purdie
@ 2013-04-24 7:58 ` Phil Blundell
0 siblings, 0 replies; 3+ messages in thread
From: Phil Blundell @ 2013-04-24 7:58 UTC (permalink / raw)
To: Richard Purdie; +Cc: oe-core
On Tue, 2013-04-23 at 22:45 +0100, Richard Purdie wrote:
> On Tue, 2013-04-23 at 17:44 +0100, Phil Blundell wrote:
> > # nptl needs unwind support in gcc, which can't be built without glibc.
> > -DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers virtual/${TARGET_PREFIX}libc-initial"
> > +DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers virtual/${TARGET_PREFIX}libc-initial gettext-native"
> > # nptl needs libgcc but dlopens it, so our shlibs code doesn't detect this
> > #RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"
> > PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
>
> This will have a significant adverse affect on build speed due to build
> dependency bottlenecks :(
>
> Are there any good options for avoiding this?
Well, obviously folks who do have it in the host environment can set
ASSUME_PROVIDED. I assume most people do have that installed, otherwise
this would be failing all the time.
Other than that, I think your options are:
1. figure out a way to defer catalog building to later, e.g. put it in
eglibc-locale instead. This would probably involve some hacking of the
eglibc makefiles but I don't think it would be especially hard.
2. find a way to disable catalog generation entirely for folks who don't
want it. That might involve inventing DISTRO_FEATURES="l10n" or
something and patching (albeit trivial) to both configure.in and the
makefiles. I imagine that change would be upstreamable in eglibc.
3. reimplement msgcat as a python script or something else that doesn't
need compiling, or pull out msgcat.c into its own recipe that just
builds this single file (avoiding the autotools overhead that
gettext-native has).
I can't think of any other obvious choices offhand but I'm sure there
are more.
The thing that does seem a bit puzzling is that this problem didn't use
to happen with older versions of oe-core (in particular, I never saw it
with my previous snapshot which used eglibc 2.16). I'm not quite sure
what changed to make it suddenly become an issue.
p.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-24 8:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-23 16:44 [PATCH] eglibc: Add gettext-native to DEPENDS Phil Blundell
2013-04-23 21:45 ` Richard Purdie
2013-04-24 7:58 ` Phil Blundell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox