From: Constantin Musca <constantinx.musca@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] pango: use qemu_run_binary instead of pango-native
Date: Thu, 17 Jan 2013 17:53:39 +0200 [thread overview]
Message-ID: <1358438019-24046-1-git-send-email-constantinx.musca@intel.com> (raw)
- use qemu_run_binary from qemu.bbclass to run pango-querymodules
- remove pango-native from DEPENDS in order to do not create
unbuildable dependency chains (e.g. ['gtk+', 'pango', 'pango-native',
'cairo-native', 'directfb-native'])
[YOCTO #3642]
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
---
meta/recipes-graphics/pango/pango.inc | 26 ++++++++------------------
meta/recipes-graphics/pango/pango_1.32.5.bb | 2 +-
2 files changed, 9 insertions(+), 19 deletions(-)
diff --git a/meta/recipes-graphics/pango/pango.inc b/meta/recipes-graphics/pango/pango.inc
index ce5caf6..f622903 100644
--- a/meta/recipes-graphics/pango/pango.inc
+++ b/meta/recipes-graphics/pango/pango.inc
@@ -10,7 +10,7 @@ SECTION = "libs"
LICENSE = "LGPLv2.0+"
X11DEPENDS = "virtual/libx11 libxft"
-DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv cairo elfutils pango-native harfbuzz"
+DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv cairo elfutils harfbuzz"
PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
PACKAGECONFIG[x11] = "--with-x,--without-x,${X11DEPENDS}"
@@ -22,7 +22,7 @@ PACKAGES_DYNAMIC += "^pango-module-.*"
RRECOMMENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'x11', 'pango-module-basic-x', '', d)} pango-module-basic-fc"
-inherit gnomebase gtk-doc
+inherit gnomebase gtk-doc qemu
# Create a pango-modules package
ALLOW_EMPTY_${BPN}-modules = "1"
PACKAGES += "${BPN}-modules"
@@ -49,26 +49,16 @@ if ! [ -e $D${sysconfdir}/pango ] ; then
fi
if [ "x$D" != "x" ]; then
-pango-querymodules $(ls -d -1 $D${libdir}/pango/${LIBV}/modules/*.so|\
- sed -e "s:$D:$NATIVE_ROOT:g") >\
- $D${sysconfdir}/pango/${MLPREFIX}pango.modules \
- 2>$D${sysconfdir}/pango/${MLPREFIX}pango.err
-
-# pango-querymodules always returns 0, so we need to check if pango.err has
-# anything in it
-if [ -s $D${sysconfdir}/pango/${MLPREFIX}pango.err ]; then
- rm $D${sysconfdir}/pango/${MLPREFIX}pango.err
- exit 1
-fi
+ ${@qemu_run_binary(d, '$D','/usr/bin/pango-querymodules')} \
+ $D${libdir}/pango/${LIBV}/modules/*.so \
+ > $D${sysconfdir}/pango/${MLPREFIX}pango.modules 2>/dev/null
-sed -i -e "s:$NATIVE_ROOT::g" $D${sysconfdir}/pango/${MLPREFIX}pango.modules
+ [ $? -ne 0 ] && exit 1
-# remove the empty pango.err
-rm $D${sysconfdir}/pango/${MLPREFIX}pango.err
+ sed -i -e "s:$D::" $D${sysconfdir}/pango/${MLPREFIX}pango.modules
-exit 0
+ exit 0
fi
-
}
do_install_append () {
diff --git a/meta/recipes-graphics/pango/pango_1.32.5.bb b/meta/recipes-graphics/pango/pango_1.32.5.bb
index fe93b52..6219940 100644
--- a/meta/recipes-graphics/pango/pango_1.32.5.bb
+++ b/meta/recipes-graphics/pango/pango_1.32.5.bb
@@ -2,7 +2,7 @@ require pango.inc
LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"
-PR = "r1"
+PR = "r2"
GNOME_COMPRESS_TYPE="xz"
--
1.7.11.7
next reply other threads:[~2013-01-17 16:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-17 15:53 Constantin Musca [this message]
2013-01-17 16:10 ` [PATCH] pango: use qemu_run_binary instead of pango-native Laurentiu Palcu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1358438019-24046-1-git-send-email-constantinx.musca@intel.com \
--to=constantinx.musca@intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox