[oe] [PATCH] Maliit: Add initial recipes

Otavio Salvador otavio at ossystems.com.br
Wed Oct 17 10:42:26 UTC 2012


On Wed, Oct 17, 2012 at 5:29 AM, Samuel Stirtzel
<s.stirtzel at googlemail.com>wrote:

> 2012/10/16 Otavio Salvador <otavio at ossystems.com.br>:
> > On Tue, Oct 2, 2012 at 5:28 AM, Samuel Stirtzel
> > <s.stirtzel at googlemail.com> wrote:
> >> Maliit is a Qt based virtual keyboard under liberal license (LGPLv2.1 /
> BSD)
> >> The inputmethod framework from Qt is used and it supports gtk-immodules.
> >> It can also be used without dependencies to GTK+ (separate package for
> GTK+)
> >>
> >> Signed-off-by: Samuel Stirtzel <s.stirtzel at googlemail.com>
> >
> > Thanks by working on this. Bellow my comments ...
> >
> > ...
> >> diff --git a/meta-oe/recipes-support/maliit/maliit-framework_git.bbb/meta-oe/recipes-support/maliit/
> maliit-framework_git.bb
> >> new file mode 100644
> >> index 0000000..3f50d1b
> >> --- /dev/null
> >> +++ b/meta-oe/recipes-support/maliit/maliit-framework_git.bb
> > ...
> >> +
> >> +# Maliit needs Qt configured with -accessibility, a patch for that was
> already sent and will get merged in post 1.2.
> >> +RDEPENDS_${PN} = "qt4-plugin-inputmethod-imsw-multi libqtsvg4"
> >
> > In this case, maliit is a post 1.2 package.
> >
> > ...
> >> +EXTRA_QMAKEVARS_PRE = "\
> >> +    PREFIX=${prefix} \
> >> +    LIBDIR=${libdir} \
> >> +    QT_IM_PLUGIN_PATH=${libdir}/qt4/plugins/inputmethods \
> >> +    MALIIT_INSTALL_PRF=${datadir}/qt4/mkspecs/features \
> >> +    SCHEMADIR=${sysconfdir}/gconf/schemas \
> >> +    CONFIG+=disable-gconf \
> >> +    CONFIG+=disable-gtk-cache-update \
> >> +    CONFIG+=local-install \
> >> +    "
> >
> > Really need to disable gtk-cache-update? Why?
>
> This option is for packaging, it disables running gtk-query-immodules
> on the build-host
>

Are you sure it is about gtk-query-immodules, it seemed to be icon-cache
related from  the option name.


>
> >
> > ...
> >> +# Update the inputmethod modules in gtk
> >> +pkg_postinst_${PN}-gtk() {
> >> +if [ "x$D" != "x" ]; then
> >> +    exit 1
> >> +fi
> >> +gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
> >> +}
> >> +
> >> +pkg_postrm_${PN}-gtk() {
> >> +if [ "x$D" != "x" ]; then
> >> +    exit 1
> >> +fi
> >> +gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
> >> +}
> >
> > You might add a gtk-immodules.bbclass to allow it to be put out of the
> recipe.
>
> FYI: I have a class for this, but the only other recipe using
> gtk-query-immodules is
> openembedded-core/meta/recipes-sato/matchbox-keyboard/
> matchbox-keyboard_git.bb
> Should I send a patch with the .bbclass to oe-core?
>

I think so. It is easier to read and avoid code duplication.


>
> >
> > As said by Martin, please read the README and follow the steps to send
> > the patch...
>
> Seems to be a classic case of -ENOCOFFEEYET
>
> Will re-send with the right prefix
>

hehe, right ...

Take a double expresso coffee and try again ;-)

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio at ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



More information about the Openembedded-devel mailing list