From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] Add Blender Date: Sat, 26 Sep 2015 14:47:37 +0200 Message-ID: <87bncp5ouu.fsf@gnu.org> References: <87a8sg6cpx.fsf@elephly.net> <20150921184539.2cddac04@openmailbox.org> <87k2rhpraz.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfotE-0003PC-7u for guix-devel@gnu.org; Sat, 26 Sep 2015 08:47:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfotB-00052N-1i for guix-devel@gnu.org; Sat, 26 Sep 2015 08:47:44 -0400 In-Reply-To: <87k2rhpraz.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 23 Sep 2015 08:45:24 +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: Ricardo Wurmus Cc: guix-devel Ricardo Wurmus skribis: > Eric Bavier writes: [...] >>> * gnu/packages/graphics.scm (blender): New variable. > > [...] > >>> + (add-after 'set-paths 'add-ilmbase-include-path >>> + (lambda* (#:key inputs #:allow-other-keys) >>> + ;; OpenEXR propagates ilmbase, but its include files do no= t appear >>> + ;; in the CPATH, so we need to add "$ilmbase/include/OpenE= XR/" to >>> + ;; the CPATH to satisfy the dependency on "half.h". >>> + (setenv "CPATH" >>> + (string-append (assoc-ref inputs "ilmbase") >>> + "/include/OpenEXR" >>> + ":" (getenv "CPATH"))) >> >> Is the "half.h" header in OpenEXR, or in blender? If the latter, would >> it make more sense to instead patch the include directive to include >> the OpenEXR path? > > =E2=80=9Chalf.h=E2=80=9D is provided by =E2=80=9Cilmbase=E2=80=9D. The i= nclude is in Blender, in this > file: > > blender-2.75a/source/blender/imbuf/intern/openexr/openexr_api.cpp > > I could patch this instead, replacing > > #include > > with > > #include Normally =E2=80=98OpenEXR.pc=E2=80=99 provides the right -I flags: https://lists.gnu.org/archive/html/guix-devel/2015-09/msg00160.html Could it be that the .pc is ignored or something? Ludo=E2=80=99.