From a0199d3c25c9104383b403aaaaefebd43411a3ad Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Sun, 4 Nov 2018 13:19:28 -0800 Subject: [PATCH] Add workaround for qemu crash while running gdk-pixbuf-query-loaders --- make_rootfs.sh | 5 ++ otherfiles/loaders.cache | 114 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 otherfiles/loaders.cache diff --git a/make_rootfs.sh b/make_rootfs.sh index 5f6d60fd..9591f364 100755 --- a/make_rootfs.sh +++ b/make_rootfs.sh @@ -130,6 +130,7 @@ rm $DEST/second-phase # Final touches rm "$DEST/usr/bin/qemu-aarch64-static" rm "$DEST/usr/bin/qemu-arm-static" +rm -f "$DEST"/*.core mv "$DEST/etc/resolv.conf.dist" "$DEST/etc/resolv.conf" cp $OTHERDIR/asound.state $DEST/var/lib/alsa @@ -137,6 +138,10 @@ cp $OTHERDIR/resize_rootfs.sh $DEST/usr/local/sbin/ cp $OTHERDIR/modesetting.conf $DEST/etc/X11/xorg.conf.d/ cp $OTHERDIR/sysrq.conf $DEST/etc/sysctl.d/ cp $OTHERDIR/81-blueman.rules $DEST/etc/polkit-1/rules.d/ +# Probing gdk pixbuf modules fails on qemu with: +# (process:30790): GLib-ERROR **: 20:53:40.468: getauxval () failed: No such file or directory +# qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped +cp $OTHERDIR/loaders.cache $DEST//usr/lib/gdk-pixbuf-2.0/2.10.0/ echo "Installed rootfs to $DEST" diff --git a/otherfiles/loaders.cache b/otherfiles/loaders.cache new file mode 100644 index 00000000..4c2e44ba --- /dev/null +++ b/otherfiles/loaders.cache @@ -0,0 +1,114 @@ +# GdkPixbuf Image Loader Modules file +# Automatically generated file, do not edit +# Created by gdk-pixbuf-query-loaders from gdk-pixbuf-2.38.0 +# +# LoaderDir = /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders +# +"/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.so" +"ani" 4 "gdk-pixbuf" "Windows animated cursor" "LGPL" +"application/x-navi-animation" "" +"ani" "" +"RIFF ACON" " xxxx " 100 + +"/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp.so" +"bmp" 5 "gdk-pixbuf" "BMP" "LGPL" +"image/bmp" "image/x-bmp" "image/x-MS-bmp" "" +"bmp" "" +"BM" "" 100 + +"/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gif.so" +"gif" 4 "gdk-pixbuf" "GIF" "LGPL" +"image/gif" "" +"gif" "" +"GIF8" "" 100 + +"/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.so" +"icns" 4 "gdk-pixbuf" "MacOS X icon" "GPL" +"image/x-icns" "" +"icns" "" +"icns" "" 100 + +"/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ico.so" +"ico" 5 "gdk-pixbuf" "Windows icon" "LGPL" +"image/x-icon" "image/x-ico" "image/x-win-bitmap" "image/vnd.microsoft.icon" "application/ico" "image/ico" "image/icon" "text/ico" "" +"ico" "cur" "" +" \001 " "zz znz" 100 +" \002 " "zz znz" 100 + +"/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jasper.so" +"jpeg2000" 4 "gdk-pixbuf" "JPEG 2000" "LGPL" +"image/jp2" "image/jpeg2000" "image/jpx" "" +"jp2" "jpc" "jpx" "j2k" "jpf" "" +" jP" "!!!! " 100 +"\377O\377Q" "" 100 + +"/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jpeg.so" +"jpeg" 5 "gdk-pixbuf" "JPEG" "LGPL" +"image/jpeg" "" +"jpeg" "jpe" "jpg" "" +"\377\330" "" 100 + +"/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so" +"png" 5 "gdk-pixbuf" "PNG" "LGPL" +"image/png" "" +"png" "" +"\211PNG\r\n\032\n" "" 100 + +"/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.so" +"pnm" 4 "gdk-pixbuf" "PNM/PBM/PGM/PPM" "LGPL" +"image/x-portable-anymap" "image/x-portable-bitmap" "image/x-portable-graymap" "image/x-portable-pixmap" "" +"pnm" "pbm" "pgm" "ppm" "" +"P1" "" 100 +"P2" "" 100 +"P3" "" 100 +"P4" "" 100 +"P5" "" 100 +"P6" "" 100 + +"/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-qtif.so" +"qtif" 4 "gdk-pixbuf" "QuickTime" "LGPL" +"image/x-quicktime" "image/qtif" "" +"qtif" "qif" "" +"abcdidsc" "xxxx " 100 +"abcdidat" "xxxx " 100 + +"/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so" +"svg" 6 "gdk-pixbuf" "Scalable Vector Graphics" "LGPL" +"image/svg+xml" "image/svg" "image/svg-xml" "image/vnd.adobe.svg+xml" "text/xml-svg" "image/svg+xml-compressed" "" +"svg" "svgz" "svg.gz" "" +"