build-qemu-robot-docker.sh: Install potential qemu dependencies
On my Ubuntu Artful system, qemu-system-arm is built to link against the
following shared libraries:
$ ldd ./tmp/sysroots-components/x86_64/qemu-native/usr/bin/qemu-system-arm
linux-vdso.so.1 => (0x00007ffdfa1c1000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fcddcb89000)
libpixman-1.so.0 => /usr/lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007fcddc8e3000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fcddc6df000)
libasound.so.2 => /usr/lib/x86_64-linux-gnu/libasound.so.2 (0x00007fcddc3d7000)
libfdt.so.1 => /usr/lib/x86_64-linux-gnu/libfdt.so.1 (0x00007fcddc1cf000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fcddbebb000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fcddbcb3000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fcddb92d000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fcddb5d7000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fcddb3c0000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fcddb1a1000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fcddadc1000)
/lib64/ld-linux-x86-64.so.2 (0x00007fcddde5a000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fcddabbd000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fcdda94b000)
Launching the binary in the container failed due to missing shared
libaries, so lets include them. We were missing at least libasound2 and
libfdt1, and I threw in libpcre3 to be explicit about the dependency.
Change-Id: I1ba31cba090099184dd1e13a0fa54f3de8637518
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/scripts/build-qemu-robot-docker.sh b/scripts/build-qemu-robot-docker.sh
index a4747bd..d14b25a 100755
--- a/scripts/build-qemu-robot-docker.sh
+++ b/scripts/build-qemu-robot-docker.sh
@@ -54,7 +54,10 @@
build-essential \
libpixman-1-0 \
libglib2.0-0 \
- sshpass
+ sshpass \
+ libasound2 \
+ libfdt1 \
+ libpcre3
RUN easy_install \
tox \