From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: Re: [PATCH] gnu: mesa: Add libva input. Date: Tue, 28 Apr 2015 16:14:05 +0200 Message-ID: <87vbgge3wy.fsf@taylan.uni.cx> References: <87zj5se6o0.fsf@taylan.uni.cx> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn6H4-0000jt-4H for guix-devel@gnu.org; Tue, 28 Apr 2015 10:14:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yn6H2-0007ff-W1 for guix-devel@gnu.org; Tue, 28 Apr 2015 10:14:10 -0400 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:37032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn6H2-0007fW-JK for guix-devel@gnu.org; Tue, 28 Apr 2015 10:14:08 -0400 Received: by widdi4 with SMTP id di4so30856840wid.0 for ; Tue, 28 Apr 2015 07:14:08 -0700 (PDT) Received: from taylan.uni.cx (p2003007A0A2BDCAD0213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:7a:a2b:dcad:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id k9sm16632296wia.6.2015.04.28.07.14.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Apr 2015 07:14:06 -0700 (PDT) In-Reply-To: <87zj5se6o0.fsf@taylan.uni.cx> ("Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Bay\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=22's\?\= message of "Tue, 28 Apr 2015 15:14:39 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/plain I forgot to add (name "libva-for-mesa") to the libva-for-mesa package. Otherwise same patch: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0002-gnu-mesa-Add-libva-input.patch >From b169a4b2c8bf838579c1aa1e5bc47df9446b5704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?= Date: Tue, 28 Apr 2015 15:08:47 +0200 Subject: [PATCH 2/3] gnu: mesa: Add libva input. There is a circular dependency between Mesa and libVA, so we use a libva-for-mesa package that builds libVA without GLX and EGL support, and use that for building Mesa. * gnu/packages/gl.scm (libva-for-mesa): New variable. (mesa): Add as input. --- gnu/packages/gl.scm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index a40749e..1d6c0fd 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -21,6 +21,7 @@ (define-module (gnu packages gl) #:use-module (ice-9 match) + #:use-module (guix build utils) #:use-module ((guix licenses) #:prefix l:) #:use-module (guix packages) #:use-module (guix download) @@ -37,6 +38,7 @@ #:use-module (gnu packages xml) #:use-module (gnu packages fontutils) #:use-module (gnu packages guile) + #:use-module (gnu packages video) #:use-module (gnu packages xdisorg)) (define-public glu @@ -159,6 +161,13 @@ Polygon meshes, and Extruded polygon meshes") also known as DXTn or DXTC) for Mesa.") (license l:expat))) +(define libva-for-mesa + (package + (inherit libva) + (name "libva-for-mesa") + (inputs (alist-delete "mesa" (package-inputs libva))) + (arguments '(#:configure-flags '("--disable-glx" "--disable-egl"))))) + (define-public mesa (package (name "mesa") @@ -188,8 +197,7 @@ also known as DXTn or DXTC) for Mesa.") ("dri3proto" ,dri3proto) ("presentproto" ,presentproto) ("expat" ,expat) - ;; TODO: Solve circular dependency with libva. - ;; ("libva" ,libva) + ("libva" ,libva-for-mesa) ("libxml2" ,libxml2) ;; TODO: Add 'libxml2-python' for OpenGL ES 1.1 and 2.0 support ("libxvmc" ,libxvmc) -- 2.2.1 --=-=-=--