diff options
-rw-r--r-- | meta/classes/fontcache.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/pixbufcache.bbclass | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb | 37 | ||||
-rw-r--r-- | scripts/postinst-intercepts/update_font_cache | 3 | ||||
-rw-r--r-- | scripts/postinst-intercepts/update_gio_module_cache | 3 | ||||
-rw-r--r-- | scripts/postinst-intercepts/update_gtk_immodules_cache | 6 | ||||
-rw-r--r-- | scripts/postinst-intercepts/update_pixbuf_cache | 3 |
7 files changed, 17 insertions, 39 deletions
diff --git a/meta/classes/fontcache.bbclass b/meta/classes/fontcache.bbclass index e76331131e..f71a754a4d 100644 --- a/meta/classes/fontcache.bbclass +++ b/meta/classes/fontcache.bbclass | |||
@@ -17,7 +17,7 @@ FONTCONFIG_CACHE_PARAMS ?= "-v" | |||
17 | FONTCONFIG_CACHE_ENV ?= "FC_DEBUG=1" | 17 | FONTCONFIG_CACHE_ENV ?= "FC_DEBUG=1" |
18 | fontcache_common() { | 18 | fontcache_common() { |
19 | if [ -n "$D" ] ; then | 19 | if [ -n "$D" ] ; then |
20 | $INTERCEPT_DIR/postinst_intercept update_font_cache ${PKG} mlprefix=${MLPREFIX} \ | 20 | $INTERCEPT_DIR/postinst_intercept update_font_cache ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} \ |
21 | 'bindir="${bindir}"' \ | 21 | 'bindir="${bindir}"' \ |
22 | 'libdir="${libdir}"' \ | 22 | 'libdir="${libdir}"' \ |
23 | 'base_libdir="${base_libdir}"' \ | 23 | 'base_libdir="${base_libdir}"' \ |
diff --git a/meta/classes/pixbufcache.bbclass b/meta/classes/pixbufcache.bbclass index b3e507f61b..3378ff2c80 100644 --- a/meta/classes/pixbufcache.bbclass +++ b/meta/classes/pixbufcache.bbclass | |||
@@ -12,7 +12,7 @@ PACKAGE_WRITE_DEPS += "qemu-native gdk-pixbuf-native" | |||
12 | 12 | ||
13 | pixbufcache_common() { | 13 | pixbufcache_common() { |
14 | if [ "x$D" != "x" ]; then | 14 | if [ "x$D" != "x" ]; then |
15 | $INTERCEPT_DIR/postinst_intercept update_pixbuf_cache ${PKG} mlprefix=${MLPREFIX} libdir=${libdir} \ | 15 | $INTERCEPT_DIR/postinst_intercept update_pixbuf_cache ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} libdir=${libdir} \ |
16 | bindir=${bindir} base_libdir=${base_libdir} | 16 | bindir=${bindir} base_libdir=${base_libdir} |
17 | else | 17 | else |
18 | 18 | ||
diff --git a/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb b/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb index c983fbae66..4b1b46d0bb 100644 --- a/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb +++ b/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb | |||
@@ -13,38 +13,21 @@ do_populate_sysroot[depends] = "" | |||
13 | do_install () { | 13 | do_install () { |
14 | install -d ${D}${bindir_crossscripts}/ | 14 | install -d ${D}${bindir_crossscripts}/ |
15 | 15 | ||
16 | echo "#!/bin/sh" > ${D}${bindir_crossscripts}/qemuwrapper | ||
17 | qemu_binary=${@qemu_target_binary(d)} | 16 | qemu_binary=${@qemu_target_binary(d)} |
18 | qemu_options='${QEMU_OPTIONS}' | 17 | qemu_options='${QEMU_OPTIONS} -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir}' |
19 | echo "$qemu_binary $qemu_options \"\$@\"" >> ${D}${bindir_crossscripts}/qemuwrapper | 18 | |
20 | fallback_qemu_bin= | 19 | cat >> ${D}${bindir_crossscripts}/${MLPREFIX}qemuwrapper << EOF |
21 | case $qemu_binary in | 20 | #!/bin/sh |
22 | "qemu-i386") | 21 | set -x |
23 | fallback_qemu_bin=qemu-x86_64 | ||
24 | ;; | ||
25 | "qemu-x86_64") | ||
26 | fallback_qemu_bin=qemu-i386 | ||
27 | ;; | ||
28 | *) | ||
29 | ;; | ||
30 | esac | ||
31 | |||
32 | if [ -n "$fallback_qemu_bin" ]; then | ||
33 | |||
34 | cat >> ${D}${bindir_crossscripts}/qemuwrapper << EOF | ||
35 | rc=\$? | ||
36 | if [ \$rc = 255 ]; then | ||
37 | $fallback_qemu_bin "\$@" | ||
38 | rc=\$? | ||
39 | fi | ||
40 | exit \$rc | ||
41 | EOF | ||
42 | 22 | ||
43 | fi | 23 | $qemu_binary $qemu_options "\$@" |
24 | EOF | ||
44 | 25 | ||
45 | chmod +x ${D}${bindir_crossscripts}/qemuwrapper | 26 | chmod +x ${D}${bindir_crossscripts}/${MLPREFIX}qemuwrapper |
46 | } | 27 | } |
47 | 28 | ||
48 | SYSROOT_DIRS += "${bindir_crossscripts}" | 29 | SYSROOT_DIRS += "${bindir_crossscripts}" |
49 | 30 | ||
50 | INHIBIT_DEFAULT_DEPS = "1" | 31 | INHIBIT_DEFAULT_DEPS = "1" |
32 | |||
33 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/scripts/postinst-intercepts/update_font_cache b/scripts/postinst-intercepts/update_font_cache index bf65e19a41..20e9048adf 100644 --- a/scripts/postinst-intercepts/update_font_cache +++ b/scripts/postinst-intercepts/update_font_cache | |||
@@ -2,6 +2,5 @@ | |||
2 | 2 | ||
3 | set -e | 3 | set -e |
4 | 4 | ||
5 | PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D/${libdir}:$D/${base_libdir} \ | 5 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D -E ${fontconfigcacheenv} $D${bindir}/fc-cache --sysroot=$D --system-only ${fontconfigcacheparams} |
6 | -E ${fontconfigcacheenv} $D${bindir}/fc-cache --sysroot=$D --system-only ${fontconfigcacheparams} | ||
7 | chown -R root:root $D${fontconfigcachedir} | 6 | chown -R root:root $D${fontconfigcachedir} |
diff --git a/scripts/postinst-intercepts/update_gio_module_cache b/scripts/postinst-intercepts/update_gio_module_cache index fc3f9d0d6c..d1f0140947 100644 --- a/scripts/postinst-intercepts/update_gio_module_cache +++ b/scripts/postinst-intercepts/update_gio_module_cache | |||
@@ -2,8 +2,7 @@ | |||
2 | 2 | ||
3 | set -e | 3 | set -e |
4 | 4 | ||
5 | PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir} \ | 5 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/ |
6 | $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/ | ||
7 | 6 | ||
8 | [ ! -e $D${libdir}/gio/modules/giomodule.cache ] || | 7 | [ ! -e $D${libdir}/gio/modules/giomodule.cache ] || |
9 | chown root:root $D${libdir}/gio/modules/giomodule.cache | 8 | chown root:root $D${libdir}/gio/modules/giomodule.cache |
diff --git a/scripts/postinst-intercepts/update_gtk_immodules_cache b/scripts/postinst-intercepts/update_gtk_immodules_cache index e2b9ff7438..d85d3622c2 100644 --- a/scripts/postinst-intercepts/update_gtk_immodules_cache +++ b/scripts/postinst-intercepts/update_gtk_immodules_cache | |||
@@ -3,15 +3,13 @@ | |||
3 | set -e | 3 | set -e |
4 | 4 | ||
5 | if [ -x $D${bindir}/gtk-query-immodules-2.0 ]; then | 5 | if [ -x $D${bindir}/gtk-query-immodules-2.0 ]; then |
6 | PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir} \ | 6 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D/${bindir}/gtk-query-immodules-2.0 \ |
7 | $D/${bindir}/gtk-query-immodules-2.0 \ | ||
8 | > $D${libdir}/gtk-2.0/2.10.0/immodules.cache && | 7 | > $D${libdir}/gtk-2.0/2.10.0/immodules.cache && |
9 | sed -i -e "s:$D::" $D${libdir}/gtk-2.0/2.10.0/immodules.cache | 8 | sed -i -e "s:$D::" $D${libdir}/gtk-2.0/2.10.0/immodules.cache |
10 | chown root:root $D${libdir}/gtk-2.0/2.10.0/immodules.cache | 9 | chown root:root $D${libdir}/gtk-2.0/2.10.0/immodules.cache |
11 | fi | 10 | fi |
12 | if [ -x $D${bindir}/gtk-query-immodules-3.0 ]; then | 11 | if [ -x $D${bindir}/gtk-query-immodules-3.0 ]; then |
13 | PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir} \ | 12 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D/${bindir}/gtk-query-immodules-3.0 \ |
14 | $D/${bindir}/gtk-query-immodules-3.0 \ | ||
15 | > $D${libdir}/gtk-3.0/3.0.0/immodules.cache && | 13 | > $D${libdir}/gtk-3.0/3.0.0/immodules.cache && |
16 | sed -i -e "s:$D::" $D${libdir}/gtk-3.0/3.0.0/immodules.cache | 14 | sed -i -e "s:$D::" $D${libdir}/gtk-3.0/3.0.0/immodules.cache |
17 | chown root:root $D${libdir}/gtk-3.0/3.0.0/immodules.cache | 15 | chown root:root $D${libdir}/gtk-3.0/3.0.0/immodules.cache |
diff --git a/scripts/postinst-intercepts/update_pixbuf_cache b/scripts/postinst-intercepts/update_pixbuf_cache index 5d44075fb4..ebea07c356 100644 --- a/scripts/postinst-intercepts/update_pixbuf_cache +++ b/scripts/postinst-intercepts/update_pixbuf_cache | |||
@@ -5,7 +5,6 @@ set -e | |||
5 | export GDK_PIXBUF_MODULEDIR=$D${libdir}/gdk-pixbuf-2.0/2.10.0/loaders | 5 | export GDK_PIXBUF_MODULEDIR=$D${libdir}/gdk-pixbuf-2.0/2.10.0/loaders |
6 | export GDK_PIXBUF_FATAL_LOADER=1 | 6 | export GDK_PIXBUF_FATAL_LOADER=1 |
7 | 7 | ||
8 | PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D/${libdir}:$D/${base_libdir}\ | 8 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \ |
9 | $D${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \ | ||
10 | >$GDK_PIXBUF_MODULEDIR/../loaders.cache && \ | 9 | >$GDK_PIXBUF_MODULEDIR/../loaders.cache && \ |
11 | sed -i -e "s:$D::g" $GDK_PIXBUF_MODULEDIR/../loaders.cache | 10 | sed -i -e "s:$D::g" $GDK_PIXBUF_MODULEDIR/../loaders.cache |