Make qemu & runqemu detect libgl on Debian
cover Make qemu & runqemu detect libgl on Debian
Modify the patches to make qemu-native compile and run on Ubuntu 11.10, to use a wildcard match instead of uname -i. The latter only returns unknown on e.g. Debian.
These patches are similar to what we did for perl-native in the Configure-multilib.patch (commit id 9260c1b9d04a88d15ab5376c7cd56f381fe3e53b in oe-core).
The following changes since commit 13db5f420ca9bff98561f80d78958278734ad1f4:
distro-tracking: Update info for gpgme, libassuan, apr... after last upgrade. (2011-08-15 15:26:04 +0100)
are available in the git repository at:
git://github.com/darander/oe-core qemu-native
https://github.com/darander/oe-core/tree/qemu-native
Anders Darander (2):
qemu: modify search paths for libgl
scripts/runqemu: modify search paths for libgl
meta/recipes-devtools/qemu/qemu.inc | 2 +- scripts/runqemu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.5.4
PATCH 1/2 qemu: modify search paths for libgl
On e.g. Debian libql is found under /usr/lib/x86_64-linux-gnu/libGL.so. Use a wildcard to match different locations, as uname -i only return unknown on Debian.
--- meta/recipes-devtools/qemu/qemu.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-devtools/qemu/qemu.inc +1 -1
@@ -26,7 +26,7 @@ do_configure_prepend_virtclass-native() { test -e /usr/lib/libGL.so -a -e /usr/lib/libGLU.so && libgl='yes' test -e /usr/lib64/libGL.so -a -e /usr/lib64/libGLU.so && libgl='yes' - test -e /usr/lib/`uname -i`-linux-gnu/libGL.so -a -e /usr/lib/`uname -i`-linux-gnu/libGLU.so && libgl='yes' + test -e /usr/lib/*-linux-gnu/libGL.so -a -e /usr/lib/*-linux-gnu/libGLU.so && libgl='yes' test -e /usr/lib/pkgconfig/sdl.pc -o -e /usr/lib64/pkgconfig/sdl.pc -o -e /usr/include/SDL/SDL.h && libsdl='yes'
Signature · 1 line
1.7.5.4
PATCH 2/2 scripts/runqemu: modify search paths for libgl
In reply to Anders DaranderOn e.g. Debian libql is found under /usr/lib/x86_64-linux-gnu/libGL.so. Use a wildcard to match different locations, as uname -i only return unknown on Debian.
--- scripts/runqemu | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/runqemu +1 -1
@@ -388,7 +388,7 @@ libgl='no' test -e /usr/lib/libGL.so -a -e /usr/lib/libGLU.so && libgl='yes' test -e /usr/lib64/libGL.so -a -e /usr/lib64/libGLU.so && libgl='yes' -test -e /usr/lib/`uname -i`-linux-gnu/libGL.so -a -e /usr/lib/`uname -i`-linux-gnu/libGLU.so && libgl='yes' +test -e /usr/lib/*-linux-gnu/libGL.so -a -e /usr/lib/*-linux-gnu/libGLU.so && libgl='yes' if [ "$libgl" != 'yes' ]; then echo "You need libGL.so and libGLU.so to exist in your library path to run the QEMU emulator.
Signature · 1 line
1.7.5.4
Saul Wold
AppliedQuoted 17 lines · Anders Darander
Modify the patches to make qemu-native compile and run on Ubuntu 11.10, to use a wildcard match instead of
uname -i. The latter only returns unknown on e.g. Debian.These patches are similar to what we did for perl-native in the Configure-multilib.patch (commit id
9260c1b9d04a88d15ab5376c7cd56f381fe3e53bin oe-core).The following changes since commit
13db5f420ca9bff98561f80d78958278734ad1f4:distro-tracking: Update info for gpgme, libassuan, apr... after last upgrade. (2011-08-15 15:26:04 +0100)
are available in the git repository at:
git://github.com/darander/oe-coreqemu-native
https://github.com/darander/oe-core/tree/qemu-native
Quoted 8 lines
Anders Darander (2):
qemu: modify search paths for libgl
scripts/runqemu: modify search paths for libglmeta/recipes-devtools/qemu/qemu.inc | 2 +- scripts/runqemu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Merged into OE-Core
Thanks
Sau!