* Question regarding gettext 0.18
@ 2011-01-24 22:22 Andreas Mueller
2011-01-25 7:41 ` Koen Kooi
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Mueller @ 2011-01-24 22:22 UTC (permalink / raw)
To: openembedded-devel
Dear OE folks,
during working on new recipes for clutter 1.4.2 I face the following issue:
Compiling fails with the message
>Making all in po
>make[2]: Entering directory `/home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/clutter-1.4.2/po'
>*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.17 but the autoconf macros are from gettext version 0.18
>make[2]: *** [check-macro-version] Error 1
>make[2]: Leaving directory `/home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/clutter-1.4.2/po'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/clutter-1.4.2'
>make: *** [all] Error 2
>FATAL: oe_runmake failed
>ERROR: Function do_compile failed
I checked google & git-log for a hint on that - nothing (yet).
It smells as a simple solution - but I am not able to find it. Can somebody please give me a hint how to solve?
Regards
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question regarding gettext 0.18
2011-01-24 22:22 Question regarding gettext 0.18 Andreas Mueller
@ 2011-01-25 7:41 ` Koen Kooi
2011-01-26 22:27 ` Andreas Mueller
0 siblings, 1 reply; 5+ messages in thread
From: Koen Kooi @ 2011-01-25 7:41 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 24-01-11 23:22, Andreas Mueller wrote:
> Dear OE folks,
>
> during working on new recipes for clutter 1.4.2 I face the following issue:
>
> Compiling fails with the message
>
>> Making all in po
>> make[2]: Entering directory `/home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/clutter-1.4.2/po'
>> *** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.17 but the autoconf macros are from gettext version 0.18
>> make[2]: *** [check-macro-version] Error 1
>> make[2]: Leaving directory `/home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/clutter-1.4.2/po'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/clutter-1.4.2'
>> make: *** [all] Error 2
>> FATAL: oe_runmake failed
>> ERROR: Function do_compile failed
>
> I checked google & git-log for a hint on that - nothing (yet).
>
> It smells as a simple solution - but I am not able to find it. Can somebody please give me a hint how to solve?
I use this in gstreamer:
# gstreamer uses AG_GST_GETTEXT which autotools.bbclass doesn't grep for
do_configure_prepend() {
glib-gettextize --force --copy || true
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFNPn6gMkyGM64RGpERAn7eAJ9l8042WD/KJQ3oomVfzJqTN4D8mwCguP68
y4VcljOVhLwkpozUXwunYwM=
=oFIC
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question regarding gettext 0.18
2011-01-25 7:41 ` Koen Kooi
@ 2011-01-26 22:27 ` Andreas Mueller
2011-01-27 12:38 ` Henning Heinold
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Mueller @ 2011-01-26 22:27 UTC (permalink / raw)
To: openembedded-devel
On Tuesday 25 January 2011 08:41:20 Koen Kooi wrote:
> On 24-01-11 23:22, Andreas Mueller wrote:
> > Dear OE folks,
> >
> > during working on new recipes for clutter 1.4.2 I face the following issue:
> >
> > Compiling fails with the message
> >
> >> Making all in po
> >> make[2]: Entering directory `/home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/clutter-1.4.2/po'
> >> *** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.17 but the autoconf macros are from gettext version 0.18
> >> make[2]: *** [check-macro-version] Error 1
> >> make[2]: Leaving directory `/home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/clutter-1.4.2/po'
> >> make[1]: *** [all-recursive] Error 1
> >> make[1]: Leaving directory `/home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/clutter-1.4.2'
> >> make: *** [all] Error 2
> >> FATAL: oe_runmake failed
> >> ERROR: Function do_compile failed
> >
> > I checked google & git-log for a hint on that - nothing (yet).
> >
> > It smells as a simple solution - but I am not able to find it. Can somebody please give me a hint how to solve?
>
> I use this in gstreamer:
>
> # gstreamer uses AG_GST_GETTEXT which autotools.bbclass doesn't grep for
> do_configure_prepend() {
> glib-gettextize --force --copy || true
> }
>
Thanks for quick & helpful response. But...
I did the same modification for clutter-recipe. With this compiling passes but install fails with
| Making install in po
| make[1]: Entering directory `/home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/clutter-1.4.2/po'
| if test -r "../@MKINSTALLDIRS@"; then \
| ../@MKINSTALLDIRS@ /home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/image/usr/share; \
| else \
| /bin/sh ../mkinstalldirs /home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/image/usr/share; \
| fi
| /bin/sh: ../mkinstalldirs: No such file or directory
| make[1]: *** [install-data-yes] Error 127
| make[1]: Leaving directory `/home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/clutter-1.4.2/po'
| make: *** [install-recursive] Error 1
| FATAL: oe_runmake failed
| ERROR: Function do_install failed
A complete different layout in 'po/Makefile.in.in' lead me to the fact that clutter has changed from glib-gettext to upstream gettext (see
http://git.clutter-project.org/clutter/commit/?id=98cac30d82299b3739f3801f71b5e2e931eb2e8d).
So I modified the recipe to
do_configure_prepend() {
gettextize --force || true
Unfortunately with this configure does not finish because gettextize is so kind to tell me that I have to
| Please run 'aclocal -I build/autotools' to regenerate the aclocal.m4 file.
| You need aclocal from GNU automake 1.9 (or newer) to do this.
| Then run 'autoconf' to regenerate the configure file.
|
| You might also want to copy the convenience header file gettext.h
| from the /home/Superandi/tmp/sysroots/i686-linux/usr/share/gettext directory into your package.
| It is a wrapper around <libintl.h> that implements the configure --disable-nls
| option.
|
| Press Return to acknowledge the previous two paragraphs.
I see the following options to continue (hoping on better results with upstream gettextize...):
- gettextize has a 'secret' parameter preventing interaction (I checked doc / --help / the script itself: nothing)
- patching or sed-ing gettextize-native: so that 'read dummy < /dev/tty' is removed at the end of gettextize script (preferred)
- something like ti-eula-unpack.inc simulating user interaction
Sorry for spamming but what do you think?
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question regarding gettext 0.18
2011-01-26 22:27 ` Andreas Mueller
@ 2011-01-27 12:38 ` Henning Heinold
2011-01-27 21:21 ` Andreas Mueller
0 siblings, 1 reply; 5+ messages in thread
From: Henning Heinold @ 2011-01-27 12:38 UTC (permalink / raw)
To: openembedded-devel
Hi,
can you provide the recipes somewhere so I could easily test them.
Bye Henning
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question regarding gettext 0.18
2011-01-27 12:38 ` Henning Heinold
@ 2011-01-27 21:21 ` Andreas Mueller
0 siblings, 0 replies; 5+ messages in thread
From: Andreas Mueller @ 2011-01-27 21:21 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: Text/Plain, Size: 612 bytes --]
On Thursday 27 January 2011 13:38:32 Henning Heinold wrote:
> Hi,
>
> can you provide the recipes somewhere so I could easily test them.
>
> Bye Henning
>
Some comments on the files attached:
- the changes in clutter-common.inc were made to prepare clutter-toys. I don't know if they are required for this issue
- I successfully build (did not yet run on hardware) by simply commenting the line 'read dummy < /dev/tty' in sysroots/i686-linux/usr/bin/gettextize.
- OE folks: Has anybody a problem patching gettext(-native) to make it accessible for automated environments?
good night
Andreas
[-- Attachment #2: clutter_1.4.2.bb --]
[-- Type: text/plain, Size: 2022 bytes --]
require clutter.inc
inherit autotools pkgconfig gettext
PR = "${INC_PR}.0"
SRC_URI = "http://source.clutter-project.org/sources/clutter/1.4/clutter-${PV}.tar.bz2 \
${INC_SRC_URI} \
"
# not (yet) in clutter.inc: elder versions had json code included
STDDEPENDS += "json-glib"
# recommended for --clutter-debug / --cogl-debug params
BASE_CONF += " --enable-debug"
do_configure_prepend() {
# align the test data location *.c (V1.2 and following use macro ASSETS_DIR for path in *.c)
for i in $(find ${S}/tests -name Makefile.am) ; do
sed -i -e 's:$(top_srcdir)/tests/data:${datadir}/${PN}-tests:g' $i
done
# prevent the conformance test suite from running
sed -i -e 's:BUILT_SOURCES = wrappers:# BUILT_SOURCES = wrappers:g' ${S}/tests/conform/Makefile.am
# 1. OE currently supports gettext 0.18 / clutter ships with 0.17
# we assume no problem changing gettext version because clutter did too
# see http://git.clutter-project.org/clutter/commit/?id=0e325404aa50fcca400d0cb8020a36bcd81f4c37
# 2. clutter moved to upstream gettext from glib one
# see http://git.clutter-project.org/clutter/commit/?id=98cac30d82299b3739f3801f71b5e2e931eb2e8d
echo gettextize $(which gettextize)
echo glib-gettextize $(which glib-gettextize)
gettextize --force || true
# gstreamer uses AG_GST_GETTEXT which autotools.bbclass doesn't grep for
# glib-gettextize --force --copy || true
}
do_compile_prepend() {
rebuild_shader_sources ${S}/clutter/cogl/cogl/driver/gles
# align test data location *.json
for full_name in $(find ${S}/tests/data -name *.png -o -name *.json) ; do
data_name=${full_name##*/}
for i in $(find ${S}/tests -name *.json) ; do
sed -i -e s:${data_name}:${datadir}/${PN}-tests/${data_name}:g $i
done
done
}
do_install() {
autotools_do_install
install_tests
}
SRC_URI[md5sum] = "5a3c6d8414d4e286aba0a936f344c9b1"
SRC_URI[sha256sum] = "92fd67acce5105c933e54ad0c87d0f5ace1202fd0f87949cb49a3759e6e38892"
[-- Attachment #3: clutter-common.inc --]
[-- Type: text/plain, Size: 859 bytes --]
# common functions for all clutter-libraries
# all .debug stuff goes to clutter*-dbg
FILES_${PN}-dbg += "${bindir}/.debug"
# helper for (git)-recipes which do not have gtk-doc.make
copy_gtk_doc_make() {
if [ -e ${WORKDIR}/gtk-doc.make ] ; then
cp ${WORKDIR}/gtk-doc.make ${S}/gtk-doc.make
else
touch ${S}/gtk-doc.make
fi
}
# clutter packs assume building and target are the same
# for us they are definitely not
make_all_execs_installable() {
for i in $(find ${S} -name Makefile.am) ; do
sed -i -e s:noinst_PROGRAMS:bin_PROGRAMS:g \
-e s:check_PROGRAMS:bin_PROGRAMS:g $i
done
}
#check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points
def get_clutter_fpu_setting(bb, d):
if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
return "--without-fpu"
return ""
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-01-27 21:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-24 22:22 Question regarding gettext 0.18 Andreas Mueller
2011-01-25 7:41 ` Koen Kooi
2011-01-26 22:27 ` Andreas Mueller
2011-01-27 12:38 ` Henning Heinold
2011-01-27 21:21 ` Andreas Mueller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.