From 9a187b39b7991463aa6985f5b746fccf69789525 Mon Sep 17 00:00:00 2001 From: Andy Patterson Date: Sun, 15 Oct 2017 16:03:25 -0400 Subject: gnu: qemu: Add OpenGL support. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enables virgl support with spice 0.13+. * gnu/packages/virtualization.scm (qemu)[arguments]<#:configure-flags>: Add --enable-opengl. [inputs]: Add libdrm and libepoxy. (qemu-minimal)[inputs]: Remove libdrm and libepoxy. Signed-off-by: Ludovic Courtès --- gnu/packages/virtualization.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index c31612d231..52a8dcea8c 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -86,7 +86,7 @@ (define-public qemu '(;; Running tests in parallel can occasionally lead to failures, like: ;; boot_sector_test: assertion failed (signature == SIGNATURE): (0x00000000 == 0x0000dead) #:parallel-tests? #f - #:configure-flags '("--enable-usb-redir") + #:configure-flags '("--enable-usb-redir" "--enable-opengl") #:phases (modify-phases %standard-phases (replace 'configure @@ -144,6 +144,8 @@ (define-public qemu ("libaio" ,libaio) ("libattr" ,attr) ("libcap" ,libcap) ; virtfs support requires libcap & libattr + ("libdrm" ,libdrm) + ("libepoxy" ,libepoxy) ("libjpeg" ,libjpeg-8) ("libpng" ,libpng) ("libusb" ,libusb) ;USB pass-through support @@ -198,7 +200,7 @@ (define-public qemu-minimal ;; Remove dependencies on optional libraries, notably GUI libraries. (inputs (fold alist-delete (package-inputs qemu) '("libusb" "mesa" "sdl" "spice" "virglrenderer" - "usbredir"))))) + "usbredir" "libdrm" "libepoxy"))))) (define-public libosinfo (package -- cgit v1.2.3