PATCH 0/3] Fix the error when building image "core-image-gtk-directfb"
From: Xiaofeng Yan <[email protected]>
Bitbake complain " No package 'cairo-xlib' found" when building image "core-image-gtk-directfb". Misconfiguration of directfb in PACKAGECONFIG causes this problem. I change directfb to gtk-directfb. Another problem is about messy code when running gtk-demo because of no directfb "/etc/pango". I create this directory in pango.inc.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: xiaofeng/gtk-directfb
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/gtk-directfb
Thanks,
Xiaofeng Yan <[email protected]>
---
Xiaofeng Yan (3):
gtk.inc: Change configuration of directfb to gtk-directfb cairo.inc: Change configuration of directfb to gtk-directfb pango.inc: add directory "/etc/pango"
meta/recipes-gnome/gtk+/gtk+.inc | 2 +- meta/recipes-graphics/cairo/cairo.inc | 2 +- meta/recipes-graphics/pango/pango.inc | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-)
PATCH 1/3 gtk.inc: Change configuration of directfb to gtk-directfb
From: Xiaofeng Yan <[email protected]>
"direcdtfb" is a wrong configuration in PACKAGECONFIG. It should be "gtk-directfb". PACKAGECONFIG can't select directfb as backend rightly, or else.
[YOCTO #1674]
--- meta/recipes-gnome/gtk+/gtk+.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-gnome/gtk+/gtk+.inc +1 -1
@@ -15,7 +15,7 @@ DEPENDS = "glib-2.0 pango atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbo libgcrypt cairo gdk-pixbuf" PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ - ${@base_contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}" + ${@base_contains('DISTRO_FEATURES', 'gtk-directfb', 'gtk-directfb', '', d)}" # for gtk+ 2.x, have to pick either x11 or directfb not both # for gtk+ 3.x, PACKAGECONFIG[gtk-directfb] should be removed because directfb will not be support as
Signature · 1 line
1.7.0.4
PATCH 2/3 cairo.inc: Change configuration of directfb to gtk-directfb
In reply to Xiaofeng YanFrom: Xiaofeng Yan <[email protected]>
"direcdtfb" is a wrong configuration in PACKAGECONFIG. It should be "gtk-directfb". PACKAGECONFIG can't select directfb as backend rightly, or else.
[YOCTO #1674]
--- meta/recipes-graphics/cairo/cairo.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-graphics/cairo/cairo.inc +1 -1
@@ -13,7 +13,7 @@ LICENSE = "MPL-1 & LGPLv2.1" X11DEPENDS = "virtual/libx11 libsm libxrender" DEPENDS = "libpng fontconfig pixman glib-2.0" PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ - ${@base_contains('DISTRO_FEATURES', 'gtk-directfb', 'directfb', '', d)}" + ${@base_contains('DISTRO_FEATURES', 'gtk-directfb', 'gtk-directfb', '', d)}" PACKAGECONFIG[x11] = "--with-x=yes,--without-x,${X11DEPENDS}" PACKAGECONFIG[gtk-directfb] = "--enable-directfb=yes,,directfb"
Signature · 1 line
1.7.0.4
PATCH 3/3 pango.inc: add directory "/etc/pango"
In reply to Xiaofeng YanFrom: Xiaofeng Yan <[email protected]>
Command "pango-querymodules > /etc/pango/pango.modules" can't work when \
starting up yocto because of no directory "/etc/pango". It will cause \
messy code when gtk-demo running.
[YOCTO #1674]
--- meta/recipes-graphics/pango/pango.inc | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
meta/recipes-graphics/pango/pango.inc +6 -1
@@ -46,6 +46,11 @@ fi } +# Command "pango-querymodules > /etc/pango/pango.modules" needs this directory. +do_install_prepend() { + install -d ${D}/${sysconfdir}/pango +} + python populate_packages_prepend () { prologue = d.getVar("postinst_prologue", 1)
@@ -54,6 +59,6 @@ python populate_packages_prepend () { do_split_packages(d, modules_root, '^pango-(.*)\.so$', 'pango-module-%s', 'Pango module %s', prologue + 'pango-querymodules > /etc/pango/pango.modules') } -FILES_${PN} = "/etc/pango/* ${bindir}/* ${libdir}/libpango*${SOLIBS}" +FILES_${PN} += "${syscondir}/* ${bindir}/* ${libdir}/libpango*${SOLIBS}" FILES_${PN}-dbg += "${libdir}/pango/${LIBV}/modules/.debug" FILES_${PN}-dev += "${libdir}/pango/${LIBV}/modules/*.la"
Signature · 1 line
1.7.0.4
Re: [PATCH 3/3] pango.inc: add directory "/etc/pango"
Quoted 30 lines · Xiaofeng Yan
From: Xiaofeng Yan<[email protected]>
Command "pango-querymodules>
/etc/pango/pango.modules" can't work when \
starting up yocto because of no directory "/etc/pango". It will cause \
messy code when gtk-demo running.[YOCTO #1674]
Signed-off-by Xiaofeng Yan<[email protected]>--- meta/recipes-graphics/pango/pango.inc | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)meta/recipes-graphics/pango/pango.inc +5
-0@@ -46,6 +46,11 @@ fi } +# Command "pango-querymodules> /etc/pango/pango.modules" needs this directory. +do_install_prepend() { + install -d ${D}/${sysconfdir}/pango +} + python populate_packages_prepend () { prologue = d.getVar("postinst_prologue", 1)
meta/recipes-graphics/pango/pango.inc python populate_packages_prepend () { · line 62
Quoted 5 lines
meta/recipes-graphics/pango/pango.inc +1
-1@@ -54,6 +59,6 @@ python populate_packages_prepend () { do_split_packages(d, modules_root, '^pango-(.*)\.so$', 'pango-module-%s', 'Pango module %s', prologue + 'pango-querymodules> /etc/pango/pango.modules') } -FILES_${PN} = "/etc/pango/* ${bindir}/* ${libdir}/libpango*${SOLIBS}" +FILES_${PN} += "${syscondir}/* ${bindir}/* ${libdir}/libpango*${SOLIBS}"
Is this too general? Should it be ${sysconfdir}/pango?
Sau!
Quoted 2 lines
meta/recipes-graphics/pango/pango.inc +0
-0FILES_${PN}-dbg += "${libdir}/pango/${LIBV}/modules/.debug" FILES_${PN}-dev += "${libdir}/pango/${LIBV}/modules/*.la"
Re: [PATCH 3/3] pango.inc: add directory "/etc/pango"
Quoted 4 lines · Saul Wold
meta/recipes-graphics/pango/pango.inc python populate_packages_prepend () { · line 62
Quoted 2 lines · Xiaofeng Yan
meta/recipes-graphics/pango/pango.inc +1
-1-FILES_${PN} = "/etc/pango/* ${bindir}/* ${libdir}/libpango*${SOLIBS}" +FILES_${PN} += "${syscondir}/* ${bindir}/* ${libdir}/libpango*${SOLIBS}"Is this too general? Should it be ${sysconfdir}/pango?
"${sysconfdir}" is in the default FILES_${PN} anyway. (Also, "${syscondir}/*" won't match anything since there is no such variable.)
So this change is largely benign but it won't accomplish much.
p.
Re: [PATCH 3/3] pango.inc: add directory "/etc/pango"
Quoted 6 lines · Phil Blundell
Quoted 4 lines · Saul Wold
meta/recipes-graphics/pango/pango.inc python populate_packages_prepend () { · line 62
Quoted 2 lines · Xiaofeng Yan
meta/recipes-graphics/pango/pango.inc +1
-1-FILES_${PN} = "/etc/pango/* ${bindir}/* ${libdir}/libpango*${SOLIBS}" +FILES_${PN} += "${syscondir}/* ${bindir}/* ${libdir}/libpango*${SOLIBS}"Is this too general? Should it be ${sysconfdir}/pango?
"${sysconfdir}" is in the default FILES_${PN} anyway.
I will remove this changes.
Quoted 13 lines
(Also,
"${syscondir}/*" won't match anything since there is no such variable.)So this change is largely benign but it won't accomplish much.
p.
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core