diff options
-rw-r--r-- | meta/classes/qemu.bbclass | 8 | ||||
-rw-r--r-- | scripts/postinst-intercepts/update_font_cache | 4 | ||||
-rw-r--r-- | scripts/postinst-intercepts/update_pixbuf_cache | 3 |
3 files changed, 3 insertions, 12 deletions
diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass index 8b039266b9..0e71d6aaad 100644 --- a/meta/classes/qemu.bbclass +++ b/meta/classes/qemu.bbclass | |||
@@ -29,10 +29,4 @@ def qemu_run_binary(data, rootfs_path, binary): | |||
29 | if qemu_binary == "qemu-allarch": | 29 | if qemu_binary == "qemu-allarch": |
30 | qemu_binary = "qemuwrapper" | 30 | qemu_binary = "qemuwrapper" |
31 | 31 | ||
32 | dynamic_loader = rootfs_path + '$(readelf -l ' + rootfs_path + \ | 32 | return "PSEUDO_UNLOAD=1 " + qemu_binary + " -L " + rootfs_path + " " + rootfs_path + binary |
33 | binary + '| grep "Requesting program interpreter"|sed -e \'s/^.*\[.*: \(.*\)\]/\\1/\')' | ||
34 | library_path = rootfs_path + data.getVar("base_libdir", True) + ":" + \ | ||
35 | rootfs_path + data.getVar("libdir", True) | ||
36 | |||
37 | return "PSEUDO_UNLOAD=1 " + qemu_binary + " " + dynamic_loader + " --library-path " + library_path \ | ||
38 | + " " + rootfs_path + binary | ||
diff --git a/scripts/postinst-intercepts/update_font_cache b/scripts/postinst-intercepts/update_font_cache index 562b5b3cb9..ad1bab32be 100644 --- a/scripts/postinst-intercepts/update_font_cache +++ b/scripts/postinst-intercepts/update_font_cache | |||
@@ -1,7 +1,5 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | PSEUDO_UNLOAD=1 qemuwrapper $D$(readelf -l $D${bindir}/fc-cache| grep "Requesting program interpreter"|sed -e 's/^.*\[.*: \(.*\)\]/\1/') \ | 3 | PSEUDO_UNLOAD=1 qemuwrapper -L $D $D${bindir}/fc-cache --sysroot=$D >/dev/null 2>&1 |
4 | --library-path $D/lib:$D/usr/lib $D${bindir}/fc-cache \ | ||
5 | --sysroot=$D >/dev/null 2>&1 | ||
6 | 4 | ||
7 | 5 | ||
diff --git a/scripts/postinst-intercepts/update_pixbuf_cache b/scripts/postinst-intercepts/update_pixbuf_cache index 64033dc48a..9134529273 100644 --- a/scripts/postinst-intercepts/update_pixbuf_cache +++ b/scripts/postinst-intercepts/update_pixbuf_cache | |||
@@ -2,8 +2,7 @@ | |||
2 | 2 | ||
3 | export GDK_PIXBUF_MODULEDIR=$D${libdir}/gdk-pixbuf-2.0/2.10.0/loaders | 3 | export GDK_PIXBUF_MODULEDIR=$D${libdir}/gdk-pixbuf-2.0/2.10.0/loaders |
4 | 4 | ||
5 | PSEUDO_UNLOAD=1 qemuwrapper $D$(readelf -l $D${bindir}/gdk-pixbuf-query-loaders|grep "Requesting program interpreter"|sed -e 's/^.*\[.*: \(.*\)\]/\1/') \ | 5 | PSEUDO_UNLOAD=1 qemuwrapper -L $D $D${bindir}/gdk-pixbuf-query-loaders \ |
6 | --library-path $D/lib:$D/usr/lib $D${bindir}/gdk-pixbuf-query-loaders \ | ||
7 | >$GDK_PIXBUF_MODULEDIR/../loaders.cache 2>/dev/null && \ | 6 | >$GDK_PIXBUF_MODULEDIR/../loaders.cache 2>/dev/null && \ |
8 | sed -i -e "s:$D::g" $GDK_PIXBUF_MODULEDIR/../loaders.cache | 7 | sed -i -e "s:$D::g" $GDK_PIXBUF_MODULEDIR/../loaders.cache |
9 | 8 | ||