diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2012-12-19 21:13:38 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-07 11:09:35 +0000 |
commit | 5d8a2e82e885b79c380ffaa5f613318f6d271e2c (patch) | |
tree | e4def89488a8318a2b77c2500cdf92bc57d4fa7a /meta/recipes-graphics/pango/pango.inc | |
parent | 09359e6ec00901abfe49157f1f9730117b4d284b (diff) | |
download | poky-5d8a2e82e885b79c380ffaa5f613318f6d271e2c.tar.gz |
pango: have postinstalls run at do_rootfs time
Since pango-native is built anyway and all the modules are in the native
sysroot, create the cache file by scanning those files instead of the
target files. The latter will fail because the shared objects wouldn't
be from the same ELF class.
[YOCTO #3600]
(From OE-Core rev: 75334cbee1f064b38f167269917e333989802e7d)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/pango/pango.inc')
-rw-r--r-- | meta/recipes-graphics/pango/pango.inc | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/meta/recipes-graphics/pango/pango.inc b/meta/recipes-graphics/pango/pango.inc index 839c00d933..81c2a7ee65 100644 --- a/meta/recipes-graphics/pango/pango.inc +++ b/meta/recipes-graphics/pango/pango.inc | |||
@@ -10,7 +10,7 @@ SECTION = "libs" | |||
10 | LICENSE = "LGPLv2.0+" | 10 | LICENSE = "LGPLv2.0+" |
11 | 11 | ||
12 | X11DEPENDS = "virtual/libx11 libxft" | 12 | X11DEPENDS = "virtual/libx11 libxft" |
13 | DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv cairo elfutils" | 13 | DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv cairo elfutils pango-native" |
14 | 14 | ||
15 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" | 15 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" |
16 | PACKAGECONFIG[x11] = "--with-x,--without-x,${X11DEPENDS}" | 16 | PACKAGECONFIG[x11] = "--with-x,--without-x,${X11DEPENDS}" |
@@ -44,13 +44,31 @@ LEAD_SONAME = "libpango-1.0*" | |||
44 | LIBV = "1.6.0" | 44 | LIBV = "1.6.0" |
45 | 45 | ||
46 | postinst_prologue() { | 46 | postinst_prologue() { |
47 | if ! [ -e $D${sysconfdir}/pango ] ; then | ||
48 | mkdir -p $D${sysconfdir}/pango | ||
49 | fi | ||
50 | |||
47 | if [ "x$D" != "x" ]; then | 51 | if [ "x$D" != "x" ]; then |
48 | exit 1 | 52 | pango-querymodules $(ls -d -1 $D${libdir}/pango/${LIBV}/modules/*.so|\ |
53 | sed -e "s:$D:$NATIVE_ROOT:g") >\ | ||
54 | $D${sysconfdir}/pango/${MLPREFIX}pango.modules \ | ||
55 | 2>$D${sysconfdir}/pango/${MLPREFIX}pango.err | ||
56 | |||
57 | # pango-querymodules always returns 0, so we need to check if pango.err has | ||
58 | # anything in it | ||
59 | if [ -s $D${sysconfdir}/pango/${MLPREFIX}pango.err ]; then | ||
60 | rm $D${sysconfdir}/pango/${MLPREFIX}pango.err | ||
61 | exit 1 | ||
49 | fi | 62 | fi |
50 | 63 | ||
51 | if ! [ -e $D${sysconfdir}/pango ] ; then | 64 | sed -i -e "s:$NATIVE_ROOT::g" $D${sysconfdir}/pango/${MLPREFIX}pango.modules |
52 | mkdir -p $D${sysconfdir}/pango | 65 | |
66 | # remove the empty pango.err | ||
67 | rm $D${sysconfdir}/pango/${MLPREFIX}pango.err | ||
68 | |||
69 | exit 0 | ||
53 | fi | 70 | fi |
71 | |||
54 | } | 72 | } |
55 | 73 | ||
56 | do_install_append () { | 74 | do_install_append () { |